Skip to content
Tech Interview Prep

AI Security Engineer Interview Prep

Overview

Engineers who secure LLM and agent products: red-teaming model and tool-use paths, running AI incidents from the SOC, and owning the governance and compliance posture around deployed models.

Curated: · Written: · Reviewed:

Interview Q&A
100
Practice MCQs
96

The role in one line

Secures LLM and agent products: red-teams model and tool-use paths, runs AI incidents from the SOC, and owns the governance and compliance posture around deployed models.

The interview loop

RoundWhat it scores
Scope screenWhether you have secured a deployed LLM product, not only trained or evaluated models
Threat modellingAssets, trust boundaries, and every place untrusted text enters the context
Red-team designScope, pass criteria, coverage evidence, and a report that produces a fix
Agent and tool securityPer-call authorization, confused deputy, least privilege on tool credentials
Detection and incidentLogs that reconstruct a model incident, containment steps, triage order
Governance and supply chainModel and plugin provenance, load-time safety, mapping controls to the compliance regime

Five must-know areas

  1. Injection versus jailbreak: who controls the input and which boundary is crossed, which decides whether the fix lives in the app or in the model.
  2. Trust boundaries in RAG and agents: retrieved documents and inbound email are data, so tool authorization has to sit outside the model.
  3. Confused deputy and excessive agency: a tool call should carry the end user's authority, not a service account's.
  4. Output handling: model output is untrusted input to HTML renderers, SQL and shells, and remote image loads are an exfiltration path.
  5. Supply chain: checkpoint formats that execute on load, and MCP servers or agent skills that run with your permissions.

Numbers and formulas to have ready

No fixed thresholds apply across deployments. Name what each figure depends on.

Attack success rate on a fixed payload set, always reported with the sample size and the number of reruns:

ASR=payloads that succeededpayloads run against the live surfaceASR = \frac{\text{payloads that succeeded}}{\text{payloads run against the live surface}}

A result of 0 of 50 does not show safety. Quote a lower bound instead, using the Wilson score interval with z = 1.96:

lower=p^+z22n−zp^(1−p^)n+z24n21+z2n\text{lower} = \frac{\hat{p} + \frac{z^2}{2n} - z\sqrt{\frac{\hat{p}(1-\hat{p})}{n} + \frac{z^2}{4n^2}}}{1 + \frac{z^2}{n}}

Coverage is payloads per attack category per trust boundary. Log retention and fields come from your compliance regime and retention policy, so name the policy, not a number.

Reference architecture

Customer message Input policy checks Retriever over support articles LLM Tool layer with per-call authz Refund API as the end user Output renderer with no remote images Audit log

The tool layer checks the customer's account server-side on every call. The model never supplies the authorization decision. The audit log records prompt hash, retrieved document IDs and every tool call with its arguments. Input policy checks reduce noise but do not carry the security claim.

Strong vs weak answers

QuestionStrong answer sounds likeWeak answer sounds like
Injection vs jailbreak"Injection is untrusted data changing the app's instructions, so I fix it in the app layer. A jailbreak is the user's own prompt overriding model policy, so I fix it with model and output policy.""They're both prompt attacks, so the same filter covers them."
Trust boundary"The email body is data. The refund tool authorizes the account server-side, so a convincing email can't approve a refund.""The model checks whether the request is legitimate."
Input filtering"Filters match strings, and encoding or paraphrase gets past them, so the security claim rests on tool authorization.""We add a stronger filter."
Coverage"N payloads per category per boundary, ASR with a Wilson lower bound, reruns on model updates.""We tested a lot of prompts."

Interview tips

  1. Trace one real system from data flow to attack to control to detection, and name where your knowledge of it stops.
  2. For every mitigation, say which payload change would defeat it, then say what still holds.
  3. Lead with the trust boundary, then the control, then the log that proves the control fired.
  4. Quote evidence with its sample size and assumptions, and say which figures depend on your deployment.
  5. When asked about a regulation, name the obligation and the control that evidences it, not the law's history.

Last-week checklist:

  • Rewrite one real system's data flow with every trust boundary marked.
  • Answer the top 20 questions out loud, timed, and cut any sentence that does not carry a claim.
  • Redo the Wilson bound by hand for 0 of 50 and 3 of 200.
  • Pick one prompt-injection bypass and write the control that stops it.
  • Review the MCP and checkpoint-loading questions against current official documentation.
  • Prepare two incident walkthroughs: one from the SOC, one from a red-team finding.

Feedback on this overview

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