Sample questions
Question 1Easy
Short-term memory for an agent usually means:
- The GPU's RAM size
- The tool's source code
- The current context
- Fine-tuned model weights
Answer: C. The current context
Explanation
Long-term memory is typically stored externally (e.g. a database or vector store) and retrieved when needed.
Step-by-step solution
- Short-term memory is what the agent can see right now.
- That is the current context: recent messages, tool results and notes.
- Long-term memory is stored outside and retrieved.
Why the other options are wrong
- A. GPU memory is hardware, not agent memory.
- B. Tool source code is not memory.
- D. Fine-tuned weights are long-lasting, not short-term.
Tip: Short-term = in context; long-term = in a store.
Question 2Easy
When a tool returns an error, a well-designed agent should:
- Adjust or report it
- Crash the application
- Repeat the identical call forever
- Ignore it and claim success
Answer: A. Adjust or report it
Explanation
Clear error messages in observations help the model recover.
Step-by-step solution
- Read the error message.
- Fix the arguments, try another approach, or report the failure honestly.
- Never crash or pretend it worked.
Why the other options are wrong
- B. Crashing loses all progress.
- C. Identical retries forever waste cost and never succeed.
- D. Claiming success hides the failure from users.
Tip: On error: adjust, retry with limits, or report.
Question 3Easy
Why set a maximum number of steps for an agent?
- To improve embedding quality
- To bound loops and cost
- Because tools only work once
- To make answers longer
Answer: B. To bound loops and cost
Explanation
Agents can get stuck repeating actions; step and budget limits bound the damage.
Step-by-step solution
- Agents can get stuck repeating actions or wandering.
- Each step costs tokens, time and money.
- A step limit bounds loops and cost.
Why the other options are wrong
- A. Step limits do not affect embeddings.
- C. Tools can usually be called many times.
- D. The goal is to bound runs, not lengthen answers.
Tip: Always cap an agent's steps and budget.
Question 4Easy
In LLM tool use, the model typically outputs:
- The tool's source code
- A screenshot
- Executable machine code for the CPU
- A structured tool call
Answer: D. A structured tool call
Explanation
The application executes the call and returns the result to the model.
Step-by-step solution
- The app tells the model which tools exist and their schemas.
- The model replies with a structured tool call: tool name plus arguments (often JSON).
- The app executes it.
Why the other options are wrong
- A. The model does not write the tool's code.
- B. Tool calls are structured text, not images.
- C. Models output text tokens, not machine code.
Tip: Model outputs a call; it does not run it.
Question 5Medium
Parallel tool calls are useful when:
- Only one tool exists
- Each call depends on the previous result
- Independent lookups can run at the same time
- Tools must run in order
Answer: C. Independent lookups can run at the same time
Explanation
Running independent calls concurrently reduces total latency.
Step-by-step solution
- Some lookups do not depend on each other, e.g. weather in two cities.
- They can be requested in the same step.
- Running them at once cuts total waiting time.
Why the other options are wrong
- A. With one tool there is nothing to parallelise, though repeat calls could be.
- B. Dependent calls must wait for earlier results.
- D. Ordered calls must run sequentially.
Tip: Independent calls: run together. Dependent calls: run in order.
Question 6Medium
Giving an agent read-only database credentials when it only needs to read follows:
- Chain-of-thought
- Least privilege
- Few-shot prompting
- Defence by obscurity
Answer: B. Least privilege
Explanation
Minimal permissions limit damage if the agent misbehaves or is manipulated.
Step-by-step solution
- The agent only needs to read data.
- Read-only credentials mean it cannot change or delete anything.
- Giving only the access needed is least privilege.
Why the other options are wrong
- A. Chain-of-thought is a prompting technique.
- C. Few-shot prompting is about examples in prompts.
- D. Obscurity hides things; least privilege removes access.
Tip: Grant the minimum access the task needs.
Question 7Medium
An agent needs today's exchange rate. The best approach is to:
- Rely on training data
- Call a rates API tool
- Ask the user to wait a year
- Guess a typical value
Answer: B. Call a rates API tool
Explanation
Live data must come from tools; model knowledge is frozen at training time.
Step-by-step solution
- Exchange rates change constantly.
- The model's training data is frozen at a past date.
- So call a live rates API tool.
Why the other options are wrong
- A. Training data is out of date for live values.
- C. Waiting is not an answer.
- D. Guessing gives wrong figures.
Tip: Live data: call a tool.
Question 8Medium
Logging an agent's full trace (prompts, tool calls, results) is important mainly for:
- Debugging and audit
- Reducing token use
- Training embeddings
- Making responses faster
Answer: A. Debugging and audit
Explanation
Traces show where a run went wrong and support accountability.
Step-by-step solution
- A trace records each prompt, tool call and result.
- When a run fails, you can see the exact step that went wrong.
- It also provides an audit record of what the agent did.
Why the other options are wrong
- B. Logging adds storage; it does not cut tokens.
- C. Traces are not used to train embeddings.
- D. Logging does not speed responses.
Tip: No trace, no debugging.
Question 9Hard
Why are evaluation suites for agents harder to build than for single-turn Q&A?
- Tools are always deterministic
- Many valid paths exist
- Agents have no outputs
- Agents cannot be run twice
Answer: B. Many valid paths exist
Explanation
Agent evals often score final outcomes and safety constraints in sandboxed environments rather than exact steps.
Step-by-step solution
- An agent can reach the same goal by many different sequences of steps.
- So there is no single expected trace to compare against.
- Evals usually check final outcomes and safety rules instead.
Why the other options are wrong
- A. Tools are often not deterministic.
- C. Agents do produce outputs.
- D. Agents can be rerun, though results may vary.
Tip: Grade the outcome, not the exact path.
Question 10Hard
A tool call might be retried after a timeout. Why should tools like "create order" be idempotent (e.g. using a request ID)?
- To make the tool faster
- To let the model skip arguments
- Because LLMs cannot retry
- So a retry can't create duplicates
Answer: D. So a retry can't create duplicates
Explanation
Idempotency keys ensure repeated calls have the same effect as one.
Step-by-step solution
- A timeout does not prove the first call failed; the order may already exist.
- A retry could create a second order.
- A request ID lets the server recognise the repeat and return the original result.
Why the other options are wrong
- A. Idempotency is about correctness, not speed.
- B. The model must still supply arguments.
- C. Agents and apps retry calls routinely.
Tip: Side-effect tool + retries = use an idempotency key.
Practise all 32 questions free
The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.
Open this topic in the app →