You are designing a Claude application that will process customer support tickets in two stages: a triage stage that classifies tickets and a response stage that drafts replies. The team is debating whether to use a single Claude call that handles both stages or separate Claude calls for each stage. How would you structure the application?
Correct Answer: C
Option C follows a prompt-chaining/workflow decomposition pattern. Ticket classification and reply generation are materially different tasks. Triage may require a constrained category, priority, or routing decision, while response generation requires richer context, tone, policy compliance, and customer-facing language. Splitting the stages allows each Claude call to use a prompt, context set, model configuration, output format, and evaluation criterion appropriate to that specific responsibility. Anthropic's guidance on effective agentic systems distinguishes predictable workflows from open-ended agents and recommends using the simplest architecture that meets requirements. Predefined workflows are particularly appropriate where work can be divided into clear processing stages. This decomposition also creates useful engineering boundaries: the triage output can be validated before becoming input to the drafting stage; triage accuracy and response quality can be evaluated independently; and either stage can later be optimized without rewriting the entire process. A unnecessarily restricts the second stage to rules. B introduces expensive parallel generation and a selection step without a stated requirement. D optimizes solely for call count while sacrificing task separation and observability. The supplied exam source marks C. Relevant topics: Agent Patterns, prompt chaining, workflow decomposition, focused prompts, stage-level evaluation, and modular Claude application design.
CCDV-F Exam Question 12
A new Claude model release includes performance improvements for several reasoning tasks but has changed the format of its responses to system prompts that use multi-section instructions. Your application uses multi- section system prompts heavily. Initial evaluation on the application's actual workload shows the new model performs 8 percent better on reasoning tasks but produces malformed output on roughly 3 percent of requests because of the format change. The team is debating whether to upgrade. How would you decide?
Correct Answer: B
The supplied examination page marks B . The scenario already demonstrates why model upgrades must be treated as evaluated software changes rather than automatic replacements: the new model improves one metric while introducing a regression in another. Anthropic's official model-selection guidance recommends creating benchmark tests specific to the application's use case, testing models with the application's actual prompts and data, comparing response quality and edge-case performance, and weighing performance against operational tradeoffs. Therefore, the correct action is to adapt the multi-section system prompt to the new model's behavior and repeat the evaluation. Only after the formatting regression is eliminated-or reduced below an explicitly acceptable threshold-should the upgrade proceed. A incorrectly assumes that an 8% reasoning improvement numerically compensates for a 3% malformed- output rate; these metrics measure different consequences and cannot simply be subtracted. C treats the known incompatibility only downstream instead of first correcting the prompt/model interaction. D permanently rejects future improvement and is inconsistent with controlled lifecycle evolution. The engineering principle is migration through regression testing and adaptation , not blind upgrading or permanent version avoidance. Relevant Claude Developer topics: Systems Life Cycle, model migration, regression evaluation, prompt adaptation, compatibility testing, deployment gates, and continuous evolution .
CCDV-F Exam Question 13
You are building a Claude application that needs to maintain a persistent connection to a service that streams real-time updates. The team is unsure what communication pattern to use. Which communication pattern would you use?
Correct Answer: B
Option B is the appropriate software-engineering communication pattern when the application requires a persistent, low-latency, bidirectional channel. WebSockets establish a connection using an HTTP Upgrade handshake and then maintain a TCP-based communication channel in which either side can send messages independently. This eliminates the repeated connection setup and request overhead associated with conventional polling. RFC 6455 defines WebSocket specifically as a protocol enabling two-way communication and explains that it provides a single TCP connection as an alternative to HTTP polling for interactive communication. Option A can work for infrequent updates, but repeatedly opening HTTP requests adds latency, headers, and server/client overhead and is unsuitable when continuous real-time communication is the stated requirement. C resembles long polling or an ad-hoc streaming connection but lacks the standardized framing, lifecycle behavior, and interoperability provided by WebSocket. D introduces filesystem polling and is not an appropriate network-streaming architecture. The important certification principle is selecting a communication mechanism based on application requirements rather than merely choosing an available protocol. For persistent two-way streaming, WebSocket provides the intended abstraction. Relevant Claude Developer topics are software engineering foundations, client-server communication, persistent connections, HTTP versus WebSocket patterns, streaming, and real-time application architecture.
CCDV-F Exam Question 14
Your team is integrating Claude into an existing REST API service. The service handles concurrent requests, and you are deciding how to structure the Claude API calls within the existing async codebase. How would you structure the Claude calls?
Correct Answer: C
Option C is the natural integration model for an application that already uses asynchronous I/O. Claude API calls are network-bound operations, so blocking the application's event loop while waiting for responses would reduce concurrency and impair throughput. The Anthropic Python SDK explicitly provides AsyncAnthropic, and its documented usage awaits client.messages.create() directly. It also supports an aiohttp backend when improved asynchronous concurrency is desired. This means Claude requests can participate in the same cooperative asynchronous execution model as other database, HTTP, or service calls. While one request waits for remote I/O, the runtime can continue serving other work rather than dedicating the event loop to an idle blocking operation. A can be used when integrating unavoidable blocking libraries into async software, but it adds thread-pool management when an official asynchronous client already exists. B needlessly redesigns a concurrent REST service around a synchronous integration. D is specifically harmful because blocking the event loop prevents normal concurrent request processing. Therefore, C uses the abstraction provided for exactly this architecture. Relevant Study Guide topics: Claude SDK clients, asynchronous APIs, awaitable I/O, concurrency, REST-service integration, and scalable application architecture.
CCDV-F Exam Question 15
You are building a Claude application that needs to deliver model output to end users as it is generated, instead of waiting for the full response to complete. The Claude API mechanism you would use is...
Correct Answer: B
Option B is the intended and technically correct answer. The supplied Claude Developer exam source selects streaming responses. Streaming allows the client application to begin receiving output before generation of the complete message has finished, reducing perceived latency for interactive user experiences. Anthropic's official Messages API documentation states that setting stream: true causes responses to be delivered incrementally through Server-Sent Events (SSE) . Claude can stream text deltas as well as other event types, including structured tool-use and extended-thinking events where applicable. Anthropic's SDKs provide corresponding synchronous or asynchronous streaming helpers. The application consumes events as they arrive, updates the UI progressively, and then handles the final event or stop reason when generation completes. This architecture is particularly useful for chat interfaces and other latency-sensitive interactive experiences. A addresses output structure, not progressive transmission. C is designed for asynchronous, throughput- oriented processing rather than immediate user interaction. D reduces processing cost and latency for repeated prompt prefixes but does not itself turn a response into an incremental stream. Relevant Claude Developer topics: Messages API, streaming, SSE, incremental tokens, latency, event handling, interactive applications, and API response mechanics .