All jobs / AI engineer / AI Safety & Guardrails

AI engineer interview question · 0–1 years

What is a guardrail in an LLM application, and where does it sit?

The strongest answer

A check outside the model that enforces policy the prompt cannot guarantee — on the input before the call and on the output before it reaches a user or a tool — written as code or a separate classifier

Why it works

Exactly — the prompt asks, the guardrail checks. Because it runs outside the model, it still works on the day the model ignores its instructions.

What a good answer covers

Answers that fall short

Who gets asked this

More AI Safety & Guardrails questions