LLM Evaluation and Safety
Test what you know about evaluating and securing LLM applications: evaluation sets, LLM-as-a-judge, RAG metrics, the OWASP Top 10 for LLMs, guardrails, sensitive data and model upgrades.
Question 1 of 15
Question 1
What is the best first step when building an evaluation for an LLM feature?
Not this time. Start with specific, measurable success criteria, then collect realistic inputs with edge cases. Without criteria, there is nothing to grade against.
Question 2
Which bias did Zheng et al. find in LLM judges comparing two answers?
Not this time. They documented position bias (favouring an answer because of where it appears), verbosity bias (favouring longer answers) and self-enhancement bias (favouring their own outputs). Judging in both orders corrects position bias.
Question 3
In Ragas, what does the faithfulness metric measure?
Not this time. Faithfulness is the share of claims in the answer that the retrieved context supports, from 0 to 1. A low score means the model added things the sources do not say.
Question 4
Which risk is number 1 (LLM01) in the OWASP Top 10 for LLM Applications 2025?
Not this time. LLM01:2025 is prompt injection: input, typed directly or hidden in content the model reads, that changes its behaviour.
Question 5
A model writes a summary that your web dashboard inserts as raw HTML. Which OWASP risk is this?
Not this time. Passing model output to a browser, database or shell without validation and encoding is LLM05:2025, improper output handling. A fooled model could inject a script.
Question 6
Where should an API key the agent needs be kept?
Not this time. Assume the system prompt can leak. Keep secrets out of prompts entirely: the tool code holds the credential and the model only asks for the action.
Question 7
Which guardrail is the strongest protection for an irreversible action such as sending a payment?
Not this time. Prompts can be overridden and classifiers can be fooled. A permission check in code, limits on amounts and a person's approval enforce the rule whatever the model outputs.
Question 8
Why build evaluation sets from real (anonymised) traffic rather than only hand-written examples?
Not this time. Real inputs have the messiness, length and range that hand-written examples lack. Evaluations should mirror the real distribution, including edge cases, or they overstate quality.
Question 9
A provider announces your model will be retired. What does Anthropic's deprecation policy promise and advise?
Not this time. Anthropic gives at least 60 days' notice before retiring a publicly released model and advises testing with newer models well before the retirement date.
Question 10
What is the main reason to calibrate an LLM judge against human labels?
Not this time. A judge is a measuring instrument. Checking how often it agrees with people on a labelled sample shows whether its scores can be trusted, and should be repeated when the judge model or prompt changes.
Question 11
Two prompt versions are tested on the same 200 questions. What is the best way to compare them?
Not this time. Look at the per-question differences (a paired comparison) and their confidence interval. Pairing removes the variation from question difficulty, so the interval is much tighter than comparing two separate scores.
Question 12
According to OWASP, how should you treat your system prompt?
Not this time. Assume it can leak. Keep credentials and permission rules out of it and enforce controls in code, so a leak exposes nothing harmful.
Question 13
What is the key difference between a jailbreak and prompt injection?
Not this time. A jailbreak tries to make the model break its own safety rules. Prompt injection, often hidden in content the model reads, hijacks what the application does with its tools and data. OWASP treats jailbreaking as a form of injection.
Question 14
What is a backdoor in a poisoned model?
Not this time. Poisoned training or fine-tuning data can plant behaviour that stays hidden until a specific trigger appears, which makes it hard to find in ordinary testing.
Question 15
An attacker scripts thousands of long requests to run up a public app's model bill. What is this called?
Not this time. Denial of wallet, part of OWASP's unbounded consumption risk. Rate limits, quotas, input and output caps and a budget with alerts defend against it.
Sources
Where each fact comes from
- 1Define success criteria and build evaluations
- 2Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena
- 3Faithfulness
- 4Context Recall
- 5OWASP Top 10 for LLM Applications 2025
- 6LLM05:2025 Improper Output Handling
- 7Reduce prompt leak
- 8Model deprecations
- 9A statistical approach to model evaluations
- 10LLM07:2025 System Prompt Leakage
- 11LLM04:2025 Data and Model Poisoning
- 12LLM10:2025 Unbounded Consumption