A team wants to stop harmful or off-topic output before it reaches users. What is the right place for that check?
- Exam domain
- Developing and deploying generative AI solutions
- Difficulty
- Medium
- In this mock
- 5 questions on this domainPractise this domain
Why A is the answer
Guardrails that check inputs and outputs at run time
Runtime guardrails screen what goes in and what comes out, catching harmful, sensitive or off-topic content that training alone does not prevent.
Remember: Guardrails run at request time.
In detail
- Check input and output.
- Log what was blocked.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Guardrails that check inputs and outputs at run timeRight
Guardrails run at request time.
B. In the user manual, which tells users which questions are allowed and which are notWrong
Documentation does not enforce anything.
C. In the model temperatureWrong
Temperature is not a safety control.
D. In the training data onlyWrong
Training data cannot cover every runtime case.
Use case
An illustrative scenario, not a real incident.
Illustrative: a banking bot blocks replies that include account numbers.
See it in different ways
flowchart LR S0["Check input"] --> S1["Generate"] --> S2["Check output"] --> S3["Return or block"]
How to read this chart
- Read it in order: Check input, then Generate, then Check output, then Return or block.
sequenceDiagram participant P0 as User participant P1 as Guardrail participant P2 as Model P0->>P1: input P1->>P2: allowed input P2-->>P1: output P1-->>P0: checked output
How to read this chart
- 1. User sends "input" to Guardrail.
- 2. Guardrail sends "allowed input" to Model.
- 3. Guardrail gets a reply from Model: "output".
- 4. User gets a reply from Guardrail: "checked output".