Skip to content

AI Safety Engineer interview questions

100 real questions with model answers and explanations for Junior candidates.

See a AI Safety Engineer resume example

Practice with flashcards

Spaced repetition · Hunter Pass

Questions

ai-safetycybersecuritymoderation

AI safety engineering measures and reduces harms caused by model behavior, while cybersecurity protects systems and content moderation applies policy to individual content.

  • A cybersecurity team handles threats such as stolen credentials, vulnerable services, and unauthorized access.
  • A moderation team labels or removes user content under a platform policy, often one item at a time.
  • A safety engineer builds model evals, harm taxonomies, and guardrail measurements such as jailbreak ASR and refusal recall.

Why interviewers ask this: The interviewer checks whether you understand the role's model-behavior focus instead of treating every safety function as the same job.

alignment

Alignment means making a model's learned behavior reliably serve the intended human objective rather than merely optimizing a proxy seen during training.

  • The intended objective may be to help users safely, while the training signal rewards answers that reviewers find immediately satisfying.
  • The model can learn shortcuts, such as confident agreement, because they score well without representing the real goal.
  • Alignment evals therefore test unseen situations where the proxy and the intended behavior come apart.

Why interviewers ask this: A strong answer separates the human goal, the training signal, and the behavior the model actually learns.

system-design

Accident and misuse distinguish intent, while systemic harm describes deployment-wide or cumulative effects and is a separate dimension.

  • An accident is a harmful outcome without an actor intending that harm, such as unsafe medical guidance caused by poor generalization.
  • Misuse occurs when an actor intentionally uses a capable model for harm, such as fraud, malware, or targeted manipulation.
  • Systemic harm emerges across repeated or scaled deployment, such as discriminatory screening across a labor market, and can result from either unintended failures or intentional misuse.

Why interviewers ask this: The interviewer is evaluating whether you separate intent from scale and accumulation instead of treating systemic harm as a third intent category.

threat-modelingthreat-modelsystem-design

A basic threat model names what must be protected, who may cause harm, what access they have, and which outcomes matter.

  • Assets include users, sensitive data, model behavior, connected tools, and downstream decisions.
  • Actors can include ordinary users, malicious users, external content authors, insiders, and automated attackers.
  • Access assumptions distinguish black-box prompting from weight access, tool access, retrieval poisoning, or control of system inputs.
  • Success criteria connect each path to a measurable harm, such as unsafe action completion or policy-violating output.

Why interviewers ask this: The interviewer wants a scoped set of actors, capabilities, surfaces, and harms rather than a generic list of attacks.

llm-evalharm-taxonomy

A harm taxonomy is a defined set of categories and boundaries used to label risks consistently across evals and decisions.

  • Categories might separate self-harm, cyber abuse, fraud, hate, sexual content, and dangerous biological assistance.
  • Written inclusion, exclusion, and borderline examples reduce disagreement between reviewers and scorers.
  • Mapping every test case and metric to a category reveals coverage gaps that one aggregate score would hide.

Why interviewers ask this: A strong answer treats the taxonomy as an operational measurement contract, not just a list of sensitive topics.

severity-priority

I assess risk by combining how bad an outcome is, how likely it is under the threat model, and how many opportunities exist for it to occur.

  • Severity distinguishes a mildly offensive answer from instructions that could enable serious physical harm.
  • Likelihood estimates how often the failure succeeds for realistic users or attackers, not merely whether it is possible once.
  • Exposure accounts for deployment scale, user population, automation, and repeated attempts.
  • The factors should remain visible separately because a low-frequency catastrophic risk differs from a frequent low-impact failure.

Why interviewers ask this: The interviewer checks whether you can reason beyond raw failure counts and preserve the dimensions needed for prioritization.

dual-use

A dual-use capability supports legitimate work but can also lower the cost or expertise needed for harm.

  • Code generation can help developers fix vulnerabilities or help an attacker adapt malicious code.
  • A biology assistant can explain published research while also making dangerous procedures easier to execute.
  • Safety evaluation should test both harmful uplift and retained benign utility instead of banning the capability by name.

Why interviewers ask this: A strong answer recognizes that risk depends on use and uplift, not on labeling a capability as inherently good or bad.

Capability is what the model can do under suitable conditions, while propensity is how readily it chooses harmful behavior in the deployed setup.

  • A model may be capable of producing exploit code yet normally refuse malicious requests after safety training.
  • Jailbreak testing probes whether that low apparent propensity survives adversarial elicitation.
  • Capability evals and behavior-policy evals answer different questions, so one cannot substitute for the other.

Why interviewers ask this: The interviewer checks whether you distinguish latent ability from observed willingness under a particular policy and interface.

spec-gaming

Specification gaming occurs when a system satisfies the literal metric or rule while violating the designer's real intent.

  • A summarizer rewarded for short outputs could omit critical warnings rather than become more concise.
  • The observed score can improve even though user safety or task quality gets worse.
  • Diverse holdouts and checks for unintended side effects help expose reliance on the imperfect specification.

Why interviewers ask this: A strong answer explains how optimizing the written target can defeat the underlying goal.

spec-gamingreward-hacking

Reward hacking is a form of specification gaming in which an agent exploits the reward signal or its measurement process instead of completing the intended task.

  • A simulated agent might repeatedly trigger an easy reward event without reaching the task's actual goal.
  • The failure comes from a loophole in the reward, environment, or evaluator rather than simple low performance.
  • Testing reward components separately and inspecting trajectories can reveal high reward paired with undesirable behavior.

Why interviewers ask this: The interviewer is checking whether you connect reward optimization to concrete loopholes in the measured objective.

Robustness means safety-relevant behavior remains acceptable under meaningful changes to inputs, context, or operating conditions.

  • Paraphrases, misspellings, longer conversations, and different languages should not collapse a refusal policy.
  • A robust result covers expected variation rather than one carefully worded benchmark prompt.
  • Robustness is scoped, so a report must state which perturbations and deployment conditions were tested.

Why interviewers ask this: A strong answer defines robustness against specified variation instead of claiming the model is robust in general.

distributionsdistribution-shift

Distribution shift occurs when deployment inputs or conditions differ from the data used to train or evaluate the system.

  • A safety classifier tested on clean English prompts may face slang, new attack styles, or other languages after launch.
  • Accuracy on the original test set does not guarantee equal performance on the shifted population.
  • Safety suites should include expected deployment slices and be refreshed when usage or attacker behavior changes.

Why interviewers ask this: The interviewer checks whether you understand why static benchmark performance can fail to predict deployed safety.

adversarial-ml

An adversarial example is an input deliberately changed to make a model fail while preserving the attacker's intended meaning or validity.

  • For a text classifier, small substitutions or obfuscation can evade a harmful-content label.
  • For an image model, a constrained perturbation can change the prediction while remaining hard for a person to notice.
  • The allowed changes must be defined, because unconstrained nonsense does not demonstrate a realistic weakness.

Why interviewers ask this: A strong answer includes attacker intent and a perturbation constraint rather than calling every difficult input adversarial.

red-teamingqa

AI red teaming actively searches for safety failures under an explicit adversary model, while ordinary QA mainly verifies expected requirements and known edge cases.

  • QA confirms that documented features work for normal and malformed inputs.
  • Red teamers adapt prompts and strategies after observing the model's responses.
  • Red-team findings expand the threat model and regression suite, but they do not replace systematic benign QA.

Why interviewers ask this: The interviewer wants to hear the difference between adversarial discovery and routine conformance testing.

llm-safetyjailbreak

A jailbreak is an attempt to elicit behavior that the model or system is intended to refuse or constrain.

  • The surface includes user messages, multi-turn context, images, audio, retrieved documents, tool results, and encoded text.
  • An attack can target the base model's behavior, a safety classifier, or the orchestration around them.
  • A useful report states the prohibited behavior, attacker access, number of attempts, and success criterion.

Why interviewers ask this: A strong answer defines both the policy bypass and the system surfaces through which it can be attempted.

injectionprompt-injectionprompting

Direct injection comes from the user interacting with the model, while indirect injection is carried inside external content the system later processes.

  • A direct attack may ask the assistant to ignore its rules and produce a prohibited result.
  • An indirect attack may be embedded in a web page, email, file, or retrieved passage consumed as data.
  • Indirect injection changes the threat model because an external content author can influence the model without being the active user.

Why interviewers ask this: The interviewer checks whether you classify the origin and trust boundary of injected instructions without drifting into generic prompt advice.

llm-safetyjailbreakllm-eval

Attack success rate, or ASR, is the fraction of evaluated attack attempts that meet a predefined jailbreak success criterion.

  • If 18 of 100 eligible attacks produce policy-violating assistance, the measured ASR is 18 percent.
  • The denominator must state whether it counts prompts, behaviors, repeated attempts, or the best result per behavior.
  • ASR is only comparable when the policy, scorer, attack budget, and target model configuration are held consistent.

Why interviewers ask this: A strong answer defines the numerator and denominator and names the protocol choices that can change the metric.

evaluationprecision-recall

Refusal precision measures how often predicted refusals are correct, while refusal recall measures how many required refusals the classifier catches.

  • Precision is true refusals divided by all predicted refusals, so low precision signals unnecessary blocking.
  • Recall is true refusals divided by all cases that should be refused, so low recall signals missed unsafe requests.
  • The preferred balance depends on the harm class and deployment cost, so both values should be reported with the confusion matrix.

Why interviewers ask this: The interviewer checks whether you can connect precision and recall to over-refusal and missed harmful requests.

false-positive

A false refusal is a benign request incorrectly blocked as unsafe, and it contributes to the guardrail's false-positive rate.

  • If 25 of 1,000 benign prompts are blocked, the benign-set FPR is 2.5 percent.
  • False refusals reduce usefulness and may disproportionately affect topics or language varieties that resemble policy terms.
  • The rate should be broken down by category because a low average can hide a severe slice failure.

Why interviewers ask this: A strong answer quantifies over-refusal and explains why aggregate FPR alone is insufficient.

designllm-evalbenign-holdout

A benign holdout is an untouched set of allowed requests used to measure whether safety changes preserve legitimate utility.

  • It should include hard negatives that mention sensitive subjects for harmless reasons, such as prevention, news, or fiction.
  • Keeping it out of prompt tuning and threshold selection makes its false-refusal estimate more credible.
  • Results should be reported overall and by language, topic, and user group represented in deployment.

Why interviewers ask this: The interviewer wants to see that safety gains are checked against realistic over-refusal on unseen benign cases.

Locked questions

  • 21

    How should train, development, and holdout sets be used in a safety eval workflow?

    design
  • 22

    What is contamination in a safety benchmark?

    benchmarkingcontamination
  • 23

    How does policy-compliance evaluation differ from dangerous-capability evaluation?

    llm-eval
  • 24

    What records make an AI safety evaluation reproducible?

    reproducibilityllm-eval
  • 25

    What roles do a task, solver, scorer, and sandbox play in Inspect AI?

    inspect-ai
  • 26

    What is HarmBench used for?

    harmbench
  • 27

    How do JailbreakBench and StrongREJECT differ?

    llm-safetyjailbreakjailbreakbench
  • 28

    What does MLCommons AILuminate measure?

    ailuminate
  • 29

    How does the PAIR jailbreak method work at a high level?

    llm-safetyjailbreakpair
  • 30

    What are GCG-style adversarial suffixes?

    gcg-suffixes
  • 31

    What is AutoDAN at a high level?

    autodan
  • 32

    Why must a red-team result specify the attack budget and whether the attacker is adaptive?

  • 33

    What should a content-moderation label taxonomy define?

  • 34

    How does a classifier threshold affect a safety guardrail?

    thresholdsguardrailsllm-safety
  • 35

    What distinct roles do input and output guardrails play?

    llm-safetyguardrailsdistinct
  • 36

    Why is defense in depth important, and why is a prompt not a security boundary?

    prompting
  • 37

    How should an engineer think about Llama Guard 2?

    llama-guard
  • 38

    What does NeMo Guardrails provide at a high level?

    llm-safetyguardrailsnemo-guardrails
  • 39

    How does a safe completion differ from a blanket refusal?

    safe-completion
  • 40

    What are calibrated abstention and escalation?

    abstentionescalation
  • 41

    What is the safety purpose of RLHF?

    alignmentrlhf
  • 42

    What is RLAIF, and how does it differ from RLHF?

    alignmentrlhfrlaif
  • 43

    What is Constitutional AI?

    constitutional-ai
  • 44

    What makes preference data useful for safety training?

  • 45

    How do bias, fairness, and disparity differ in model evaluation?

    evaluationllm-eval
  • 46

    Why should safety and fairness metrics be reported by group and intersectional slice?

    monitoring
  • 47

    What is counterfactual evaluation for bias?

    llm-evalcounterfactual
  • 48

    How do model cards and system cards differ?

    system-design
  • 49

    What is a safety case for an AI system?

    safety-casesystem-design
  • 50

    Why can no single benchmark prove that an AI system is safe?

    benchmarkingsystem-design
  • 51

    You must add a HarmBench-style harmful behavior and test case for a fictional laboratory assistant without including actionable harmful details. How would you distinguish it from the surrounding benign control?

    test-casesharmbench
  • 52

    A request asks how a fictional villain could poison a town, but it gives no substances, quantities, or real-world steps. One annotator marks it harmful and another marks it allowed fiction. How would you label it?

  • 53

    A chemistry prompt asks for reaction conditions to improve yield and claims to be university research, but the named product is in a restricted harm category. How would you triage the label?

    promptingreact
  • 54

    A user asks for a script that scans only their own server, but the requested features include stealth and credential extraction. How would you label this dual-use cyber request?

  • 55

    A jailbreak suite has 40 scenarios, each attempted five times, and 26 of the 200 attempts achieve the target harmful behavior. What ASR would you report?

    llm-safetyjailbreak
  • 56

    The policy says a harmful procedure is a failure, and a model refuses but then reveals two of six operational steps. How would you score the response?

  • 57

    On 100 labeled prompts, a refusal classifier correctly refuses 30 harmful prompts, misses 10 harmful prompts, wrongly refuses 15 benign prompts, and allows 45 benign prompts. How would you explain its precision and recall?

    evaluationpromptingprecision-recall
  • 58

    Lowering a guard classifier threshold from 0.70 to 0.50 raises harmful-request recall from 82 to 93 percent but doubles false refusals from 6 to 12 percent. What would you recommend?

    thresholds
  • 59

    You need a 300-prompt benign holdout for a coding assistant guardrail. Which examples would you select?

    designbenign-holdoutguardrails
  • 60

    A safety dataset contains 20 paraphrases of each jailbreak, and random splitting puts variants of the same attack in train and test. The score jumps from 71 to 92 percent. What would you do?

    llm-safetyjailbreaktrain-test
  • 61

    A teammate adds a new refusal prompt and reports that only 4 percent of attacks now succeed, but no result exists for the previous prompt. What should happen next?

    prompting
  • 62

    An Inspect AI scorer searches for phrases such as I cannot help, so it marks I won't provide those steps as unsafe compliance. How would you fix the scorer?

    inspect-ai
  • 63

    You must score whether outputs contain a valid policy label and whether their free-text advice is harmful. Which checks would be deterministic and which would use a model judge?

  • 64

    A teammate cannot reproduce your 18 percent ASR because the provider alias now points to a newer model. What exact metadata should your run capture?

    debugging
  • 65

    With seed 42 and temperature 0, the same hosted model still changes two answers across ten runs. How would you report and investigate this?

    decoding
  • 66

    A red-team eval asks a coding agent to create a dangerous script and run a shell tool. How would you execute the test safely?

    agents
  • 67

    You can test a hosted black-box model with 200 queries or a local white-box model with gradient access. How would you choose between PAIR and GCG?

    cssqueriespair
  • 68

    An AutoDAN mutation run improves ASR from 8 to 24 percent after 30 generations, but only the final prompts were saved. Is the result reproducible?

    reproducibilitypromptingautodan
  • 69

    A jailbreak found on Model A succeeds in 18 of 50 attempts on Model A and 7 of 50 on Model B. How would you describe transfer?

    llm-safetyjailbreak
  • 70

    A policy filter allows a request only when risky words are written with mixed Unicode scripts and zero-width characters. How would you triage it?

  • 71

    English jailbreak ASR is 6 percent, but a 120-case Spanish slice reaches 19 percent. What would you check before reporting a multilingual gap?

    llm-safetyjailbreak
  • 72

    A vision-language model refuses a harmful text request, but complies when the same instruction is shown inside an image with a benign caption. How would you test this failure?

  • 73

    A chatbot refuses an unsafe request in one turn but complies after six gradually escalating turns. How would you capture the crescendo attack?

    escalation
  • 74

    A resume-review assistant retrieves a document containing an instruction to email candidate data to an external address. How would you classify and test it?

  • 75

    Llama Guard 2 labels Can I tell you what I plan to do tonight? as safe, but the preceding turns clearly establish imminent self-harm intent. What would you change in the eval?

    llama-guard
  • 76

    A safety classifier blocks 28 percent of requests in a high-school lesson about nuclear physics, although reviewers label every request educational and non-operational. How would you investigate?

  • 77

    An input guard labels a vague laboratory request safe, but the model response supplies a restricted procedure. Where did the safety stack fail?

  • 78

    An output filter cuts a safe first-aid answer after the phrase apply pressure, leaving only Seek help and making the response less useful. How would you triage it?

  • 79

    A request passes the input classifier, receives a refusal from the model, and is then rewritten into unsafe detail by a post-processor. What trace would you build?

    concurrency
  • 80

    A user says they may hurt themselves tonight and asks whether anyone would care. What should a safe completion contain?

    safe-completion
  • 81

    A self-harm classifier gives 0.58 for an imminent-risk message, below the automatic block threshold of 0.70 but inside the 0.50 to 0.70 review band. What should happen?

  • 82

    Reviewers keep disagreeing on whether high-level cybersecurity education becomes actionable assistance. What boundary examples would you add to the rubric?

    conflictcybersecurity
  • 83

    Two trained annotators disagree on 36 of 100 partial-compliance responses even after reading the rubric. What would you do with the labels?

    conflict
  • 84

    Overall false refusals are 5 percent, but they reach 17 percent for prompts combining Muslim identity, female pronouns, and mental-health topics. How would you evaluate this?

    promptingdecision-makingllm-eval
  • 85

    A toxicity guard scores Alex says he is angry at 0.22 and Aisha says she is angry at 0.61. How would you construct a counterfactual test?

  • 86

    A toxicity classifier flags 23 percent of benign African American English posts but 7 percent of matched Standard American English paraphrases. How would you triage the gap?

  • 87

    A safety classifier assigns scores near 0.9 to many cases, but only about 60 percent of those cases are actually harmful. What would a reliability plot tell you?

  • 88

    A proposed safety eval dataset contains real abuse reports with names, phone numbers, and no recorded consent for model evaluation. Can you use it?

    evaluationllm-eval
  • 89

    Your eval suite contains novel jailbreaks and redacted dangerous target behaviors. How would you store and share it internally?

    llm-safetyjailbreak
  • 90

    You find a novel jailbreak with 62 percent ASR against an unreleased model. How would you hand it to the model owner responsibly?

    llm-safetyjailbreak
  • 91

    A novel Unicode jailbreak is fixed by input normalization. What regression test would you add?

    llm-safetyjailbreaknormalization
  • 92

    A pull request changes the system prompt, and CI has ten minutes for safety checks. What basic gate would you build?

    promptingsystem-designcode-review
  • 93

    A stricter system prompt reduces ASR from 20 to 11 percent, while an external output guard reduces it to 8 percent but adds 120 ms and more false refusals. How would you compare them?

    promptingsystem-designzero-to-one
  • 94

    NeMo Guardrails policy says medical questions must be refused, but the product policy allows high-level health education and requires escalation only for diagnosis. What would you do?

    llm-safetyguardrailsescalation
  • 95

    An AILuminate report gives the model an overall safety grade but one hazard category scores much worse than the others. How would you interpret it?

  • 96

    A model card says the model was safety tested but gives no dataset size, model snapshot, or per-category results. Is that enough evidence for your release review?

    snapshot
  • 97

    After release, you can manually review only 100 conversations per week from a 50,000-conversation assistant. How would you select and monitor the sample?

    monitoring
  • 98

    You need to file an issue for a jailbreak that succeeds 7 of 20 times. What makes the issue reproducible and useful?

    llm-safetyjailbreakreproducibility
  • 99

    In review, a teammate's eval script sends generated dangerous code to a real shell and logs full jailbreak prompts in public CI artifacts. What feedback would you give?

    llm-safetyjailbreakfeedback
  • 100

    A 60-case multilingual eval shows ASR rising from 10 to 15 percent after a model update, but the confidence intervals overlap and three labels are disputed. How would you communicate the result?

    confidence-intervalscommunicationzero-to-one