security
AI, ML & GenAI interview questions tagged security, across every topic.
19 questions · 5 unlocked for you
Concepts behind "security"
The curriculum that explains the ideas these questions test.
Foundational
GuardrailsGuardrails are the runtime safety layer around an LLM: input checks (spotting prompt injection, off-topic or disallowed requests, PII) ahead of the model, and output checks (content safety, schema/format validation, grounding, PII/secret leakage) ahead of the user. They combine rules, classifiers, judge models, and validators, plus a defined fail-safe action when one trips. AI, ML, and GenAI engineer interviews probe it because 'add guardrails' is hand-wavy, and it is the concrete input/output checks plus fail-safe behavior that keep a deployment safe.⚙️ System Design for AI in Production
Foundational
Prompt InjectionPrompt injection ranks as the number one security risk for LLM apps: hostile instructions hijack the model's intended behavior. In direct injection the user supplies the payload; in indirect injection the payload sits inside content the model pulls in or browses (a web page, a document, an email), letting a third party do the attacking. RAG and agents are hit hardest because they consume untrusted content and agents can act. Your main defense is to handle every retrieved or tool output as untrusted data rather than instructions, backed by least privilege and human approval before irreversible actions.🛡️ AI Security, Privacy & Governance
Foundational
PII HandlingPersonal data sitting in prompts, logs, and training sets creates privacy and compliance exposure (GDPR, HIPAA), so you have to detect and guard it. Detection works in layers (regex for structured PII like emails/SSNs, ML/NER for names and addresses) and stays imperfect, making it one layer next to the strongest control: data minimization, meaning you do not collect or log what you do not need. AI, ML, and GenAI interviews probe it because LLM logs and training data form a major PII surface, and a leak is a legal and reputational disaster.🛡️ AI Security, Privacy & Governance
Foundational
Audit TrailsAn audit trail records enough to reconstruct and explain any AI decision: the input, retrieved context, model and prompt version, output, and who/when, along with human overrides and guardrail events. It underpins debugging, incident response, compliance (the EU AI Act and regulated domains require traceability), and accountability. The friction is privacy: logs are a sensitive surface, so you redact PII, control access, and set retention. AI, ML, and GenAI interviews probe it because 'why did the model decide that?' must be answerable in serious deployments.🛡️ AI Security, Privacy & Governance
Core
Differential PrivacyDifferential privacy injects calibrated noise into data, queries, or training so the output is provably insensitive to any single individual's record, capping what can be learned about any one person. In ML, DP-SGD clips and noises gradients to curb memorization and defend against membership-inference attacks. The price is a privacy-utility trade-off governed by a parameter epsilon. AI, ML, and GenAI interviews probe it because it is the rigorous, mathematically-backed privacy tool, and because models can otherwise memorize and leak training data.🛡️ AI Security, Privacy & GovernanceSign in
Core
Multi-Tenancy and IsolationWhen a single AI system serves many customers (tenants), the cardinal rule is that no tenant may ever see another's data. In RAG this means every retrieval is scoped by tenant so the vector search cannot return another tenant's documents; the same scoping reaches caches, logs, fine-tunes, and rate limits. The dangerous failure is a cross-tenant leak. AI, ML, and GenAI interviews probe it because enterprise deployments are multi-tenant, and a leak between customers is a catastrophic, trust-destroying breach.🛡️ AI Security, Privacy & GovernanceSign in
