Français
Applied AI · Advanced 🔴 · Session 2
❓ Interactive quiz
← Return to program 📄 Source .md

Quiz — Advanced Level, Session 2

“Advanced tool use”

Program : Applied AI — Yann Isola Format: 10 MCQs (Multiple Choice Questions), certification level Claude Certified Architect Recommended scale: 1 point per question, mastery threshold: 8/10 Duration : 20 mins

The commented corrections are at the end of the document.


Q1 — Life cycle

Your application receives a response from the Messages API with stop_reason: "tool_use". What does this field mean and what is the correct next step?

Q2 — Tool_result format

What message is valid to return a tool result to the Anthropic API?

Q3 — Chat history

After receiving a block tool_use , a developer constructs the following query by only including: the initial user message + a user message with the tool_result . What is happening?

Q4 — tool_choice

You build an intention router: each user message must be classified by ONE of the 5 routing tools available, depending on the model. What tool_choice is the most suitable?

Q5 — Structured output

What is the main advantage of the “false tool” pattern (tool never executed + tool_choice: {"type": "tool", ...}) compared to the instruction “reply only in JSON” in the prompt?

Q6 — Taxonomy of errors

An extraction pipeline returns valid, schema-compliant JSON, but systematically categorizes “refund” tickets as technique instead of facturation . What is the nature of the error and the priority remedy?

Q7 — is_error

Your tool get_invoice throws an “invoice not found” exception. What is the best practice?

Q8 — Multi-tool

A model response contains two blocks tool_use (ids toolu_A And toolu_B ). What is the correct way to return results?

Q9 — Security

Which of these statements correctly describes the tool use security model?

Q10 — max_tokens and tool_use

A response comes with stop_reason: "max_tokens" while the last block of content is a tool_use whose input seems incomplete. Which analysis is correct?