Skip to content
Tech Interview Prep
Technical interview guide

AI Security, Governance & Responsible AI

The security and governance concerns specific to LLM systems: prompt injection, data leakage, access control over retrieved content, and responsible-use practices.

Minutes to read
3
Practice MCQs
25
Interview Q&A
25
Edition
v5
Editorial status
Reviewed

Scope: NIST AI RMF 1.0 (revision underway as of 2026-09-04), NIST AI 600-1, NIST Privacy Framework 1.0, Regulation (EU) 2024/1689, MITRE ATLAS reviewed 2026-09-04, OWASP GenAI risks, OECD AI Principles updated 2024, C2PA 2.2, Model Cards, Datasheets, and NIST SSDF 1.1.

Overview

Curated: · Written: · Reviewed:

AI Security, Governance & Responsible AI

In one line

Controls for LLM systems: treat retrieved content and model output as untrusted, enforce access and spend limits on the server, and tie every governance claim to current evidence. Reach for this whenever a model reads external content, calls tools, or touches personal data.

Key definitions

  • Direct injection: the user tells the model to override its instructions.
  • Indirect injection: instructions arrive inside content the model reads, such as retrieved documents, web pages, tool results or email.
  • Least privilege: the agent holds only the tools and scopes the task needs. This is the control that still holds when injection succeeds.
  • Excessive agency (OWASP LLM06): an irreversible or high-impact action taken on bad reasoning.
  • Reauthorization at point of use: the ACL is checked again before disclosure, not only at index time.
  • Applicability analysis: the memo that records which legal duties apply, and why, by role, classification and date.

How it works

Untrusted input reaches the model, which only proposes text or tool calls. The server decides what happens.

fail pass deny allow, irreversible allow Untrusted input: user, document, tool result Model proposes text or tool call Output validation Block and log Server policy: grant, args, cumulative limit Human approval shown the actual arguments Execute and record side effect
  • The server checks each tool call against its grant, argument schema and allowlist. The model is never the enforcement point.
  • Limits apply to the running total, not each call. A per-call cap with no per-order cumulative cap lets repeated calls exceed the amount.
  • Retrieval filters candidates by ACL from authenticated server state before the top-k chunks reach the prompt, and the answer is rechecked at disclosure.
  • Logs keep metadata and scores. Full prompts and completions are stored only where a stated purpose needs them, and deletion jobs enforce retention.

When to use and when not to

SituationControl to applyTrade-off
Model reads external content and can actLeast privilege, allowlists, argument validation, approval gateLatency and human review cost
Summarizer with no side effectsZero tools, output validationLittle agency to lose
Shared vector index across tenantsPartition by tenant, filter before retrievalPer-tenant storage and indexing cost
Model informs a decision about a person in the EUApplicability analysis by counsel before launchTime before ship
Hosted provider receives personal dataMinimize input, confirm contract terms and retentionVendor dependency

Traps interviewers probe

  1. Treating the system prompt as a boundary. Fix: assume injection succeeds and cap what a successful injection can reach.
  2. Per-call limits read as total limits. Fix: enforce cumulative caps per order and per run, with idempotency keys so retries cannot double-charge.
  3. Nightly ACL snapshots. Fix: check membership at query time. Revocation latency equals your cache or index refresh interval, so measure it.
  4. Treating a framework checklist as compliance. Fix: NIST AI RMF functions give you a control structure. The EU AI Act needs a role, classification and applicability memo.
  5. Reading a model card as proof of fitness. Fix: a card supports only the slice it evaluated. Test your own traffic mix and segments. A valid C2PA signature with a failing hard binding hash means the file changed after signing, so the assertions no longer describe this file. Human overrides near zero can mean rubber-stamping, not accuracy.

Interview tips

Open with the assumption: "I assume injection succeeds, so the question is what the model can reach."

Expect these follow-ups:

  • How you measure revocation latency.
  • How the human gate avoids rubber-stamping: show the actual arguments and measure override rates.
  • What triggers rollback in production.
  • What the applicability memo says for a specific deployment.
  • Whether the dataset's coverage matches your traffic mix.

30-second answer outline:

  1. Name the failure mode and the surface it enters through.
  2. State the server-side control that holds even if injection succeeds.
  3. Name the test and the metric that proves it.
  4. Name the owner and the rollback trigger.

Feedback on this overview

Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.