AWS Certified AI Practitioner
AWS
25 free questions, no account
View certification – AWS Certified AI PractitionerQuestion bank: 120 · timed mock exam: 120 min
Official exam page on the vendor's site (opens in a new tab) Official exam guide (opens in a new tab) Official prep course (opens in a new tab)
Exam guide: format, domains and how to prepare
Compare: Claude Certified Architect – Foundations vs Claude Certified Associate – Foundations
Free: 25 questions in study mode, all domains, no account.
Subscription: the 120 questions of this certification, the timed exam mode, and all other certifications too.
Secure card payment (Stripe) · No commitment · Cancel online
€9.99 / month
SubscribeThe 120 questions cover 5 domains: Agentic Architecture & Orchestration, Claude Code Configuration & Workflows, Prompt Engineering & Structured Output, Tool Design & MCP Integration, Context Management & Reliability. 25 of them are free, without an account.
Answer at your pace: each answer is corrected straight away, with an explanation and the link to the documentation it relies on.
A timed exam of 120 minutes, with a question map to flag and come back to questions before you submit.
Your score is broken down by domain, so you know what to review first.
Every question is written from the public documentation, never copied from the exam. You can contest an answer from study mode.
A travel company builds a booking assistant directly on the Claude Messages API with four client tools. Its loop ends as soon as a response contains any text block. In testing, the assistant often replies "Let me check the available flights" and the conversation stops there, with no flight search ever executed. How should the loop's control flow be changed?
Correct answer: C
When Claude wants a client tool, the response carries stop_reason "tool_use" plus tool_use blocks; the application must run the tools, return the results and call the API again. The loop only finishes when Claude produces output with no tool calls.
A logistics agent exposes two tools: track_parcel ("Gets parcel info.") and locate_shipment ("Finds a shipment."). Claude often calls the wrong one: track_parcel only accepts carrier tracking numbers, while locate_shipment searches internal shipment IDs. What change does Anthropic's tool-definition guidance recommend first?
Correct answer: A
The guidance is to provide extremely detailed descriptions — what the tool does, when it should and should not be used, what each parameter means and its caveats — aiming for at least 3–4 sentences per tool. Descriptions come first; input_examples are a complement for complex tools.
A tech lead wrote the team's API conventions in CLAUDE.local.md at the repository root. Claude Code follows them on her machine, but colleagues and the CI job never apply them. The file is listed in .gitignore, as the documentation suggests. What change makes the conventions apply to every clone of the repository?
Correct answer: D
A project CLAUDE.md lives in ./CLAUDE.md or ./.claude/CLAUDE.md and is shared with the team through version control. CLAUDE.local.md is meant for private per-project preferences that are not checked in, so it never reaches other clones.
A company uses Claude Code's managed Code Review on GitHub. Developers complain that it flags too many minor naming remarks in legacy folders, and they start ignoring all its comments. The team wants to state explicitly what should be flagged, at which severity, and how findings are reported — for reviews only, without changing Claude's behavior in other Claude Code tasks. What should they do?
Correct answer: C
REVIEW.md holds review-only instructions; the documentation says to use it to say what the team wants flagged, at what severity, and how findings are reported.
In long support conversations, an agent calls get_account_history several times. Each call returns about 60 fields per transaction, of which the agent needs five. After a dozen turns the agent starts overlooking facts the customer stated early on, and costs have tripled. Which change addresses the root cause?
Correct answer: B
Verbose tool results accumulate in the context and crowd out relevant facts. Anthropic recommends that tools include only the fields Claude needs for its next step, and that responses which could use up lots of context use pagination, filtering or truncation.
A lead research agent delegates to subagents with one-line instructions such as "research heat pump adoption in Europe". Reviewers notice that several subagents run the same searches while some angles of the question are never covered. According to Anthropic's account of its multi-agent research system, what should each delegated task description contain?
Correct answer: B
Anthropic states that each subagent needs an objective, an output format, guidance on the tools and sources to use, and clear task boundaries; without detailed task descriptions agents duplicate work and leave gaps.
A custom tool that queries an inventory service returns the single word "failed" whenever the upstream service rate-limits it. The agent then either retries instantly in a tight loop or tells the customer the item does not exist. How should the tool result be returned so that Claude can react appropriately?
Correct answer: B
The tool_result can carry is_error: true, and the documentation asks for instructive error messages that say what went wrong and what Claude should try next (for example, retry after a given delay) instead of a generic "failed".
A team's /dependency-audit skill reads hundreds of lockfile entries and prints long intermediate listings, which fill the developer's main Claude Code conversation. Which SKILL.md frontmatter setting runs the skill in its own subagent context instead?
Correct answer: A
Setting context to fork runs the skill in a forked subagent context. That subagent does not see the conversation history, so the skill's instructions must be self-contained.
Claude summarizes incident tickets for an on-call dashboard. Despite a long paragraph of formatting instructions, the layout of the summaries keeps drifting from one ticket to the next. According to Anthropic's prompting best practices, which technique is one of the most reliable ways to fix this?
Correct answer: B
Examples are one of the most reliable ways to steer Claude's output format, tone and structure; the guidance is to include 3–5 relevant, diverse examples, wrapped in tags.
A company is piloting a Claude support chatbot and wants a metric that tells it whether the bot hands conversations to people at the right moments. Which measure does Anthropic's customer support guide describe for this?
Correct answer: A
Escalation efficiency measures Claude's ability to recognize when a query needs human intervention, tracked as the share of correctly escalated conversations versus those that should have been escalated but were not.
Yes. 25 questions of this certification are free in study mode, across all its domains, without a subscription and without registration. The account is created when you subscribe, at checkout.
One monthly subscription covers all certifications and the timed practice exams. There is no minimum period. You cancel online, at any time, with the "Cancel your contract" function in My account; cancellation takes effect at the end of the month already paid, and no further payment is taken.
Every question is original, written from the vendor's public documentation. Each answer comes with an explanation and a link to the documentation page it relies on. InfraPrep is not affiliated with the vendors, and certification names belong to their owners.
The questions are written in English, also on the French version of the site.
Yes, the catalog changes over time: new certifications and new questions are added.
AWS
25 free questions, no account
View certification – AWS Certified AI PractitionerMicrosoft
25 free questions, no account
View certification – Azure AI Apps and Agents Developer AssociateMicrosoft
25 free questions, no account
View certification – Azure AI Fundamentals