# CCDV-P Practice: Production integration | Your AI Department

> 20 free CCDV-P practice questions on production integration, reliability, and knowledge grounding (20% of the exam), with study notes and explanations.

Source: https://youraidept.com/network/ccdv-p-practice-questions/production-integration-reliability-and-knowledge-grounding

## What to know about Production integration, reliability, and knowledge grounding

- Resilience patterns for a Claude service: retry and backoff, circuit breakers, graceful degradation, and fallbacks across models, regions and platforms.
- Failure classes: a rate limit, a safety refusal and a context-window stop are different failures and need different handling. Fallbacks also have to respect which features each platform supports.
- Scale and throughput: rate-limit strategy, queueing and backpressure, batch pipelines, multi-tenant quota and isolation, and capacity planning. Know how to tell whether rate limits, token throughput or batch economics is the binding constraint.
- MCP in production: remote deployment and authentication, and versioning of tools and schemas.
- Change management: model version migrations tested against breaking behavior changes, configuration parity across platforms, gateway and routing architectures, prompt versioning, and progressive rollout with rollback.
- Retrieval at scale: agentic search against RAG, chunking and embedding strategy, hybrid search and reranking, and diagnosing a retrieval failure by the stage it occurs in.
- Grounding practice: cite the source, declare uncertainty, and expose a confidence signal.

## Production integration, reliability, and knowledge grounding questions

All domains (20) Production integration, reliability, and knowledge grounding (20)

Production integration, reliability, and knowledge grounding

A customer-facing service starts returning HTTP 429 on every Claude request halfway through the month. The SDK's automatic retries all fail, the responses carry no retry-after header, and the error details name an enforced spend limit rather than a per-minute rate limit. What should the integration do with this class of error?

- Treat it as non-retryable: stop retrying, open the circuit to a degraded path, and page the owner of the limit
- Rotate requests across several API keys from the same organization so that each key draws on its own allowance
- Raise the retry count and the backoff ceiling so that requests keep trying until the per-minute window refills
- Cut worker concurrency in half so that the request rate drops back under the organization's requests-per-minute limit

Check answer

### Show answer

Answer: Treat it as non-retryable: stop retrying, open the circuit to a degraded path, and page the owner of the limit. A spend-cap 429 is not a throughput problem: it has no retry-after header and keeps failing until the cap is raised or the month resets, so retries only add load and delay the degraded path. Limits are enforced at the organization level, so more keys do not help, and lowering concurrency addresses a per-minute limit that is not the one being hit.

Production integration, reliability, and knowledge grounding

During a provider-wide traffic spike, a summarization service receives 529 overloaded_error responses while its own rate-limit headers still show ample remaining capacity. The client retries every failure immediately, five times, and the retry storm takes down the service's own queue workers. Which design fits this failure?

- A request for higher input and output token limits, since overload errors mean the organization has outgrown its usage tier
- Bounded retries with exponential backoff and jitter, a circuit breaker that opens on sustained errors, and a degraded path
- Immediate failover of every request to a second API key, so that the overloaded key can recover while the other carries traffic
- A lower max_tokens on every request, so that each call reserves less output capacity and is less likely to be rejected

Check answer

### Show answer

Answer: Bounded retries with exponential backoff and jitter, a circuit breaker that opens on sustained errors, and a degraded path. 529 signals that the API is temporarily overloaded across users, not that this organization exceeded its limits, so the fix is to stop amplifying load: back off with jitter, cap retries, and let a breaker route to a queue, cache, or fallback until the errors clear. Tier increases and extra keys address rate limits that the headers show are not binding, and max_tokens does not reserve capacity.

Production integration, reliability, and knowledge grounding

A nightly enrichment job starts at 02:00 and immediately fires several thousand concurrent requests at a model the organization barely uses during the day. Many return 429 even though per-minute token usage stays far below the published input and output limits, and the error details name a ramp limit. What is the right fix?

- Shorten each prompt so that the job sends fewer input tokens per request and each request weighs less against the limit
- Add more workers and retry each 429 immediately, so that the job pushes through the limit before the nightly window closes
- Ask for a higher input-tokens-per-minute limit, since a 429 at this volume shows the job has reached the organization's token ceiling
- Start at a low rate and step traffic up gradually with evenly spaced requests, or move the work to the Message Batches API

Check answer

### Show answer

Answer: Start at a low rate and step traffic up gradually with evenly spaced requests, or move the work to the Message Batches API. A ramp limit caps how fast usage on a model can grow, so a cold start at full concurrency is rejected even when the per-minute limits have headroom. Ramping up gradually and spreading requests evenly clears it, and the Message Batches API is not subject to ramp limits. A higher token limit or shorter prompts target a ceiling the job never reached, and immediate retries make the burst sharper.

Production integration, reliability, and knowledge grounding

A retrieval service hits its input-tokens-per-minute limit at peak. Every request carries the same 40,000-token policy preamble followed by about 2,000 tokens of request-specific content, yet usage shows cache reads near zero for all but the busiest tenants, because the system prompt opens with a line naming the tenant and its plan. Which change raises throughput most without a limit increase?

- Move the tenant line after the shared preamble so it is read from cache, since cached reads do not count toward the limit
- Compress the preamble with a summarization pass on each request, so that every call sends a shorter version of the policy text
- Split the traffic across two workspaces in the same organization, so that each workspace draws on its own input-token limit
- Lower max_tokens on every request, so that less output capacity is reserved against the per-minute limit for each call

Check answer

### Show answer

Answer: Move the tenant line after the shared preamble so it is read from cache, since cached reads do not count toward the limit. Caching is a prefix match, so a tenant-specific first line gives every tenant its own prefix and the shared preamble is rarely reused. Once the preamble comes first and is read from cache, those tokens stop counting toward the input-tokens-per-minute limit on most models, which multiplies effective throughput and cuts cost. max_tokens does not factor into rate limiting, workspace limits can only subdivide the organization's limit, and summarizing per request adds a model call to every request.

Production integration, reliability, and knowledge grounding

An internal remote MCP server fronts the company's ticketing API. It accepts whatever bearer token the MCP client presents and forwards the same token to the ticketing API. A security review flags the design. What should change?

- The server validates that each token was issued for it as the audience, and calls the ticketing API with a credential of its own
- The server caches each forwarded token for a day, so that the ticketing API sees fewer authorization checks from the same client
- The server moves to the stdio transport, so that requests arrive over a local pipe and no bearer tokens are exchanged at all
- The client sends the token as a URL query parameter over TLS, so that the server can log and correlate which token made each call

Check answer

### Show answer

Answer: The server validates that each token was issued for it as the audience, and calls the ticketing API with a credential of its own. Under the MCP authorization model a remote server is an OAuth resource server: it must accept only tokens issued for it and must not pass a client's token through to a downstream API, which would turn it into a confused deputy. It uses its own credential for upstream calls. Tokens must not travel in query strings, caching forwarded tokens keeps the passthrough, and stdio does not fit a shared remote deployment.

Production integration, reliability, and knowledge grounding

A platform team's MCP server is used by three production agents. A release renames the customer_id parameter to account_id and narrows an enum. Within an hour all three agents show a jump in failed tool calls and invented arguments. Which practice would have prevented this?

- Relying on each agent to re-read the tool list at runtime, since the model adapts to whatever schema the server currently advertises
- Versioning tool schemas as contracts: additive changes in place, breaking ones as a new tool run side by side behind consumer evals
- Freezing the three agents' system prompts for the release, so that no other change could interact with the new schema
- Updating the tool description to mention both parameter names, so that the model learns that either one is acceptable

Check answer

### Show answer

Answer: Versioning tool schemas as contracts: additive changes in place, breaking ones as a new tool run side by side behind consumer evals. A tool's name, parameters, and enums are an interface other teams depend on. Breaking changes need a new version that runs beside the old one, consumer evals before cutover, and a deprecation window. Agents do pick up the new schema at runtime, but prompts, examples, and conversations in flight still assume the old one, and a description that names both parameters leaves the server rejecting one of them.

Production integration, reliability, and knowledge grounding

A knowledge assistant answers 18% of an evaluation set incorrectly. Trace analysis shows that in four of five failures the passage holding the answer is absent from the top 50 first-stage candidates, while the reranker and the generator perform well whenever the passage is present. Where should the team invest first?

- A stricter grounding instruction, telling the model to answer only from the provided passages and to refuse otherwise
- First-stage recall: chunking, embeddings, and query handling, since later stages cannot recover a passage never retrieved
- A stronger reranker, since reordering the candidates more accurately will lift the right passage into the final context
- A larger final context, passing ten reranked passages to the model instead of five so the answer is less likely to be cut

Check answer

### Show answer

Answer: First-stage recall: chunking, embeddings, and query handling, since later stages cannot recover a passage never retrieved. Diagnose retrieval by stage. If the passage never reaches the candidate set, reranking and prompting have nothing to work with, so the fix is upstream: how documents are chunked and embedded, whether lexical search is combined with vectors, and how queries are rewritten. A grounding instruction would turn these wrong answers into refusals, which is safer but does not make the assistant able to answer.

Production integration, reliability, and knowledge grounding

A service on the Claude API uses a server-side tool and a beta feature. To improve resilience the team adds a failover route to a cloud platform's Claude endpoint and replays failed requests there unchanged. In a game-day test the failover requests are rejected with 400 errors. What is the right design?

- Retry the rejected requests on the secondary platform with exponential backoff until the platform accepts them
- Strip every header and field the secondary platform rejects at the gateway, without telling the calling application
- Keep a capability matrix per platform, build the fallback request for that platform, and degrade features it lacks
- Pin both routes to the oldest API version that either platform supports, so that both accept the same request shape

Check answer

### Show answer

Answer: Keep a capability matrix per platform, build the fallback request for that platform, and degrade features it lacks. Feature availability differs between the first-party API and cloud platforms, so a request that is valid on one can be invalid on another, and a 400 will never succeed on retry. A fallback has to be built for the target: use what it supports, replace or drop what it does not, and exercise the path regularly in tests. Silent stripping changes behavior without the application knowing, such as answering without the tool.

Production integration, reliability, and knowledge grounding

In an agent loop, some responses stop with stop_reason max_tokens while the last content block is a tool_use whose input is cut off mid-JSON. The harness tries to parse and execute the block, and tools receive malformed or partial arguments. What should the harness do?

- Append a user message asking the model to continue, so that it completes the JSON in its next response
- Lower the output limit further, so that the model learns to keep its tool arguments short enough to fit
- Check stop_reason before running tools, and on a truncated tool_use re-issue the request with a higher max_tokens
- Repair the truncated JSON with a tolerant parser and run the tool with whichever arguments could be recovered from it

Check answer

### Show answer

Answer: Check stop_reason before running tools, and on a truncated tool_use re-issue the request with a higher max_tokens. A response cut off by the output limit is incomplete, and a partial tool call must never be executed. The documented handling is to retry the request with a larger max_tokens so the full call is produced. Repairing JSON risks running a tool with wrong arguments, and a tool_use block left without a matching tool_result makes the follow-up request invalid rather than continuing it.

Production integration, reliability, and knowledge grounding

A SaaS product serves two hundred tenants through one Claude organization. One tenant starts a bulk import that consumes nearly all of the output-token capacity, and interactive users at other tenants see rate-limit errors. Which design isolates tenants?

- Per-tenant token budgets and fair queueing in your own gateway, with separate interactive and bulk lanes
- A larger max_tokens for interactive requests, so that they reserve output capacity ahead of the bulk import
- A higher retry count for interactive requests, so that they eventually succeed once the bulk import has finished
- A dedicated API key per tenant inside the same workspace, so that each tenant's traffic is counted against its own key

Check answer

### Show answer

Answer: Per-tenant token budgets and fair queueing in your own gateway, with separate interactive and bulk lanes. Rate limits apply to the organization, with optional lower limits per workspace, not per key, so tenant fairness has to be enforced by the application: meter each tenant, queue fairly, and keep bulk work in a lane that cannot starve interactive traffic. A workspace limit on the bulk lane is a useful backstop. Retries add load at the worst moment, and max_tokens does not reserve rate-limit capacity.

Production integration, reliability, and knowledge grounding

A team submits a batch of 90,000 requests generated by new code. A day later every result comes back as errored with an invalid-request message: the tool schema in each request was malformed. How should the pipeline prevent a repeat?

- Poll the batch status every minute, so that the invalid requests are noticed as soon as processing begins
- Split the work into nine smaller batches, so that a malformed request can only affect the batch that contains it
- Add automatic resubmission of every errored request, so that the failed requests are retried without intervention
- Validate the request shape with a synchronous Messages call or a small canary batch before the full submission

Check answer

### Show answer

Answer: Validate the request shape with a synchronous Messages call or a small canary batch before the full submission. Batch request parameters are validated asynchronously, and validation errors are reported only when the batch has finished processing, so a systematic mistake costs a full cycle. Sending one representative request through the synchronous API, or a small canary batch, catches it in seconds. Smaller batches all carry the same defect, status polling at best reveals the failure after submission, and resubmitting invalid requests fails again.

Production integration, reliability, and knowledge grounding

A provider announces a new model. Its release notes list request parameters the new model rejects and a changed default for reasoning effort. A team's service has dozens of request shapes across four features. What is the responsible migration plan?

- Mirror production traffic to the new model for a quarter, and migrate once no errors have appeared in the mirror
- Switch the model identifier in production on release day, since the Messages API is stable across model versions
- Run every request shape and the eval suite on the new model in staging, re-tune effort and prompts, then canary
- Keep the existing prompts and settings, switch all traffic, and compare token usage between the old and new model

Check answer

### Show answer

Answer: Run every request shape and the eval suite on the new model in staging, re-tune effort and prompts, then canary. A model change can break requests outright and can shift behavior without any error. Exercising each request shape finds rejected parameters, the eval suite finds behavior changes, and effort and prompts tuned for the old model usually need another pass. A canary with the previous version pinned for rollback keeps the blast radius small. Token usage says nothing about quality, and an error-free mirror with no quality comparison only proves the requests are accepted.

Production integration, reliability, and knowledge grounding

A new prompt version has passed offline evals. The service has forty tenants and no way today to tell which prompt version produced a given response. How should the version be released?

- To half of all traffic immediately, so that the comparison reaches statistical significance as fast as possible
- To a small traffic slice with the version id on every trace, guard metrics against control, and automatic rollback
- To all tenants at once during the quietest hour of the week, with the team watching the dashboards for the first hour
- To internal users only for a month, promoting it if no one on the team reports a problem during that time

Check answer

### Show answer

Answer: To a small traffic slice with the version id on every trace, guard metrics against control, and automatic rollback. Offline evals reduce risk but do not cover the full input distribution, so exposure should start small and grow as guard metrics hold. Tagging each trace with the prompt version is what makes comparison and rollback possible at all. A full release has no control group, internal users are not representative, and a half-and-half split exposes half of production to a regression the canary would have caught at one percent.

Production integration, reliability, and knowledge grounding

A support assistant retrieves from product documentation using embeddings only. It fails on questions that contain exact part numbers and error codes: the retrieved passages are about similar products or neighboring codes. Which retrieval change targets this failure?

- An embedding model with more dimensions, so that near-identical part numbers end up further apart in the vector space
- A larger candidate set from the vector index, raising the number of nearest neighbors retrieved from twenty to two hundred
- Hybrid search that combines lexical matching with embeddings and fuses the rankings, with a reranker on the merged set
- Smaller chunks of about one sentence each, so that every embedding represents a single precise statement from the documentation

Check answer

### Show answer

Answer: Hybrid search that combines lexical matching with embeddings and fuses the rankings, with a reranker on the merged set. Embeddings capture meaning and blur exact tokens, so identifiers such as part numbers and error codes are where lexical search does better. Combining both and reranking the merged set keeps semantic recall while restoring exact-match precision. Smaller chunks and bigger embeddings do not make an identifier match exactly, and more neighbors mostly adds more near-misses.

Production integration, reliability, and knowledge grounding

A document-analysis endpoint sets a large max_tokens. For very long inputs, responses arrive as HTTP 200 with stop_reason model_context_window_exceeded and a partial answer. The fallback policy treats any stop other than a normal finish as an outage and replays the request in a second region, where the same thing happens. What is the right handling?

- Keep the regional replay but add exponential backoff, so that the second region has time to free up its context capacity
- Raise max_tokens to the model's maximum on the replay, so that the response has enough room to finish its answer
- Return the partial answer as final, since a response delivered with HTTP 200 is complete by definition
- Treat it as truncation caused by input size: count tokens up front, shrink or split the input, and mark partial output

Check answer

### Show answer

Answer: Treat it as truncation caused by input size: count tokens up front, shrink or split the input, and mark partial output. This stop reason means generation ran into the model's context window before reaching max_tokens: the response is valid but truncated, and the cause is the size of the input plus output, not a regional fault. Replaying the same request anywhere reproduces it. The fix is upstream: count tokens before sending, then trim, split, or compact the input, and never present the partial text as complete. max_tokens was not the limit that was reached.

Production integration, reliability, and knowledge grounding

An event-driven summarizer pulls from a queue. An upstream burst raises the event rate tenfold. Workers autoscale on queue depth and each retries its 429s in place, so rate-limit errors multiply, queue depth keeps growing, and the latency objective is missed for hours. What design handles bursts?

- Concurrency bounded by token throughput, a shared retry budget, and backpressure that defers low-priority events
- Faster autoscaling on queue depth, so that enough workers come online to drain the queue before latency is affected
- A longer per-request timeout and a higher retry limit, so that each worker eventually completes the event it holds
- Streaming on every summarization request, so that workers receive output sooner and can pick up the next event

Check answer

### Show answer

Answer: Concurrency bounded by token throughput, a shared retry budget, and backpressure that defers low-priority events. When the provider's rate limit is the bottleneck, adding workers adds rejected requests, not throughput. The consumer should be sized to the token throughput it is allowed, pace itself from rate-limit headers, cap retries across the fleet, and push back on producers or defer low-priority work when the queue grows. Longer timeouts and more retries hold events longer without raising the ceiling.

Production integration, reliability, and knowledge grounding

After a team routes its Claude traffic through a new internal gateway, the prompt cache hit rate falls to zero and a beta feature starts returning errors. Direct calls with the same application code behave normally. Investigation finds that the gateway inserts a per-request trace id at the top of the system prompt and drops headers it does not recognize. What should change?

- Have the gateway retry any request that returns an error, so that the beta feature succeeds on a later attempt
- Move the cache breakpoint to the end of each request, so that the trace id is included in what gets cached
- Forward provider headers unchanged, keep trace ids out of the prompt body, and add a gateway parity test
- Raise the cache lifetime to one hour at the gateway, so that entries survive the extra latency the gateway adds

Check answer

### Show answer

Answer: Forward provider headers unchanged, keep trace ids out of the prompt body, and add a gateway parity test. A gateway must be transparent to the features behind it. Text injected at the start of the prompt changes the prefix on every request and defeats caching, and a dropped beta or version header turns a valid request into an invalid one. Trace context belongs in headers or metadata, and a parity test in CI catches the next divergence. Longer lifetimes and moved breakpoints cannot help a prefix that is unique per request.

Production integration, reliability, and knowledge grounding

A compliance assistant must show the exact source passage behind each claim. Today the prompt asks the model to quote its sources, and reviewers find quotes that are slightly altered. The team also wants the final answer as schema-constrained JSON. What works?

- Enable citations on the source documents, read the cited spans from the response, and build the JSON in application code
- Keep prompt-based quoting and run a fuzzy string match afterwards to correct each quote against the source text
- Enable citations and a JSON output schema on the same request, then read the citation spans out of the JSON fields
- Keep prompt-based quoting and add a JSON schema field for each quote, so that the schema forces the quotes to be exact copies

Check answer

### Show answer

Answer: Enable citations on the source documents, read the cited spans from the response, and build the JSON in application code. With the citations feature the API returns the cited text and its location extracted from the documents you supplied, so the quotes are valid pointers rather than model-written text. Citations interleave citation blocks with text and cannot be combined with schema-constrained output in one request, so the structure is assembled afterwards or in a second step. A schema constrains shape, not truth, and fuzzy matching repairs quotes without proving the claim was grounded.

Production integration, reliability, and knowledge grounding

A question-answering assistant covers a monorepo that changes every hour. The embedding index is always stale, rebuilding it is expensive, and good answers require following references from one file to another. Which retrieval architecture fits?

- A full re-embedding of the monorepo every hour, so that the vector index is never more than one hour behind the code it describes
- The whole monorepo loaded into the context window on every query, so that nothing has to be retrieved at all
- Larger chunks of several hundred lines each, so that more of the cross-file references fall inside a single chunk
- Agentic search: give the model search and read tools to locate content at query time, accepting more latency per query

Check answer

### Show answer

Answer: Agentic search: give the model search and read tools to locate content at query time, accepting more latency per query. For fast-changing, highly linked content, letting the model search and read on demand removes the stale-index problem and suits multi-hop questions, at the price of more calls and tokens per query. Static retrieval works best when content is stable and questions map to single passages. Hourly re-embedding is the expensive rebuild the team already cannot afford, and bigger chunks dilute relevance without following references.

Production integration, reliability, and knowledge grounding

A policy assistant answers every question, including ones its retrieval step returns only weakly related passages for, and users have acted on confident but unsupported answers. Which grounding practice addresses this?

- Make abstention a designed outcome: answer only from retrieved sources, say when they fall short, and evaluate both
- Double the number of passages placed in context, so that a relevant passage is more likely to be among them
- Ask the model for a confidence percentage with each answer, and hide any answer whose stated confidence is under 70
- Append a standard disclaimer to every answer saying that the content may be inaccurate and should be verified

Check answer

### Show answer

Answer: Make abstention a designed outcome: answer only from retrieved sources, say when they fall short, and evaluate both. Grounded systems need a supported way to say the sources do not answer the question, and evals must cover both directions: answering when support exists and declining when it does not. A blanket disclaimer carries no information about a particular answer, a self-reported percentage is not a calibrated signal, and more weak passages give the model more material to over-read.

## Next

- [Timed CCDV-P practice exam](https://youraidept.com/network/ccdv-p-practice-exam): 70 questions in 120 minutes, scored against the 720 pass mark.
- [All CCDV-P practice questions](https://youraidept.com/network/ccdv-p-practice-questions) with a domain filter.
- [The CCDV-P exam page](https://youraidept.com/network/ccdv-p): format, weights, registration, study path.

### Other CCDV-P domains

- [Advanced agent architecture and orchestration (14 questions)](https://youraidept.com/network/ccdv-p-practice-questions/advanced-agent-architecture-and-orchestration)
- [Observability and production monitoring (10 questions)](https://youraidept.com/network/ccdv-p-practice-questions/observability-and-production-monitoring)
- [Evaluation engineering and quality assurance (12 questions)](https://youraidept.com/network/ccdv-p-practice-questions/evaluation-engineering-and-quality-assurance)
- [Runtime guardrails and production security (10 questions)](https://youraidept.com/network/ccdv-p-practice-questions/runtime-guardrails-and-production-security)
- [Advanced debugging and incident response (9 questions)](https://youraidept.com/network/ccdv-p-practice-questions/advanced-debugging-and-incident-response)
- [Agent fleet operations for software delivery (10 questions)](https://youraidept.com/network/ccdv-p-practice-questions/agent-fleet-operations-for-software-delivery)
- [Cost and latency optimization at scale (7 questions)](https://youraidept.com/network/ccdv-p-practice-questions/cost-and-latency-optimization-at-scale)

## FAQ

### How much of the CCDV-P exam is production integration, reliability, and knowledge grounding? +

20% of the marks, per the official CCDV-P exam guide. The full domain list with weights is on the CCDV-P exam page.

### Are these real CCDV-P exam questions? +

No. They are 20 original scenario questions written from the blueprint for this domain. Reproducing exam content would violate the candidate agreement.

### How should I study production integration, reliability, and knowledge grounding for CCDV-P? +

Read the domain notes on this page, answer the questions with explanations hidden, then take the timed CCDV-P practice exam and check the per-domain breakdown for this domain.

## Who wrote this

### [Matei Olaru](https://youraidept.com/about/matei-olaru)

CEO, Your AI Department

Former public-company CEO, corporate attorney, and World Bank consultant. Runs the YAID Network and the partner relationship with Anthropic.

### [Michael Greenberg](https://youraidept.com/about/michael-greenberg)

AI Product Lead, Your AI Department

AI at Google, Meta, and Samsung. Six patents. Leads member support and the certification prep guidance.

Your AI Department is a registered Claude Partner Network company. Our members sit these exams under our partner standing. Facts on this page were last checked on November 25, 2026.

## Ready to sit CCDV-P for real?

Registration needs a Claude Partner Network organization. [YAID Network](https://youraidept.com/network) members register under our partner standing. $149 per quarter, exam fee separate.

[Apply to join YAID ↗](https://youraidept.com/network/apply?ref=drill)[How registration works →](https://youraidept.com/network/register-for-claude-certification)