Courseiva

CCNA Claude Model Fundamentals Questions

24 of 249 questions · Page 4/4 · Claude Model Fundamentals topic · Answers revealed

226
MCQeasy

A 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?

A.Deploy the Claude Agent SDK to a local server to handle the sequential drafting of the blog posts.
B.Continue using the Claude web application but paste descriptions in groups of 50 to stay within the context window.
C.Write a script to call the standard Messages API for each description using a high temperature to ensure variety.
D.Use the Message Batches API to submit all 500 requests for asynchronous processing at a lower cost.
AnswerD

The Message Batches API is designed for this scenario. It processes requests asynchronously at 50% of the standard cost, and results arrive within up to 24 hours. Because the team only needs the posts by the next morning, that window is acceptable.

Why this answer

For high-volume, non-latency-sensitive work such as turning hundreds of descriptions into posts overnight, the Message Batches API is the most efficient choice. It costs 50% of standard API calls and processes requests asynchronously, with results arriving within up to 24 hours. The web application is built for interactive work, not automated bulk processing, and a script calling the standard API would work but cost more and require managing rate limits and concurrency yourself.

Exam trap

Choosing standard API calls for bulk work because they are familiar, overlooking the 50% cost savings and simpler management of the Batch API.

227
MCQhard

Your 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?

A.Add a system prompt instruction to 'think harder' about the document.
B.Increase the top_k parameter to 1 to reduce randomness and focus the reasoning.
C.Switch to Claude Sonnet 5.5 and set the effort to 'high'.
D.Increase the effort parameter to 'max' to force the most exhaustive reasoning process.
AnswerD

Raising the effort to 'max' is the correct way to ensure the model uses the highest possible level of internal computational resources for its reasoning. This is precisely the intended use case for 'max' effort: providing the most rigorous and thorough processing for complex, correctness-sensitive tasks.

Why this answer

For models like Opus 5.5, which defaults to 'medium' effort, the effort parameter is the primary lever for controlling internal reasoning depth. To get the most rigorous analysis, you should raise the effort level beyond the default. 'Max' effort instructs the model to utilize the greatest available computational resources for its internal reasoning chain, which is specifically intended for hard, correctness-sensitive tasks like legal analysis where accuracy and logical thoroughness are paramount.

Exam trap

Candidates often think that 'High' effort is the maximum, but for models like Opus 5.5, which defaults to 'Medium', 'High' is just an intermediate step, and 'Max' is the actual ceiling.

228
MCQmedium

An 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?

A.Zero-shot learning
B.Strong long-context recall
C.Sentiment analysis
D.Iterative refinement
AnswerB

Claude 3 and 3.5 models are engineered for near-perfect recall across their entire 200,000-token context window. This means the model can accurately 'remember' and retrieve small details, like a footnote, even when they are buried deep within hundreds of pages of other text.

Why this answer

The ability to retrieve specific information from a massive context window is known as 'recall' or 'Needle In A Haystack' performance. Claude models are specifically optimized to ensure that they don't just 'read' the whole document, but can actually find and use information regardless of its position in the input.

Exam trap

Candidates frequently confuse the ability to process large documents with 'reasoning' or 'summarization' rather than the specific capability of 'long-context recall' (Needle In A Haystack) required to find isolated facts.

229
MCQeasy

Why should developers use the Anthropic Messages API instead of legacy Completions API?

A.The Messages API is faster because it bypasses safety checks.
B.It provides a superior structure for managing multi-turn conversations.
C.It allows developers to modify the model's internal weights.
D.It is the only API that supports streaming responses.
AnswerB

The Messages API is built specifically for multi-turn dialogue, offering a clean, structured way to pass conversational history. This format simplifies the management of state, improves the model's ability to track context, and is the foundation for all modern Anthropic features, making it the correct choice for any application.

Why this answer

The Messages API is the current standard for interaction with Anthropic models. It natively supports structured conversation history, system-level prompts, and improved safety features, which are necessary for modern, production-grade applications. Transitioning to this API is essential for accessing the latest model features, receiving better support, and ensuring long-term compatibility with future model updates and enterprise deployment requirements, making it a critical choice for any professional AI project.

Exam trap

Candidates often incorrectly suggest the Messages API is used primarily for 'lower cost' or 'faster speeds', failing to recognize that its primary architectural advantage is structured, multi-turn conversation management.

230
MCQhard

Your 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?

A.Streaming allows the application to dynamically increase the 'max_tokens' limit mid-generation.
B.Streaming does not change the 'max_tokens' limit, but it helps identify when truncation occurs in real-time.
C.Streaming automatically disables the 'max_tokens' limit, allowing for infinite output length.
D.Streaming automatically consumes more tokens than non-streaming requests due to the overhead of message fragments.
AnswerB

Streaming provides immediate feedback as tokens are generated, allowing your application to see exactly when the model reaches the 'max_tokens' cap, though the limit itself remains a firm constraint on the total output.

Why this answer

Streaming allows the application to receive tokens as they are generated, which is crucial for long-form content where the total length is unpredictable. However, streaming does not change the fundamental behavior of the 'max_tokens' limit; it remains a hard cap on the total number of tokens the model is allowed to generate in that specific turn. If the model hits the 'max_tokens' limit while streaming, the final event in the stream will indicate that the generation has stopped due to that limit.

Streaming provides better visibility into the progress of the generation, but it does not bypass the need to set a sufficient 'max_tokens' value.

Exam trap

Candidates often think that streaming 'removes' the max_tokens limit or allows the model to continue indefinitely without a cap.

231
MCQeasy

A 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?

A.Interactive slash commands are UI/CLI environment features that the Messages API treats merely as plain text rather than operational commands.
B.Slash commands can only be evaluated when sending requests to Claude Haiku 5.5, because larger models reject command tokens.
C.The Messages API rejects any message containing a forward slash character with a 400 invalid request error.
D.The Messages API only accepts slash commands if they are placed inside the system prompt string rather than the user message payload.
AnswerA

Commands like /clear and /compact belong to interactive frontends such as Claude Code and interactive applications. The Messages API has no built-in interpreter for UI slash commands, so sending them merely submits literal text to the model rather than altering conversational context or clearing server memory.

Why this answer

Slash commands such as /clear, /compact, and /memory are client-specific user interface and CLI commands designed for interactive tools like Claude Code or consumer chat surfaces. The Messages API does not parse or execute UI slash commands; it treats message content as literal input text. Context management in the API is achieved programmatically by trimming the messages array or configuring API-level context features.

Exam trap

Believing client-level user interface shortcuts and CLI commands work universally across the raw Messages API endpoint.

232
Multi-Selectmedium

A 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?

Select 2 answers
A.Utilize adaptive thinking or explicit step-by-step reasoning instructions for complex analysis.
B.Ask Claude to cite specific sections or page numbers from the contract for every claim it makes.
C.Use the assistant-message prefill feature to start the response with 'The contract states that...'.
D.Randomize the order of the contract clauses in every API request to prevent model bias.
E.Always use Claude Haiku 5.5 to ensure that the responses remain concise and factual.
AnswersA, B

Complex tasks like contract analysis benefit from 'thinking' tokens. By breaking down the analysis into steps, Claude can verify its own logic before producing a final answer, which reduces errors in interpretation and reasoning-based hallucinations.

Why this answer

Anthropic recommends specific grounding techniques to improve accuracy. Asking Claude to reason step-by-step (or using adaptive thinking) helps it process complex logic, while instructing it to cite sources or admit when it lacks information prevents it from making up legal clauses that do not exist in the contract.

Exam trap

Selecting options that focus on model tier or speed rather than grounding and reasoning techniques.

233
MCQeasy

When designing a prompt for Claude, which technique is most effective at reducing the risk of 'hallucination' or factually incorrect information?

A.Setting the temperature parameter to 0.
B.Instructing the model to admit when it lacks information.
C.Using the most expensive model variant.
D.Increasing the max_tokens limit.
AnswerB

Instructing the model to refrain from guessing and to indicate when information is missing is a highly effective grounding strategy. This creates a safety boundary, preventing the model from inventing facts when the source material is inadequate, which is essential for maintaining trust and accuracy in enterprise applications.

Why this answer

Providing clear, constrained instructions and grounding the model in provided context is the most effective way to minimize hallucinations. By explicitly instructing the model to reply 'I don't know' if the information is not present in the provided source text, developers can significantly improve the factual reliability of the system. This practice forces the model to prioritize provided data over its internal training parameters, improving accuracy in domain-specific tasks.

Exam trap

Candidates often select 'giving the model more creative freedom' or 'increasing the temperature', which directly contradicts the goal of factual accuracy and hallucination reduction.

234
MCQmedium

A 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?

A.Provide the manual as a document block and instruct Claude to cite specific text before answering.
B.Rely on the model's internal knowledge of the product since it is a well-known manual.
C.Use a system prompt that strictly forbids the model from making mistakes.
D.Break the manual into 1,000-token chunks and send them in separate parallel API calls.
AnswerA

Providing the source material in the context window and using citations (enabled on document blocks) forces the model to verify its claims against the provided text, significantly reducing the likelihood of hallucination.

Why this answer

Claude models support a 1M-token context window and document blocks. To reduce hallucinations, Anthropic recommends grounding answers in provided documents and asking the model to quote supporting text or use citations before providing the final answer. This ensures the model's response is tied directly to the source material provided in the context.

Exam trap

Assuming the model's training data is sufficient for specific technical manuals without providing the source.

235
MCQmedium

Your 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?

A.Store the model ID as metadata in your database for every processed record.
B.Use the GET /v1/models endpoint to find the oldest available model version for re-processing.
C.Rely on the default model configuration in your environment variables and update them when needed.
D.Assume that the most recent model version is always backward compatible and use it for all re-processing.
AnswerA

Storing the model ID with each record is the only way to ensure that you can replicate the exact processing conditions for any given piece of data. This approach provides a clear, immutable record of which model version was used, enabling you to re-run the process with the same parameters, which is essential for auditability and consistency.

Why this answer

To ensure long-term reproducibility, you must store the model ID alongside the processed data in your database. This allows your application to retrieve the exact model ID and use it in the API request, ensuring that the processing logic remains identical to the original run. Relying on default settings or global configurations is insufficient, as these can change over time.

By explicitly associating the model ID with the archived record, you guarantee historical consistency.

Exam trap

Candidates might forget that model IDs are critical metadata that must be persisted alongside the data they process for future reference.

236
MCQmedium

Your 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?

A.Reject the suggestion because the Models API does not report pricing information in its model listing responses.
B.Approve the suggestion because the Models API automatically includes real-time token pricing for every active model ID.
C.Switch to querying the Messages API with a special flag to extract current cost tables directly from Claude.
D.Modify the request to use query parameters like include_pricing=true to force the API to return cost details.
AnswerA

The Models API responses provide metadata including identifiers, input token ceilings, output caps, and feature capabilities, but they omit any pricing details. Building application logic around non-existent cost fields will break execution. Pricing must be retrieved from external administrative resources instead of runtime queries.

Why this answer

The Models API returns metadata regarding available models such as their identifiers, context window limits via max_input_tokens, maximum output token caps via max_tokens, and general capabilities, but it does not report pricing information. Pricing is managed externally through documentation and billing dashboards rather than being exposed dynamically via the programmatic model listing endpoint. Therefore, any implementation attempting to pull pricing data directly from GET /v1/models will fail because the required data fields are absent from the schema.

Exam trap

Assuming that all standard configuration and administrative metadata, including pricing and tier costs, are retrievable programmatically through the Models API endpoints.

237
MCQmedium

Your 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?

A.Implement a wrapper library that always uses the latest available model version.
B.Define a central configuration object that maps service names to specific, approved model IDs like claude-sonnet-5-5.
C.Require each engineering team to independently decide which model version is best for their specific use case.
D.Use the model name in the prompt header to override the API request settings.
AnswerB

Storing approved model IDs in a central configuration allows for uniform enforcement of versioning standards across all microservices. This makes it easy to audit which services are using which models and allows for controlled, organization-wide updates by simply changing the value in one central location, ensuring consistency and operational stability.

Why this answer

Centralizing the definition of model IDs in a shared configuration file or service allows the organization to control which versions are used globally. By requiring all services to reference these approved, pinned IDs, the organization can ensure consistency and perform managed upgrades across the fleet. This approach facilitates safer deployments, as teams can test new model versions against the approved list before updating the central configuration, minimizing the risk of unexpected behavior or deployment failures caused by unauthorized model usage.

Exam trap

Candidates often suggest decentralized or hardcoded approaches that are difficult to audit and update across large-scale enterprise environments.

238
MCQmedium

An 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?

A.Include an instruction in the system prompt that overrides all safety refusals for the purpose of legal analysis.
B.Implement a custom system prompt that clearly defines the legal task and use output validation to enforce internal business rules.
C.Request a manual review of every refused request through the Anthropic Support API to have the safety flag removed.
D.Switch to an older model version that does not have these safety classifiers enabled for legal content.
AnswerB

Internal business rules are your responsibility. By defining the task clearly in the system prompt and implementing robust output validation, you ensure that the model adheres to your specific legal requirements. This separates your internal compliance needs from Anthropic's safety classifiers, which govern the model's behavior at a fundamental, global level.

Why this answer

Refusals from the model are typically triggered by Anthropic's internal safety classifiers. These are independent of your own business rules. To handle internal policy enforcement, you must implement your own system prompt instructions, output checks, and human-in-the-loop review processes.

The model's safety refusals cannot be 'bypassed'; rather, you must provide clear system-level instructions that define the boundaries of the task while ensuring that the model understands the legal context without triggering safety violations.

Exam trap

Candidates often think they can override safety refusals by simply adding a 'disclaimer' to the system prompt or using a different model, which does not address the underlying safety classifier behavior.

239
Multi-Selecthard

A 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.)

Select 2 answers
A.Summarize or truncate older turns to keep the context within limits while preserving recent, relevant exchange.
B.Increase max_tokens on every request to allow Claude to store more conversation history internally.
C.Place durable persona and formatting rules in the system prompt so they persist across turns without repetition.
D.Rely on Claude to remember previous turns automatically between separate API calls.
E.Send the full conversation history with each request so Claude has complete context.
AnswersA, C

Because the API is stateless and context is finite, condensing or dropping older turns controls token growth and keeps requests within the context window. Summarization preserves important facts while reducing size, and retaining recent turns maintains conversational continuity. This is a recommended way to manage long conversations without losing coherence or driving up cost unnecessarily.

Why this answer

Because the Messages API is stateless, long conversations require deliberate context management. Summarizing or truncating older turns keeps requests within the context window and controls cost while preserving recent continuity. Durable persona, tone, and formatting rules belong in the system prompt, where they persist across turns without repetition.

Relying on automatic memory or misusing max_tokens misunderstands how Claude processes each independent request.

Exam trap

The trap here is believing Claude remembers prior turns automatically, when each Messages API call is stateless and history must be explicitly managed or it will be lost.

240
MCQeasy

A 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?

A.A tool_result block containing the binary image data
B.A text block containing a markdown-formatted data URI
C.A document block with the file_id of the image
D.An image block using base64 or URL content
AnswerD

The Messages API specifically supports image content blocks, which can be provided as base64-encoded data or direct URLs. This is the standard method for providing visual input to Claude models.

Why this answer

Claude's vision capability reads images sent as image content blocks inside a user message. The image can be supplied as base64-encoded data or as a URL, and Claude then reads the flyer directly, including its printed text, with no separate OCR step. Text, document and tool_result blocks are not the way to submit a photo for visual analysis.

Exam trap

Thinking that images must be converted to text via an external OCR tool before being sent to Claude.

241
MCQmedium

A 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?

A.System instructions must be moved from the chat flow into the dedicated top-level system parameter in the API request payload.
B.System instructions must be omitted entirely because the API relies strictly on few-shot examples embedded within user messages.
C.System instructions must be formatted as markdown code blocks placed at the very end of the final user message.
D.System instructions must be converted into tool definitions so the model can call them dynamically during execution.
AnswerA

The Messages API requires system-level instructions to be supplied via the top-level system parameter rather than as an introductory system message inside the messages array. This structural separation keeps operator guidance distinct from the alternating user and assistant dialogue history.

Why this answer

In the Claude API, system instructions are passed via a dedicated top-level system parameter in the JSON request payload rather than appearing as the first conversational turn in the message history. The API enforces that the messages array must start with a user role, meaning operator instructions and persona definitions must be separated out into the top-level system field.

Exam trap

Candidates often place system prompts inside the messages list as the initial turn when writing API calls, forgetting that the API requires a top-level system parameter.

242
MCQmedium

A 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?

A.Use retrieval-augmented generation: embed the manual, retrieve the most relevant passages, and include them in the prompt.
B.Lower the temperature to 0 so Claude reproduces the manual verbatim from memory.
C.Increase the max_tokens parameter so Claude can generate longer, more detailed answers directly from its training data.
D.Fine-tune Claude on the manual so the knowledge is embedded in the model weights.
AnswerA

RAG keeps the authoritative manual outside the model and injects only the top matching passages into the context window. This reduces token usage and latency, allows the manual to be updated without retraining, and gives Claude the exact source text to cite. It is the recommended pattern for grounding answers in a large, evolving document set such as a 300-page product manual.

Why this answer

Retrieval-augmented generation is the standard architecture for grounding Claude in a large, private, frequently updated document such as a product manual. Embedding the manual and retrieving only the most relevant passages keeps prompts small, reduces latency and cost, and gives Claude authoritative source text to answer from. Fine-tuning, max_tokens, and temperature do not supply the missing manual content and therefore cannot ensure grounded support answers.

Exam trap

The trap here is assuming that fine-tuning or a lower temperature can teach Claude a private 300-page manual, when grounding actually requires retrieving and injecting the relevant passages at request time.

243
MCQhard

In the context of the Anthropic API, what is the primary benefit of using Streaming?

A.It reduces the total number of tokens consumed.
B.It drastically increases the accuracy of the response.
C.It improves the perceived response time for users.
D.It allows the model to handle more input tokens.
AnswerC

Streaming provides immediate feedback by showing text as it is generated. This dramatically improves the perceived latency, as users can start reading or interacting with the answer as it appears, rather than staring at a loading spinner for the entire duration of the model's generation process.

Why this answer

Streaming allows the model's output to be delivered to the client piece-by-piece as it is generated, rather than waiting for the entire response to be finished. This significantly reduces the 'Time to First Token' (TTFT) perceived by the user, making applications feel much more responsive. This is a critical technique for real-time chat interfaces where waiting for a multi-paragraph response to finish would lead to an unacceptable user experience.

Exam trap

Candidates often incorrectly state that streaming 'reduces total token cost' or 'increases overall model intelligence', confusing the user-facing latency benefit with backend operational efficiency.

244
MCQmedium

An 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?

A.System instructions are ignored when processing requests containing large unstructured document attachments.
B.System prompts cannot influence how Claude processes sensitive data within the request body.
C.LLMs operate probabilistically and cannot reliably guarantee 100 percent deterministic extraction or redaction on arbitrary input strings.
D.The Anthropic API automatically rejects any prompt containing expressions that look like social security numbers.
AnswerC

Probabilistic models can occasionally miss edge cases or fail to spot subtle patterns in unstructured text. Security-critical operations like PII removal require deterministic code execution to guarantee that no sensitive data escapes.

Why this answer

Relying purely on system prompt instructions to handle safety-critical data redaction is fundamentally unreliable because LLMs process text probabilistically and can occasionally miss or fail to catch edge cases in complex inputs. Deterministic preprocessing code, such as regex or specialized anonymization libraries, must always be used for scrubbing PII before it reaches the model to guarantee absolute compliance and security.

Exam trap

Candidates often assume that powerful instruction-following models like Claude can perfectly enforce security and data privacy boundaries through prompting alone.

245
MCQeasy

Which capability is a primary benefit of using Claude 3.5 Sonnet compared to smaller, legacy models when processing complex, multi-step instructions?

A.It can be trained locally on customer-provided hardware.
B.It maintains higher instruction-following performance on complex, multi-step tasks.
C.It allows for unlimited parallel API requests without rate limiting.
D.It completely removes the need for systematic prompt engineering.
AnswerB

Claude 3.5 Sonnet is specifically optimized for advanced reasoning and instruction-following, allowing it to navigate complex, multi-step logic without losing track of constraints. This is a significant improvement over earlier models, making it ideal for tasks like code generation, complex document analysis, and multi-stage workflow execution in production environments.

Why this answer

Claude 3.5 Sonnet exhibits superior steerability and logical reasoning, allowing it to maintain consistency across long, multi-step prompts. This capability is vital for complex workflows where instructions are layered. Understanding model evolution helps developers choose the right tool for tasks that require high-level reasoning and instruction following, ensuring that complex business logic remains intact throughout the interaction, reducing the need for iterative prompting and debugging.

Exam trap

Candidates tend to think legacy models can handle layered logic just as well, underestimating how architectural evolution specifically improves complex multi-step reasoning.

246
MCQhard

An 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?

A.Claude 3 Opus should be used only for the first document and Sonnet for the rest, because Opus can teach Sonnet the schema at runtime.
B.Claude 3 Opus should always be chosen because it is the most capable model and therefore the most cost-effective at scale.
C.Model choice is irrelevant because all Claude 3 models have identical pricing and performance characteristics.
D.Claude 3.5 Sonnet is often the better balance because it provides strong accuracy on structured extraction at lower cost and higher throughput than Opus.
AnswerD

Claude 3.5 Sonnet delivers strong reasoning and extraction quality while costing less and offering better throughput than Opus. For high-volume invoice field extraction, that combination usually satisfies accuracy requirements without the premium price of Opus. This makes Sonnet the pragmatic default for a pipeline that must process thousands of documents per hour, with Opus reserved for the hardest edge cases.

Why this answer

Model selection should match capability to task and volume. Claude 3.5 Sonnet offers strong structured-extraction accuracy at a lower price and higher throughput than Claude 3 Opus, making it the sensible default for a high-volume invoice pipeline. Reserving Opus for the hardest cases balances quality and cost.

Treating all Claude 3 models as identical, or assuming runtime knowledge transfer between models, misstates how the API and model tiers actually work.

Exam trap

The trap here is defaulting to the most capable model for every task, when high-volume structured extraction usually favors a mid-tier model that balances accuracy with cost and throughput.

247
MCQmedium

You 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?

A.The request has exceeded the rate limit for the specified model family.
B.The system prompt is incompatible with the selected model version.
C.Your API key does not have permission to access the specific model tier requested.
D.The model ID provided in the 'model' field is incorrect or does not exist.
AnswerD

Returning a 404 status code is the API's standard way of signaling that the model ID specified in your request cannot be found. This happens when the string does not match any current, active model identifiers supported by the Anthropic platform.

Why this answer

A 404 error in the context of the Anthropic API typically indicates that the requested model ID is not recognized or is invalid. If your application code is dynamically generating model IDs or using deprecated/incorrect strings, the API will return a 404 because it cannot locate the requested model resource. Ensuring your application uses the exact, current model IDs as documented—without extra suffixes, typos, or deprecated labels—is the standard solution for resolving these 404 errors during production operations.

Exam trap

Candidates might confuse a 404 with a 401 (auth) or 429 (rate limit), assuming it is a permission issue instead of a resource naming issue.

248
MCQmedium

Your 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?

A.Accept the suggestion, as persistent citation IDs are automatically maintained across all turns in a conversation session.
B.Modify the approach to use prompt caching keys as permanent cross-turn identifiers for document citations.
C.Implement custom session metadata to store citation IDs, which the API will then automatically validate.
D.Reject the suggestion because citations have no IDs that persist across turns in the stateless API architecture.
AnswerD

This is correct because citations do not feature persistent identifiers across turns. The stateless design of the Messages API means applications must handle and map citations independently for each distinct response received.

Why this answer

The suggestion is flawed because citations do not have IDs that persist across conversational turns. Since the Messages API is stateless, each turn is processed independently, and any citations returned are generated fresh based on the document blocks present in that specific request payload.

Exam trap

Candidates often assume that stateful session features exist in the base Messages API when working with complex documents.

249
Multi-Selectmedium

A 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?

Select 2 answers
A.The Claude API has no limits on request volume, so throughput planning is no longer needed.
B.The Claude API requires managing API keys and network authentication, whereas local models often rely on local environment access.
C.The Claude API requires every input, including plain text, to be base64 encoded.
D.Local models are stateless, while the Claude API is stateful and keeps conversation history.
E.Latency for local models is determined by hardware, while API latency is impacted by network transmission and server-side processing.
AnswersB, E

Moving to the API introduces the need to handle authentication via API keys, which was not required for a local model. This changes the security model from file-system or environment-based permissions to network-based authentication, requiring careful key management and secure storage practices within the application's configuration.

Why this answer

When moving from a local model to the Claude API, the developer must shift from managing hardware resources to managing network-based API calls. This involves handling authentication, rate limits, and request formatting. Additionally, they must adapt their code to handle the stateless nature of the API, which is different from local models where the developer might have kept the model loaded in memory for stateful interactions.

These shifts require implementing robust error handling for network-related issues and optimizing data structures for API payloads.

Exam trap

Candidates often assume that API-based models behave identically to local models regarding resource management and state persistence.

← PreviousPage 4 of 4 · 249 questions total

Ready to test yourself?

Try a timed practice session using only Claude Model Fundamentals questions.