Be able to read a Messages API request and predict its behavior, then choose the right parameter for a goal. The single most important thing: know that conversation state lives in the messages array you send, and that temperature plus top_p jointly control output consistency.
Start practicing
Claude Model Fundamentals — choose a session length
Free · No account required
Domain overview
This domain covers the core mechanics of the Claude Messages API: how the messages array and roles work, why XML tags structure prompts, how temperature and top_p shape output determinism, and how streaming changes response delivery. Questions are scenario-based, asking you to predict behavior or pick the correct parameter or feature for a stated goal.
Exam objectives
How appending a message to the messages array continues a multi-turn conversation with Claude
Using XML tags to delimit instructions, context, and examples so Claude parses prompts reliably
Adjusting temperature and top_p to make summarization output predictable and consistent
Enabling streaming in the Messages API so tokens render incrementally instead of in one block
Assuming each request is stateless and forgetting that prior turns must be resent in the messages array to preserve context.
Lowering only temperature while leaving top_p high, or raising both, instead of tightening both for deterministic output.
Confusing streaming with a larger max_tokens or a different model, when it is a separate API parameter controlling delivery.
Click any question to see the full explanation and answer options, or start a focused practice session above.
An engineering team is designing a RAG system using Claude 3.5 Sonnet. They need to ensure the model focuses exclusively on the provided context without hallucinating external knowledge. Which architectural approach best ensures high adherence to provided context?
2Which capability is a primary benefit of using Claude 3.5 Sonnet compared to smaller, legacy models when processing complex, multi-step instructions?
3Refer to the exhibit. An application sends the provided JSON payload to the Anthropic API. What is the expected behavior regarding the system prompt?
4Which of the following describes the purpose of 'Role' assignment in the Messages API?
5A user is experiencing 'Model Refusal' when processing a document that contains sensitive (but safe) medical information. What is the most likely cause?
6When fine-tuning or optimizing prompts for Claude, what is the impact of excessive 'System Prompt' length?
7A developer wants Claude to act as a specialized technical support assistant for a specific product. Which component of the API call is most appropriate for defining the assistant's persona and product boundaries?
8Refer to the exhibit. What is the specific purpose of the 'stop_sequences' parameter in this JSON payload?
9When dealing with extremely large documents, what is the best strategy to maximize Claude's accuracy in information extraction?
10Why should developers use the Anthropic Messages API instead of legacy Completions API?
11Which of the following is an effective technique for reducing hallucination in Claude when answering fact-based questions?
12Refer to the exhibit. What will happen if the user adds a new message to the 'messages' array?
13A developer needs to ensure that Claude 3.5 Sonnet consistently follows a specific JSON schema for structured data extraction. Which implementation strategy provides the highest level of deterministic output format control?
14Which TWO of the following statements accurately describe the characteristics of the Claude 3.5 Sonnet model's context window and performance?
15When designing a prompt for Claude, which technique is most effective at reducing the risk of 'hallucination' or factually incorrect information?
16Which THREE factors are primary considerations when calculating the cost of using the Anthropic API in a production environment?
17What is the primary purpose of using XML tags within a prompt when working with Claude models?
18What does the 'Temperature' parameter control when configuring a request to a Claude model?
19Which of the following describes the correct behavior of the Anthropic API regarding the 'system' prompt?
20When evaluating model output, what does the term 'latency' specifically refer to in the context of the Anthropic API?
21In the context of the Anthropic API, what is the primary benefit of using Streaming?
22An insurance firm wants to use Claude to extract data from scanned PDF claim forms that contain both handwritten text and printed tables. Which fundamental capability of the Claude 3 model family makes this workflow possible without using external OCR software?
23Refer to the exhibit. A developer is testing the vision capabilities of Claude 3.5 Sonnet. Based on the provided JSON request, which statement accurately describes how the model will process this input?
24Which THREE components are required when making a successful request to the Anthropic Messages API? (Select THREE)
25Refer to the exhibit. In the context of Claude Model Fundamentals, what is the primary purpose of the 'system' field shown in this API configuration?
26An application requires Claude to analyze a 180,000-token legal document and find a specific clause. Why might Claude 3 Opus be a better choice for this task than a smaller model like Haiku, even though both have a 200,000-token window?
27Which term describes the fundamental unit of text that Claude processes, which can be a single character, a part of a word, or a whole word?
28Refer to the exhibit. A company is building a translation service for live subtitles where latency must be under 200ms per segment. Which Claude 3 model family member is the only viable candidate based on the provided performance and cost data?
29A healthcare provider wants to use Claude to summarize patient-doctor conversations. They are concerned about the model 'hallucinating' or making up medical facts. Which Claude 3 feature or design principle directly addresses this concern by ensuring the model is honest and admits when it doesn't know an answer?
30An analyst is using Claude 3.5 Sonnet to compare two 50-page contracts. They notice that Claude correctly identifies a discrepancy in a small footnote on page 74 of the combined input. This demonstrates which fundamental performance characteristic of Claude?
31An enterprise legal team needs to analyze a 150,000-token collection of merger and acquisition documents to identify conflicting indemnity clauses. Which feature of the Claude 3 model family is most critical for ensuring the entire dataset is processed in a single inference pass without losing context?
32A developer is integrating Claude 3.5 Sonnet into a medical imaging application. Which TWO capabilities of the Claude 3 family make it particularly suited for analyzing diagnostic reports alongside X-ray images?
33Which core design principle is used by Anthropic to ensure that Claude models are helpful, honest, and harmless by training them against a set of written rules or values?
34An AI researcher is concerned about 'hallucinations' when Claude summarizes internal technical specifications. Which approach leverages Claude's fundamental design to minimize the risk of the model inventing non-existent features?
35A company is developing an application that generates long-form creative content. They notice that as the output length increases, the model's speed seems to fluctuate. Which technical factor most significantly impacts the latency of the 'Time to Last Token' (TTLT) in this scenario?
36A data analyst wants to ensure that Claude produces highly predictable and consistent results when summarizing financial reports. Which TWO parameter adjustments should they make to the API request?
37An engineering firm is using Claude to help design a complex micro-architecture for a new processor. The task requires deep logical reasoning, knowledge of hardware description languages (Verilog), and the ability to handle highly abstract concepts. Which model should be used for the highest possible accuracy?
38A UX designer wants the AI assistant to appear more interactive by showing the response as it is being generated, rather than waiting for the entire block of text to be finished. Which API feature should the developer implement?
39A developer is building a RAG application and notices Claude 3.5 Sonnet occasionally hallucinates when provided with a large context window. Which architectural adjustment is most effective for improving factual fidelity?
40What is the primary function of the 'stop_sequences' parameter in the Claude API?
41When designing a prompt for Claude to perform complex reasoning, why is it beneficial to include 'think step-by-step' in the instructions?
42A product team is building a customer-support assistant on Claude. They want Claude to answer only from a fixed set of help-center articles and to refuse any question outside that scope. They also need to update the article set frequently without retraining a model. Which approach best meets these requirements?
43A financial analyst uses Claude 3.5 Sonnet to extract line items from quarterly PDFs. They want the model to output only a JSON array without any conversational filler. Which feature should they configure to enforce this output format most reliably?
44A support team wants Claude to answer customer questions using only the company's internal help articles. They plan to paste the relevant article text into the prompt before the user's question. Which prompting technique does this describe?
45A developer is building a multi-turn chat application with the Anthropic Messages API. After several exchanges, they notice Claude loses track of details mentioned early in the conversation. Which action best addresses this while staying within the API's design?
46A product team is building a customer support assistant on Amazon Bedrock using the Anthropic Claude 3.5 Sonnet model. They need the model to answer questions strictly from a provided knowledge base and to refuse to answer if the information is not present. Which technique should they use to constrain Claude's behavior most reliably?
47A product team is evaluating Claude for a customer-facing assistant that must refuse to give medical diagnoses. Which TWO techniques should they use to make the refusal behavior consistent across many different user phrasings? (Choose two.)
48A developer is choosing a Claude model for a high-volume classification task that must meet a strict monthly budget. The task is straightforward and does not require deep reasoning. Which selection principle best fits this scenario?
49A developer is using the Anthropic Messages API with Claude 3 Opus to build a multi-turn technical support chatbot. The conversation history is growing large, and they want to reduce token usage while preserving the most relevant context. They decide to implement a sliding window that keeps only the last N turns. What is a potential drawback of this approach that they should consider?
50An engineering team wants Claude to classify thousands of support tickets into categories. They need the model to always return one of five exact category labels. Which approach most reliably constrains the output to those labels?
51A team is building a document Q&A feature on Claude and wants to reduce hallucinations when the answer is not present in the supplied documents. Which TWO techniques are appropriate? (Choose two.)
52A data engineer is using Amazon Bedrock to invoke Claude 3 Haiku for classifying customer feedback into categories. They notice that the model sometimes returns categories that are not in the predefined list. Which change to the prompt is most likely to improve adherence to the allowed categories?
53A developer wants Claude to return structured data that another service can parse automatically. They need the output to follow a fixed schema every time, with no conversational text around it. Which approach is most appropriate?
54A developer is building an application that uses the Anthropic Messages API with Claude 3.5 Sonnet to generate structured JSON output for a data pipeline. They need to ensure the output is valid JSON and conforms to a specific schema. Which TWO strategies should they use to maximize reliability? (Choose two.)
55A developer is choosing between Claude 3 Haiku and Claude 3.5 Sonnet for a real-time chat application that requires very low latency and handles simple, short queries. Cost is a primary concern. Which model is most appropriate and why?
56A product manager is evaluating Claude models for a customer-support chatbot that must handle 50,000 conversations per day while keeping inference costs low. The conversations are short, factual, and do not require complex reasoning. Which Claude model is the most appropriate choice?
57A customer support team is building a Claude-powered assistant that must answer questions using a 300-page product manual. They want to avoid sending the entire manual with every request because of latency and cost. Which approach best leverages Claude's capabilities while keeping responses grounded in the manual?
58A developer is building a customer support chatbot using Claude. The chatbot must remember details from earlier in the conversation, such as the customer's order number and issue, to provide coherent responses. The conversation can last for many turns. Which implementation strategy best ensures Claude maintains context without exceeding token limits?
59A developer is integrating Claude into a legal document review system. The system must process lengthy contracts and answer questions about specific clauses. Which TWO of the following techniques help mitigate the risk of Claude hallucinating details not present in the document? (Choose two.)
60A product team is using Claude to generate marketing copy. They want to ensure the output aligns with brand voice and avoids certain topics. Which TWO techniques are most effective for controlling Claude's output in this scenario? (Choose two.)
61A developer wants Claude to always respond in a strict, terse style and never use emojis, regardless of how users phrase their requests. Where should this persistent behavioral instruction be placed in a request to the Anthropic Messages API?
62A machine learning engineer is comparing Claude 3 Opus and Claude 3.5 Sonnet for a complex mathematical reasoning task. The task involves multi-step proofs and requires the highest possible accuracy. Cost is not a primary concern. Which statement accurately describes the trade-off between these models for this use case?
63A team is choosing a Claude model for a nightly batch job that summarizes thousands of internal reports. Cost per token and throughput matter more than peak reasoning ability, and the summaries tolerate minor stylistic variation. Which selection criterion is most appropriate?
64An engineer is choosing between Claude 3.5 Sonnet and Claude 3 Opus for a pipeline that extracts structured fields from scanned invoices. The pipeline processes thousands of documents per hour and must balance accuracy against cost. Which statement best reflects the appropriate model-selection reasoning?
65A developer is using the Anthropic Messages API to build a conversational agent. They want to maintain context across multiple turns and ensure that the model's responses are consistent with the system prompt. Which API feature should they use to provide the system prompt?
66A team is using Claude to summarize legal contracts. They need the summaries to reflect only the contract text, not any outside assumptions. Which prompting technique best reduces the chance that Claude introduces information not present in the source document?
67A developer is designing a Claude-powered assistant that must maintain a coherent conversation across many turns while controlling cost and context limits. Which TWO practices are appropriate according to Claude model fundamentals? (Choose two.)
68A business analyst is using Claude to summarize a set of internal company reports. They are concerned that Claude might generate plausible-sounding but false information about specific financial figures not present in the text. Which prompt engineering technique is specifically recommended by Anthropic to mitigate this risk of hallucination?
69A developer is building a technical support agent using the Claude API. The agent must answer questions about a proprietary software framework released in late 2025. During testing, Claude occasionally provides incorrect syntax for this framework. What is the most effective way to address these knowledge limits within the Messages API?
70A legal firm is using Claude to analyze long contracts. To ensure the highest level of factual reliability and minimize hallucinations, which TWO strategies should the firm implement according to Anthropic's prompt engineering guidance?
71A developer is using Claude Code to refactor a legacy codebase. They want to ensure Claude doesn't hallucinate build commands or architectural patterns that don't apply to this specific project. Which TWO features of Claude Code are designed to provide this project-specific grounding?
72When building a multi-turn agentic workflow, a developer notices that as the conversation grows, Claude begins to hallucinate details from much earlier in the chat or loses track of the current state. Which approach is most consistent with Anthropic's 'Good practice' for context management to solve this?
73A financial services startup is building a high-volume sentiment analysis tool to categorize incoming customer support tickets in real-time. The primary requirements are minimizing operational costs and ensuring the lowest possible latency for simple classification. Which Claude model is most appropriate for this use case?
74An enterprise is processing 50,000 legacy documents to extract structured data. The project is not time-sensitive, but the budget is strictly limited. Which TWO strategies would most effectively reduce costs while maintaining the capability of a high-tier model?
75A legal tech company uses Claude Opus 5.5 to analyze 200-page contracts. They find that the 1M-token context window is sufficient, but the 'Time to First Token' (TTFT) is too high for their interactive UI when users ask follow-up questions. What is the most effective architectural change to improve latency without switching to a less capable model?
76An organization is migrating a production application from a legacy model to Claude Sonnet 5.5. During testing, they notice that while the new model is faster, it occasionally misses subtle nuances in complex instructions that the older, slower model captured. What is the most appropriate first step to improve quality without immediately switching to Claude Opus 5.5?
77A logistics company needs to process thousands of shipping labels per minute to extract destination zip codes and package weights into a structured database. Which model tier is most appropriate for this high-volume, low-complexity task?
78A developer is using Claude Sonnet for a complex data transformation task. The model is occasionally failing on edge cases, but the project budget is too tight to move the entire workload to Claude Opus. According to Anthropic guidance, which action should be the FIRST lever the developer pulls to improve quality?
79A business analyst is using Claude Sonnet 5.5 to process a series of 800,000-token technical reports. When the model generates a response, the analyst notices the 'stop_reason' is 'max_tokens' even though the response seems incomplete. Based on the model specifications, what is the most likely cause?
80An application uses Claude Sonnet 5.5 to summarize extremely long legal transcripts. To avoid hitting the 1M-token context limit during a multi-turn conversation about these transcripts, the developer wants to use the 'compaction' feature. How should the application handle the model's response when compaction occurs?
81A developer is concerned about the token usage of an agent that frequently searches a database of 500 different tools. Which TWO features or techniques would most effectively reduce the context window consumption related to these tool definitions?
82When using the Claude API, a developer receives a response where the 'usage' object shows 'cache_read_input_tokens' is equal to the total number of input tokens. What does this indicate about the request?
83A developer is using Claude Code to refactor a legacy codebase. They find that Claude sometimes ignores specific formatting rules established in the project's CLAUDE.md file during complex 'Edit' operations. Which feature provides the most deterministic limit on Claude's behavior to ensure these rules are followed?
84A marketing team wants to use Claude to extract text from a high-resolution photograph of a physical flyer. Which content block type and encoding should they use when sending the request via the Messages API?
85A developer is using the Claude Messages API with prompt caching. Which THREE actions would cause a cache invalidation for the messages following them?
86A developer is using Claude Sonnet 5.5 to perform complex code refactoring. They find that the model is providing correct answers but taking longer than desired to generate the full output. Which configuration change serves as the most effective first lever to reduce latency and cost without switching to a less capable model?
87A developer is building a technical support agent using Claude Sonnet 5.5. The agent needs to analyze a 500-page manual and then answer a specific troubleshooting question. Which approach best leverages Claude's strengths while minimizing the risk of hallucinations?
88A developer is building a customer support bot that must maintain its own database of user interactions and look up order status in real-time. Why is the Claude API preferred over the Claude web or desktop apps for this specific use case?
89When implementing a streaming response from the Messages API, at what point can the application reliably determine the final token usage and the reason the generation finished?
90A business analyst is using Claude to summarize a set of internal reports from 2025. They notice that when they ask Claude about specific company events from the previous month not mentioned in the reports, the model occasionally provides plausible but incorrect details. Which fundamental characteristic of Claude is being demonstrated?
91A developer is using Claude Code to refactor a legacy codebase. They notice that Claude occasionally suggests using libraries that were deprecated after its training cutoff. Which feature of Claude Code is specifically designed to provide the model with up-to-date project conventions and 'knowledge' to prevent these outdated suggestions?
92A user is interacting with a Claude-powered research tool. They provide a 200-page PDF and ask for a summary of the 'Methodology' section. Claude provides a summary, but the user notices the details seem to come from a different study. What is the best prompt engineering practice to fix this specific grounding issue?
93A software team is deploying an agent that uses the Claude API to write and execute database queries. They are concerned about 'knowledge limits' leading to hallucinations where the agent assumes the existence of table columns that do not exist. What is the most robust architectural solution to this problem?
94A financial firm is using Claude to analyze market trends. They want to ensure the system is resilient against hallucinations in a production environment. Which THREE practices should they adopt according to Anthropic's guidance?
95A marketing team is using Claude Haiku 5.5 to categorize thousands of customer feedback snippets. They notice that for very short, ambiguous comments like 'It works,' the model sometimes invents specific features the customer might be praising. Which prompt engineering technique from the official guidance is most effective at reducing these hallucinations?
96An engineer is building a tool-using agent with the Claude API. They want the model to be able to search their local company database. How does the implementation of tools differ between the Claude API and the built-in capabilities of the Claude Agent SDK?
97When using the Claude API, a developer receives a `stop_reason` of `tool_use`. What is the correct next step for the application logic to take?
98A legal team is using Claude Sonnet 5.5 to review long contracts provided as PDFs. For every clause Claude reports, they need the exact quoted text and the page it came from so a reviewer can check it. Which feature should be enabled on the document blocks to support this requirement?
99A business is processing a backlog of 100,000 archived documents to extract structured data. The task is not time-sensitive, but the company wants to minimize costs and maximize throughput. Which TWO strategies should they use to manage the trade-off between latency and cost?
100A developer wants to use prompt caching to reduce the latency of a multi-turn chatbot that uses a large static knowledge base. Which TWO actions would help maintain high cache hit rates?
101A developer is building a high-volume document classification pipeline using Claude Haiku 5.5. To manage operational costs, they want to understand how the choice of model parameters and request structure will impact their bill. According to the platform fundamentals, which factor represents a primary driver of cost within a single API request?
102You are building an agentic workflow where Claude uses a search tool to answer user questions. The agent occasionally reports that it found information in a document that doesn't exist, despite the search tool returning an empty list. How should you adjust your agent's design?
103When evaluating your prompt's susceptibility to hallucinations, you plan to use an 'LLM judge' approach. What is the most important element to include in your evaluation test set?
104In an agentic workflow, you are using tool use to fetch data from an internal database. The model occasionally hallucinates tool parameters that do not match the schema. How should you address this?
105During a high-stakes deployment, a team notices that their agentic workflow is hitting latency limits. The workflow uses Claude Opus 5.5 for all operations. Given that the reasoning quality must remain at the highest level, what is the most appropriate architectural adjustment?
106You are developing an agentic application where the system prompt and a large set of tool definitions are sent with every API call. Which strategy is best to minimize input token costs while maintaining functionality?
107A software engineer is integrating document processing into an existing Claude API application. The team needs to allow users to ask questions about 50-page PDF documents. Which content block structure in the Messages API is correct for passing document contents directly in the API call?
108A legal analytics platform repeatedly analyzes a 200-page reference contract (PDF) against hundreds of different individual user queries throughout the day. To optimize performance and API cost, the team decides to use the Files API to host the document. Which statement accurately describes how token billing works when using file_id references across multiple API requests?
109A software team relies on Claude Opus 5.5 for complex root-cause analysis on massive system logs. While the analysis quality is high, long prompt processing times create operational bottlenecks during emergency incidents. The team is already using prompt caching for system guidelines. Which modification balances reasoning depth and time-to-first-token latency most effectively?
110A business analyst wants to process sensitive internal HR documents using Claude. They are deciding between uploading documents to the web-based Claude app interface versus building a custom pipeline using the Claude Messages API. Which distinction accurately describes the default data privacy handling between these two access methods?
111An analyst is using Claude to compare multiple policy documents. They want to use the native citations feature to ensure accuracy. Which TWO statements correctly describe how citations and document blocks interact in the Messages API?
112A software team is optimizing a RAG (Retrieval-Augmented Generation) system using Claude Sonnet 5.5. They want to use citations to improve grounding but are concerned about latency. Which THREE actions would help manage latency or efficiency when using citations with large documents?
113A developer configures a request to Claude Sonnet 5.5 with `max_tokens: 10`, intending to receive a one-word output label such as "Positive" or "Negative". Instead, the response ends prematurely without returning any label text. Which factor accounts for this result?
114A software team is configuring Claude Opus 5.5 to write comprehensive, multi-file code refactoring specifications that require generating tens of thousands of tokens in a single response. Which TWO technical requirements apply when requesting large output volumes near the model's 128K token limit? (Select TWO.)
115An automated workflow makes calls to the Claude Messages API and checks the `stop_reason` field of each API response. During standard operation, a response returns with a `stop_reason` of `stop_sequence`. What does this specific `stop_reason` value indicate about the response execution?
116A software team is building an automated medical receipt parsing service that processes multi-page scanned documents and complex diagrams. They are designing the API payload to send multimodal inputs to Claude Sonnet 5.5. Which TWO input formats are natively supported for content blocks in the Anthropic Messages API? (Select TWO.)
117An architecture team is upgrading an image-processing pipeline that feeds blueprints to Claude Sonnet 5.5. The existing workflow converts multi-page architectural PDFs into low-resolution JPEG images before calling the API. What is the main operational benefit of replacing image conversion with direct PDF `document` content blocks?
118An enterprise developer is reviewing token usage metrics for a high-volume customer support application powered by Claude Sonnet 5.5. The application frequently sends a large, static system prompt and an extensive set of tool definitions alongside short incoming user messages. To optimize operations, the team implements prompt caching breakpoints. When analyzing subsequent API response usage fields, what specific behavior should the developer expect regarding cache billing and token accounting?
119A development team is preparing to deploy an automated content generation service to production. They have been testing with different models and want to ensure that their production environment remains stable and predictable by preventing unexpected model behavior changes. Which practice should they implement for their API calls?
120Your organization uses a centralized configuration management system for all AI applications. You are tasked with ensuring that all services across the company use the correct, approved model versions. What is the most effective approach to enforce model versioning?
121A large enterprise is planning a major migration from an older model to a new model version. Which TWO steps are recommended to ensure a smooth transition during the migration process?
122A developer is building a document processing service and wants to ensure that they are using the most cost-effective and capable model for their needs. They notice that the API provides a list of models through an endpoint. What is the correct way to utilize this information?
123An AI researcher is auditing the usage of Claude models across different departments to ensure compliance with company policy. They find that one team is using a version-pinned ID, but they are also using a parameter that is no longer supported by the current model. What should the team do?
124A developer is building an agentic workflow that interacts with several internal databases. Which TWO of the following practices are recommended when implementing tool use for this application?
125A developer is building a chat application and wants to ensure the model responds to the user's latest query while keeping the conversation context intact. How should the developer structure the API request?
126Which of the following scenarios would be best suited for the Claude web application rather than the Claude API?
127A developer is writing a Python script to call Claude Haiku 5.5 for a simple sentiment analysis task. They are deciding whether to use the `stream=True` parameter in their request. In which of the following situations is streaming LEAST likely to provide a significant benefit?
128An engineering team is implementing streaming to handle high-latency requests for a Claude-powered analytics dashboard. They are concerned about network instability causing partial streams. What is the recommended strategy for handling an interrupted streaming connection when using the Anthropic API?
129An application uses Claude Fable 5.1 to generate code refactoring plans. The developer notices that some plans are cut off. They decide to use a very large `max_tokens` value (e.g., 100,000) to ensure completion. What is a primary risk of setting an unnecessarily high `max_tokens` value for every request?
130A software team is deploying an AI system powered by Claude Sonnet 5.5 to process daily customer support tickets. Most tickets require quick, standard classification, but a small subset involves complex troubleshooting steps. How does adaptive thinking handle this variance in reasoning demands during runtime?
131A data engineering team is using the Claude API to process a large dataset of historical logs. They notice that their usage report shows high counts for `cache_creation_input_tokens`. What does this indicate about their implementation?
132A DevOps engineer wants to integrate Claude into a CI/CD pipeline to automatically review code changes and post comments on pull requests. Which implementation approach is most appropriate for this headless, automated environment?
133An AI research team is developing a system to solve multi-step mathematical proofs that require extremely deep logical deduction and the highest possible accuracy. They find that Claude Opus 5.5 is occasionally struggling with the final steps of the most complex proofs. According to the model hierarchy, which model should they evaluate next?
134A company is building an 'Agentic Workflow' where Claude needs to autonomously browse a large codebase, run tests, and fix bugs over several hours. Which model tier is best suited for this long-horizon agentic work at an enterprise scale?
135An architect is evaluating the default configurations for the Claude 5.5 model family. Which TWO statements accurately describe the default 'effort' levels and thinking behaviors of these models?
136A developer is building an application that needs to provide a short, single-word classification for incoming feedback. They are worried that the adaptive thinking process will generate unnecessary tokens and increase costs. What is the most effective way to handle this?
137A developer is migrating a workflow that previously used manual reasoning chains to a modern Claude model. They want to leverage the model's native adaptive thinking. What should they do with their existing chain-of-thought prompt instructions?
138A developer is writing a Python script to count tokens for a set of prompts before sending them to the Claude API. They want to ensure they do not exceed the model's input token limits. Which approach should they use?
139A development team is building a system to categorize incoming emails as 'Urgent' or 'General'. They observe that the model occasionally classifies irrelevant marketing emails as 'Urgent'. Which approach best aligns with Anthropic's guidance on reducing model hallucinations or errors in classification tasks?
140A team is using Claude Sonnet 5.5 for a document summarization task. They notice that when processing very long PDFs, the model occasionally produces a summary that stops abruptly in the middle of a sentence. Which action should the team take to ensure the summary is complete?
141Your team is building a tool that archives historical data and must re-process documents using the exact same model version used when the data was first archived. How should you ensure this requirement is met?
142Your organization is implementing an AI-powered document review system that processes sensitive financial reports. You need to ensure that the model's reasoning process is not exposed to end-users, while still allowing the system to use its advanced reasoning capabilities. How should you handle the model's thinking output?
143Your team is building a system that processes sensitive data and requires auditability of every model interaction. You are concerned that using a generic model name might mask which version of the model actually processed a specific request. What is the correct way to handle this?
144Your engineering team is implementing a system that must support multiple Claude model families simultaneously to optimize for different cost and quality requirements. What is the primary architectural concern when managing these different model IDs in a shared request-handling service?
145You are auditing your team's API usage to identify which model versions are being utilized across different workspaces. You observe that some requests are failing with a 404 error. What is the most likely cause related to model IDs?
146Your team is building a document processing system using the Claude API that requires verifiable evidence for every claim the model makes. You have enabled citations for the document blocks being processed. Which of the following statements accurately describes how these citations contribute to your API usage costs?
147Your organization is designing an automated document review system that processes long legal transcripts. You need to ensure that the model does not truncate its analysis, but you are concerned about the cost of high 'max_tokens' settings. You decide to use streaming. How does streaming affect the 'max_tokens' limit?
148A developer is migrating a legacy workflow to the Claude API and wants to force the model to provide a summary of exactly 50 words. They try to use 'max_tokens' to enforce this length. Why is this an ineffective strategy?
149A developer is building an agentic workflow where Claude interacts with various tools. The developer is concerned about the model's performance during these multi-turn interactions. How does adaptive thinking behave in this context?
150A developer is building a system to categorize incoming scanned documents. They notice that the model occasionally fails to identify handwritten text on the scanned forms. What is the best strategy to improve the model's performance on these documents?
151A team is migrating an existing pipeline from an older model version to the new Claude Opus 5.5. They want to verify that their current infrastructure is compatible with this model before fully switching. How should they verify the model's capabilities?
152A data scientist is comparing the performance of Claude Sonnet 5.5 and Claude Opus 5.5 for a complex summarization task. Why is it important to use different model IDs when running these comparative tests?
153A developer is building a system that processes sensitive financial reports and needs to ensure that Claude's reasoning process remains auditable and that the system adheres to strict data policies. Which of the following is true regarding model reasoning and auditability?
154A developer is transitioning from using a locally hosted small language model to the Claude API. Which TWO of the following are primary architectural differences they must account for?
155Your application uses the Claude API to generate code snippets. You have enabled streaming to display the code to the user as it is written. During a request, the model hits a safety refusal. How will the streaming response behave in this scenario?
156A developer is building a document processing service that uses prompt caching. They notice that adding a small, frequently changing timestamp to the top of the system prompt causes the cache_read_input_tokens metric to drop to zero for the entire request. Why does this happen?
157A researcher is analyzing the impact of thinking on token usage and cost. How are thinking tokens accounted for in the API?
158Your application uses Claude Sonnet 5.5 for generating structured JSON reports. You notice that occasionally the JSON is incomplete because the model hits the max_tokens limit. Why is 'prefilling' the assistant message not a viable strategy to handle this?
159Your organization is building a tool that performs complex legal document analysis using Claude Opus 5.5. The model is currently configured with default settings. You notice that for some highly ambiguous contracts, the model provides inconsistent interpretations. You are tasked with ensuring the model always performs the most rigorous analysis possible. Which configuration change is the most effective way to ensure the model maximizes its internal reasoning depth?
160An engineering team is building a real-time web application that streams responses from the Claude API using server-sent events. They notice that when users close their browser tabs prematurely, the server keeps processing and generating the entire response, wasting compute resources and tokens. How should the backend handle this connection lifecycle?
161A developer is implementing a feature where users can click a citation in the UI to jump to the relevant section of the source PDF. Why is the location information returned with each citation (such as page numbers) critical for this implementation?
162When designing a user interface that consumes streamed responses from the Claude API, why is it recommended to check the 'stop_reason' before considering the response to be finished?
163A researcher is studying the impact of adaptive thinking on model performance. They observe that even when they provide minimal instructions, Claude Sonnet 5.5 still uses a significant number of tokens. Why is this occurring?
164When evaluating the cost of a complex agentic workflow, why is it recommended to prioritize 'effort' levels over simply switching to a cheaper model?
165Your organization is building an agentic workflow that uses multiple subagents to process different segments of a large dataset. You are experiencing issues where one subagent inadvertently acts on instructions found within the raw data it is processing. What is the most appropriate way to mitigate this risk?
166Your organization is scaling its use of the Claude API across multiple departments. You need to ensure that you can accurately attribute API usage costs to specific teams and workspaces. Which feature should you use to accomplish this?
167Your team is migrating a legacy document processing pipeline to the Claude API. Which TWO of the following are primary advantages of choosing the API over the Claude web application for this specific migration?
168Your company uses the Claude web application for brainstorming and the Claude API for its production customer-support chatbot. A developer suggests using the web application's 'Projects' feature to organize the chatbot's system prompts. Why is this not a viable strategy for the production chatbot?
169Your team is auditing the token usage of an application that utilizes both standard messages and the Message Batches API for bulk document classification. You notice that the costs for the batches are significantly lower than standard requests. Why is this the case?
170An organization is building a tool that performs complex legal document analysis. They observe that the model sometimes declines to answer questions about specific clauses, citing safety policies. How should the team address these refusals while ensuring the model remains compliant with their own internal business rules?
171A junior developer is building a prototype in the Claude web application and wants to export the exact interaction as executable python code to integrate into the company's backend service. When shifting from the web app interface to the Claude API, what fundamental architectural adjustment must be made regarding system instructions?
172Your team is debugging a system where Claude occasionally refuses to answer a request. The API response contains a 'refusal' stop_reason. How should you handle this scenario?
173A developer is building a high-stakes financial analysis platform. To ensure auditability and consistent model behavior during quarterly report reviews, they want to pin their application to the specific Opus 5.5 model version. If the developer discovers that a newer model version has been released, what action should they take regarding their model ID configuration?
174A researcher is studying the impact of different model families on the performance of a complex legal document analysis pipeline. They notice that their current code uses `claude-sonnet-5-5` but they want to compare it with the more capable `claude-opus-5-5`. What is the correct way to adjust their API requests to switch the model?
175Your organization is transitioning from the Claude web application to the Claude API for a document analysis project. You notice that the model's 'thinking' process is visible in the web UI but seems absent or different in your API responses. What is the correct way to handle model thinking in the API?
176Your organization is scaling an agentic workflow that uses Claude. You notice that the total cost is exceeding projections. Which change to the effort configuration would be the most effective way to reduce costs for a non-critical, high-volume agentic step?
177Your organization has a policy that all production deployments must use a specific, audited model version. A developer wants to test a new model version for an upcoming release. What is the correct way to handle this?
178A developer is building a high-volume document analysis pipeline using the Message Batches API. To ensure efficiency and cost-effectiveness, which practice should be followed when handling the results?
179Your application uses Claude Opus 5.5 to perform complex reasoning. You notice that the model often returns a `stop_reason` of `tool_use`. What does this indicate about the API interaction?
180An architect is designing an enterprise document extraction pipeline using Claude Sonnet 5.5. What are the context window capacity and maximum single-request output token limits for current Claude models like Sonnet 5.5?
181An engineering team is reviewing API response logs for a Claude-powered customer support application. They notice that a response returned a `stop_reason` of `end_turn`. What does this specific stop reason indicate about the model's completion?
182A developer is writing a Python worker service that interacts with the Anthropic Messages API during long-running background tasks. Which of the following best describes why checking the `stop_reason` field is a critical best practice in production code?
183A financial firm is building a multi-turn conversational chat system where users ask questions about lengthy annual reports. To enable source attribution, the team attaches large PDF files as document content blocks in the messages array with citations enabled. How are citations handled across multiple turns in the Messages API?
184An application processes customer image uploads using the Claude Messages API. When users upload images as base64 strings, several requests fail with validation errors. Upon inspection, the base64 string includes standard data URI prefix metadata (`data:image/jpeg;base64,`). What adjustment must be made to the image content block payload to ensure successful API requests?
185A marketing team has been using the Claude web application to draft blog posts and social media copy. They now want to automate this process by sending a list of 500 product descriptions to be turned into posts overnight. Which approach is most appropriate for this transition?
186A software company uses Claude Code to maintain their repository. They have a strict policy that Claude should never modify the 'auth/' directory, but it should be allowed to read those files to understand the login flow. How should they implement this using Claude Code's native configuration?
187An engineering team is designing a text-processing pipeline using Claude Sonnet 5.5. They want to ensure that private personally identifiable information (PII) is completely removed from user inputs before the prompt is dispatched to the Anthropic API. A junior developer suggests adding a strict system prompt instruction telling Claude to redact any detected SSNs or credit card numbers. Why is this approach fundamentally flawed given the capabilities and limits of LLMs?
188An engineer is implementing a streaming client for a Python application. They notice that the SDK helper returns the final message object after the stream completes. Why is it still recommended to use the streaming API for long responses?
189A developer is building a chat application and notices that when streaming long outputs, the total token count reported in the usage object sometimes differs from their client-side calculation. What is the most likely cause?
190A team is designing a dashboard that displays the status of ongoing Claude API requests. They want to show a 'Processing' indicator while the model is thinking but before any text is returned. How can they achieve this with streaming?
191A researcher is using Claude to summarize a series of technical papers. They notice that sometimes the model provides a citation, but the cited_text block is quite long. Does the model perform any paraphrasing on this cited content?
192Your organization is reviewing its usage of Claude 5.5 models. You find that some teams are using 'max' effort for tasks that only require basic text summarization. What is the impact of this configuration?
193Your application uses Claude Sonnet 5.5 to perform sentiment analysis on customer feedback. You want to ensure the response is always a simple 'Positive', 'Negative', or 'Neutral' label. What is the best way to achieve this?
194An application processes customer image uploads to provide accessibility descriptions. A developer notices that the token cost for processing images varies significantly between different uploads. What is the primary reason for this variance?
195An enterprise architecture team is transitioning a customer service workflow from the Claude web application to a custom integration built on the Anthropic Messages API. During development, engineers notice that the API response payload does not contain an automatically rendered chat history interface or pre-built UI components. Why does this architectural difference exist between the Claude web application and the direct Messages API?
196A developer is building a high-traffic application and is concerned about the impact of streaming on their system resources. They are evaluating whether to use streaming for all requests. Which of the following is a technical consideration when deciding whether to stream or not?
197Which of the following statements correctly describes the purpose of the 'Sonnet' model tier in the Anthropic ecosystem?
198You are monitoring your API usage and notice 'pause_turn' stop reasons in your logs. Which TWO of the following statements accurately describe the behavior associated with this stop reason?
199Your application uses a specific model ID, 'claude-sonnet-5-5'. A teammate suggests that to save costs, you should dynamically switch to 'claude-haiku-5-5' whenever the system load is high. What is the primary risk of this approach?
200Which of the following statements about the `max_tokens` parameter in the Claude API is accurate?
201A researcher is using Claude Haiku 5.5 to process thousands of short feedback snippets. They notice that when the model is asked to summarize very short inputs, it sometimes provides unnecessarily long responses. What is the best way to control the output length while maintaining the efficiency of Haiku?
202A software engineer is evaluating user interfaces for an internal developer tool. They want to know whether they can use Claude's native web interface to execute automated API integration tests that run nightly from a CI/CD pipeline. Why is the Claude web application unsuitable for this automated CI/CD use case?
203An application is designed to summarize long technical documents using Claude Sonnet 5.5. The team notices that when they increase the 'effort' parameter to its maximum level, the API response times increase significantly. What is the primary technical reason for this latency increase?
204Your team is evaluating the use of effort levels in Claude Sonnet 5.5. You are currently using the default setting. A lead engineer suggests that to improve the accuracy of a critical reasoning task, you should increase the effort to 'high'. Why is this recommendation potentially misleading?
205A financial firm is building an automated system that extracts numerical metrics from incoming legal contracts using Claude Sonnet 5.5. The development team notices that when the model is asked to evaluate terms that directly conflict with internal company policy rules, it provides a standard factual extraction instead of refusing the request. Why is this expected behavior?
206A data engineering team is building an asynchronous document processing pipeline using the Message Batches API for non-latency-sensitive workloads. They want to optimize their pipeline handling for batch results. Which of the following principles applies to processing Message Batches responses?
207A researcher is developing a tool to compare historical documents. They notice that the citations returned by the model do not contain persistent IDs that they can use to map citations across multiple API turns. Why is this the case?
208Your application processes customer-uploaded PDFs using the Messages API. You want to enable citations to improve transparency. Where should you configure the citation settings?
209Your team is debugging a streaming implementation where the application occasionally hangs. You suspect that the client is not correctly handling the transition between streaming and tool use. What happens to a streaming response when Claude decides to call a tool?
210A developer is building a document processing service and notices that their citations are not appearing in the model's output. Which of the following is a requirement for the model to provide native citations in its response?
211An engineering team is building a real-time log analysis tool using the Anthropic Messages API with streaming enabled. During a high-volume log parsing run, they notice that the final output token count is missing from the events received early in the data stream. How should the developer modify their event handling code to capture the final output token count?
212A research team is using Claude to analyze historical documents and finds that the model occasionally attributes events to the wrong century. They need to ensure high accuracy for a critical archive project. Which combination of practices is best for this high-stakes task?
213Your application uses the Models API to dynamically retrieve model details. You notice that your application logic fails when trying to parse a field that you expected to contain the cost per request. What is the fundamental design principle of the Models API regarding this expectation?
214Your team is auditing the API usage of several applications that interact with the Models API. One application frequently queries the /v1/models/{id} endpoint for the same model ID. Why is this potentially redundant or inefficient?
215Your team is building a document processing service that uses the Messages API. You want to ensure that your application correctly handles the final status of a request when streaming is enabled. Which of the following is the standard behavior for the API when a request completes successfully?
216Your application uses the Models API endpoint `GET /v1/models` to dynamically populate a dropdown list of available Claude models for your users. A junior developer suggests writing logic that parses the model list response to display the current per-thousand-token pricing next to each model name so users can optimize their costs. How should you respond to this proposal?
217Your application uses the Models API to dynamically retrieve information about available models. Which of the following details will you find returned by the API for a specific model ID?
218A developer is writing a script to inventory the models available to their organization. They notice that the Models API returns a 'max_tokens' field. What does this specific field represent?
219An engineering team is reviewing how their application integrates with the Claude platform's model discovery features. When writing code to process responses from the Models API, which TWO considerations should guide their implementation? (Select TWO)
220An engineer is debugging an application that processes large financial prospectuses using Claude. They notice that while citations are enabled on the document block, the model occasionally provides answers referencing specific figures without returning any citation blocks. What is the most likely reason for this behavior?
221Your application allows users to upload PDF contracts as document blocks in the Messages API and enables citations to verify extracted clauses. A colleague suggests that you should track citation stability by relying on persistent citation IDs across multi-turn queries. How should you evaluate this suggestion?
222A team is building an application that extracts data from invoice images. They are currently sending base64-encoded images in each request. They want to ensure that the image processing remains efficient as they scale. Which approach should they prioritize?
223Your application monitors the `stop_reason` field in the API response. You receive a response where the `stop_reason` is `max_tokens`. What is the most appropriate action for your application to take?
224Your engineering team is building an application that integrates with the Claude API. A junior developer suggests using a short model identifier like `claude-sonnet` without version numbers in the production configuration files to automatically inherit the latest updates. Why is this practice discouraged for enterprise production deployments?
225Your application retrieves model details using the Models API and caches the results to improve performance. You notice that your application sometimes attempts to use a model ID that is no longer returned by the API. What is the most appropriate strategy for handling this?
226You are auditing the token usage of an application that uses the Message Batches API for non-latency-sensitive document classification. You notice that some requests in the batch are failing. How should you handle these failures to ensure all documents are processed successfully?
227An application uses Claude Sonnet 5.5 to process user-uploaded PDF invoices. You notice that the `usage.input_tokens` field is consistently high, while `cache_read_input_tokens` is zero. What is the most likely reason for this in the context of cost management?
228Your application allows users to upload PDF contracts, and you have enabled citations to help users verify the model's claims. If a user asks a question about a specific clause and the model provides a citation, what does this guarantee regarding the source of the cited text?
229Your application uses the `GET /v1/models` endpoint to populate a list of available models for users to select. You notice that the list occasionally includes new models you weren't expecting. How should you handle this discovery in your application?
230An engineering team is developing a real-time dashboard that displays Claude's reasoning process. They notice that when they stream the response, the thinking process seems to be summarized or missing in the output. Why is this occurring?
231Your application uses the Anthropic SDK to stream responses from Claude for a document summarization feature. You are currently using a helper method that returns the final message object. You want to implement a progress bar that updates as the model generates the summary. How should you modify your implementation to achieve this?
232Your application sends a large set of tool definitions and a long system prompt, and you have enabled prompt caching for this prefix. If you add a new optional tool to the middle of your tool list, what is the impact on your prompt cache usage?
233Your company maintains a long-running library of automated document extraction tasks. You are currently migrating from an older model version to `claude-sonnet-5-5`. What is the primary advantage of using this specific model ID for your production environment?
234A financial software company is deploying Claude Sonnet 5.5 to assist analysts in drafting investment summaries. The solution must conform to enterprise safety and accuracy standards. Which TWO inherent behavioral traits of foundational LLMs must the architecture account for during design? (Select TWO)
235A backend service queries the Anthropic Models API (`GET /v1/models`) to retrieve the list of models accessible to the organization. In what order does the API present the array of models in its response?
236An infrastructure monitoring tool sends periodic HTTP requests to the Models API to verify API availability and monitor endpoint health. Which HTTP method and path combination is valid for listing available models?
237A financial analyst who uses Claude Code frequently types slash commands such as /clear and /compact during long drafting sessions. When collaborating with an engineer to build an automated document drafting script using the Messages API, the analyst suggests including these slash commands in the message payload. Why will this approach fail in the API?
238A legal research assistant powered by Claude Opus 5.5 answers questions about regulatory filings. The team notices that while Claude reliably extracts facts from supplied exhibits, it occasionally invents specific statute numbers and dates when answering queries relying purely on its pre-trained parametric memory. Which core platform characteristic accounts for this behavior?
239A customer service workflow uses Claude Haiku 5.5 to answer technical queries about a proprietary internal software framework released last month. When asked how to install the software, Claude generates instructions describing a non-existent package on public package registries. What fundamental model limitation caused this hallucination?
240An application uses Claude Opus 5.5 to help users draft sensitive legal correspondence. Occasionally, the model returns a response with a `stop_reason` of `refusal` instead of the expected legal text. The development team wants to understand how to handle this and whether they can access the model's internal reasoning to debug why the refusal occurred. Which statement is true?
241A developer is using the Claude TypeScript SDK to build a high-performance document analysis tool. They want to execute a specific cleanup function exactly once, but only after the entire streamed response has been fully received and the internal message object is fully constructed. Which SDK feature is the most idiomatic way to achieve this?
242An automated moderation system uses Claude Sonnet 5.5 to flag user-generated content. The team notices that some requests return without any text in the content blocks. Which TWO `stop_reason` values would explain why the model produced a response but did not provide any standard assistant text? (Select TWO)
243A product manager is comparing the cost models and resource administration of using Claude web/team subscription plans versus the Anthropic Messages API for an enterprise department. Which TWO statements accurately reflect the cost and billing differences between these two consumption models? (Select TWO)
244A platform engineer notices that several production workflows dynamically switch between `claude-sonnet-5-5` and `claude-opus-5-5` depending on prompt complexity. Both workflows send an identical, large system prompt with ephemeral prompt caching enabled. How does switching model IDs affect prompt cache behavior?
245An analytics firm is migrating from an automated rule-based regex pipeline to Claude Haiku 5.5 for extracting sentiment and intent from customer feedback. Which capability represents a distinct strength of using an LLM over traditional regex matching?
246You are writing a script to inventory the models available to your organization using the `GET /v1/models` endpoint. You notice that the list changes when a new model is released. How does this affect your production applications that are hardcoded to use specific model IDs?
247Your company is moving a customer service workflow from the Claude web interface to a custom application using the Messages API. You want to implement a 'clear' button that resets the conversation history for the user. How should you handle this?
248Your company is transitioning from the Claude web interface to a custom application using the Anthropic API. Which THREE of the following are key differences you must account for regarding session management and state?
249An application processes legal documents using Claude and has citations enabled. A user reports that the model provided a summary of a contract but failed to include any citations. What is the most likely reason for this behavior?
Be able to read a Messages API request and predict its behavior, then choose the right parameter for a goal. The single most important thing: know that conversation state lives in the messages array you send, and that temperature plus top_p jointly control output consistency.
The Courseiva CCAO-F question bank contains 249 questions in the Claude Model Fundamentals domain. Click any question to see the full explanation and answer breakdown.
Start with a 10-question focused session to identify your baseline accuracy in this domain. Read every explanation — even for questions you answer correctly — to understand the reasoning. Once you score consistently above 80%, move to a 20–30 question session to confirm depth before moving to the next domain.
Yes — the session launcher on this page draws questions exclusively from the Claude Model Fundamentals domain. Choose 10, 20, 30, or 50 questions for a focused session, or click individual questions to review them one by one.
Save your results, see per-domain analytics, and get readiness scores — free, for every certification.
Sign Up FreeFree forever · Every certification included