53 questions0s
See answers only after you submit
1
An e-commerce marketplace needs to classify the sentiment of 50,000 product reviews every night for a report sent to the board at 8 a.m. Cost is the top priority. Which approach fits best?
2
A job reading Message Batches API results joins them with the source data by position: result i corresponds to review i. The report shows many reviews with the wrong sentiment even though each individual result looks reasonable. Cause and fix?
3
An automated QA pipeline sends 3840x2160 screenshots to Claude Opus 5.5 to check whether the "Checkout" button is visible. Image token cost is higher than expected and the task does not need fine detail. Which change is most effective?
4
A team is moving a Python service to Amazon Bedrock at the request of the procurement department. A colleague changes the code by keeping
anthropic.Anthropic(), switching base_url to the Bedrock endpoint and keeping model="claude-opus-5-5". All requests fail. What is the right approach?5
Select all that apply
An application running on the Claude API plans to move to Google Vertex AI. According to the per-platform feature table, which components must be redesigned because they are not available on Vertex AI? (Choose 2)
6
A legal Q&A app on the Claude API lets many employees ask about the same 80-page contract PDF throughout the working day. Each request currently reads the file, base64-encodes it and sends it in full. Which approach cuts cost and payload while staying correct?
7
An order-extraction service occasionally throws
JSON.parse errors in production. Logs show the failing responses all have stop_reason: "max_tokens". What is the most correct handling?8
A TypeScript script sends 3,000 Messages API requests at once with
Promise.all to summarize tickets needed for an on-call shift within the next 30 minutes. Most requests return 429. Which change fits best?9
A team needs to convert 300 files from callback APIs to
async/await in a large Node.js codebase, using Claude Code. Which approach best fits the team's code review and SDLC?10
A small change to a ticket-classification prompt was deployed on Friday afternoon. Over the weekend the misclassification rate doubled, but the team spent half a day finding the cause. Which measure best prevents this?
11
A team of 40 developers uses Claude Code through Amazon Bedrock with
"model": "sonnet" in .claude/settings.json. After some people update Claude Code, review results differ noticeably between machines. How do you ensure everyone uses the same model version?12
A PM requires that the customer-support chatbot (calling the Messages API from the backend) "never promises a refund". A developer adds this rule to the backend repo's
CLAUDE.md. The chatbot still promises refunds. The correct explanation?13
A chatbot backend keeps one global
messages array in memory, and every customer appends messages to that same array "to take advantage of the prompt cache". One customer receives an answer that mentions another person's order. What is the correct design?14
A ticket-classification schema has
category with enum ["billing", "shipping", "account"]. For a UI feedback ticket, the model still picks one of the three groups and the statistics are skewed. What is the most reasonable schema fix?15
A platform team publishes the Claude Code plugin
release-tools. This plugin only works when the secrets-vault plugin from the same marketplace is enabled. What is the correct way to declare this?16
A bank requires that all AI traffic go through its existing AWS account, with access controlled by IAM and billing through the AWS contract. The application only needs the Messages API, tool use, streaming and prompt caching. Which option meets the infrastructure requirements?
17
A production application pins a model ID that the deprecation page says will be retired in 4 months. What is the most reasonable lifecycle plan?
18
The audit department wants transaction-classification results to be "repeatable" and verifiable later. The model is Claude Opus 5.5. Which proposal is correct?
19
A zero-shot prompt classifying customer feedback as "complaint", "suggestion" or "praise" gives unstable results on borderline feedback, and the label format sometimes drifts. What is the most reasonable next improvement?
20
A subagent uses
claude-opus-5-5 only to find relevant files in a repo, and its thinking cost is high. A developer tries sending thinking: {type: "disabled"} and gets a 400 error. What is the most appropriate way to cut cost?21
A routing system needs to label 2 million chat messages a day, with low latency because users are waiting. The eval shows the smallest model still meets the required quality. Which choice fits best?
22
Select all that apply
Old code uses
tool_choice: {type: "tool", name: "extract_invoice"} to force a tool call. After switching to claude-sonnet-5-5, every request returns 400. Which two changes are correct? (Choose 2)23
An agent with 25 tools and a 30K-token system prompt already has
cache_control set, but cache_read_input_tokens is almost always 0. The tools list is built from a per-user permission map, and its order changes between requests. What is the most appropriate fix?24
Leadership wants to know the weekly Claude API cost of each feature (chatbot, summarization, classification). What is the most appropriate way to track it?
25
A TypeScript service calls the Claude API with a hand-written
fetch and retries every error 5 times, including 400 errors. The logs are full of repeated errors and debugging is costly. What is the most appropriate proposal?26
The frontend wants to show Claude's answer word by word. A developer proposes that the browser open a websocket straight to Anthropic's API, using an API key embedded in the JavaScript bundle. The correct assessment?
27
An invoice-processing flow has fixed steps: extract information from a PDF, check the tax ID against the ERP system, post the journal entry. Auditors require predictable behavior that is easy to test. Which architecture fits best?
28
A research agent must read 30 long documents to write a vendor comparison report. The context fills up midway, and the report misses details and mixes them up between vendors. Which architectural change fits best?
29
Select all that apply
Which benefits are correct when using subagents in a manager/worker system? (Choose 2)
30
A customer wants Anthropic to run the agent loop, but every bash command, file operation and piece of agent code must run inside their VPC, without opening inbound connections from outside. Which deployment model fits?
31
A team needs a support agent running on its own infrastructure, using only 3 self-written business tools (
get_order, get_policy, refund_order); refund_order must refuse on its own when the amount exceeds 2 million VND or the order doesn't belong to the chatting customer, and the team wants the least loop code to maintain itself. Which choice fits best?32
An agent built with the Agent SDK has Bash access in a repo. Requirement: it must never, under any circumstances, run
git push --force. The right measure?33
A Python team is building a multi-branch loan-application process (missing documents, needs appraisal, auto-approve) that runs for several days, needs to persist state between steps and pause at some nodes to wait for an officer's approval. At a high level, which framework fits best?
34
An operations agent reads logs; every call to the
fetch_logs tool returns 40,000 lines. After a few turns, the agent forgets its original goal and repeats earlier analysis. What is the most appropriate handling?35
To make the model "pay more attention" to a customer's email, a developer inserts the email verbatim into the
system prompt right after the instructions. The correct assessment?36
Claude Code confidently states "the
applyCoupon function already handles expired codes in src/coupon.ts line 88". The file has only 60 lines. The lesson and the right practice?37
Select all that apply
Which practices are correct defensive parsing when consuming Claude's output? (Choose 2)
38
A refund agent uses structured outputs. The output matches the schema:
{"order_id": "A2041", "amount_vnd": 350000}. But order A2041 belongs to a different customer than the person chatting. Which check layer should have blocked it?39
In a 3-hour Claude Code session, you said "don't edit files in
src/generated/" at the start. After auto-compact runs, Claude edits a file in that folder. What is the most appropriate prevention?40
An incident-summary prompt gives results that are too long. A developer adds "BE CONCISE!!! EXTREMELY IMPORTANT" and now the model drops the root cause in some summaries. What is the best adjustment?
41
An internal pricing engine (REST API) needs to be used by developers' Claude Code, a sales chatbot and a quoting agent. The pricing team wants to maintain and release it independently of the applications. What fits best?
42
A stdio MCP server written in Python works fine when individual functions are tested, but Claude Code reports it cannot connect. The code has the line
print(f"Loaded {len(config)} keys") at startup. The cause?43
A developer wants Claude to answer questions by querying an internal PostgreSQL database behind a firewall. He turns on the code execution and web fetch server tools, expecting Claude to connect on its own. The correct assessment?
44
A team wants Claude Code to always follow the company's 12-step release process (check the changelog, tag the version, update docs from a template), invocable with one command and loading the detailed content only when needed. Which choice fits best?
45
Select all that apply
A customer-care agent has a
send_email tool that sends email externally. Which two measures fit the approval pattern? (Choose 2)46
The
get_shipping_quote tool calls a carrier's API and occasionally times out. The agent loop currently lets the exception propagate, breaking the whole customer-support session. What is the most correct handling?47
An insurer's public chatbot is constantly hit by users trying role-play and scripted scenarios to force it to produce policy-violating content. Which set of measures fits best?
48
An email assistant reads incoming email (from anyone) and drafts replies for staff. What is the safest way to put the email content into the request?
49
A CI pipeline for three environments (dev, staging, prod) shares one long-lived Claude API key stored in a repo variable. Which least-privilege improvement fits best?
50
Select all that apply
A data-analysis agent has a tool that runs SQL on the production database. You must prevent any destructive operation, even under prompt injection. Which two measures fit best? (Choose 2)
51
A developer wants Claude Code to know their personal sandbox URL and test account for the
acme-shop project, but doesn't want to commit this information to the repo. Where should it go?52
A CI script runs
claude -p for a long task and needs to push each event (tools called, generated text) to a dashboard in real time, without waiting until the end. Which option fits?53
A refund agent occasionally refunds the wrong amount. Requests all return 200, and
stop_reason is normal. What is the most correct way to find the source of the error?