# CCDV-P Practice: Advanced debugging and incident response

> 9 free CCDV-P practice questions on advanced debugging and incident response (10% of the exam), with study notes and explanations.

Source: https://youraidept.com/network/ccdv-p-practice-questions/advanced-debugging-and-incident-response

## What to know about Advanced debugging and incident response

- Diagnosing multi-turn, multi-agent and non-deterministic failures from evidence, and isolating the origin among the model's output, the agent harness, the tools and the data.
- Model refusals as a failure class of their own, and retrieval-grounding failures.
- Incident response during an outage or a quality regression: triage, mitigation, rollback and communication.
- Closing the loop: turn the incident into regression evaluations, monitoring coverage and postmortem findings.

## Advanced debugging and incident response questions

All domains (9) Advanced debugging and incident response (9)

Advanced debugging and incident response

An order-support agent intermittently tells customers that no orders were found. Traces show the lookup tool span returning the full result each time, while the next model request contains a result cut off after a fixed number of characters with no marker. Failures occur only for customers with long order histories. Where is the fault, and what is the fix?

- The tool: it returns too much data, so cap the lookup at the ten most recent orders and drop the rest of the history
- The model: it loses track of long tool results, so move to a larger model with a longer effective attention span
- The harness: it truncates silently, so page or filter results in the tool and tell the model when output was cut
- The prompt: it lacks emphasis, so add an instruction to read every tool result in full before answering the customer

Check answer

### Show answer

Answer: The harness: it truncates silently, so page or filter results in the tool and tell the model when output was cut. Comparing the tool span with the next model request isolates the layer: the tool produced the data and the model never received it. Silent truncation in the harness makes a data-delivery bug look like a model failure. The fix is to control result size deliberately, with pagination or filters, and to signal truncation so the model can ask for more. A bigger model or a firmer prompt cannot read text that was removed.

Advanced debugging and incident response

An agent fails on a particular input roughly once in thirty runs. An engineer reruns it once, sees a correct result, and proposes closing the ticket. What is the sound way to debug this?

- Capture the exact failing request, replay it many times to measure the failure rate, and test the fix against it
- Wrap the step in an automatic retry, so that the occasional failure is absorbed and never reaches the user again
- Close the ticket as transient, and reopen it only if the same customer reports the same failure for a second time
- Rerun the whole task end to end five times, and treat five clean runs as evidence that the problem has gone away by itself

Check answer

### Show answer

Answer: Capture the exact failing request, replay it many times to measure the failure rate, and test the fix against it. A failure with a low base rate cannot be confirmed or cleared by a few reruns: five clean runs are expected most of the time at one in thirty. Debugging needs the exact request that failed, including messages, tools, parameters, and model version, a replay that estimates the rate, and a fix judged by a measurable drop. A blind retry hides the defect and doubles its cost when the failure is correlated with the input.

Advanced debugging and incident response

At 14:00 a team deploys a new prompt version together with an updated tool definition. By 14:30 monitoring shows the wrong-answer rate on sampled traffic has tripled. What should the on-call engineer do first?

- Investigate in production until the root cause is understood, so that the eventual fix addresses the real problem
- Roll back to the last known-good prompt and tool versions, confirm recovery on the same metric, then investigate from traces
- Wait for another hour of traffic, so that the sample is large enough to be sure the change in rate is not noise
- Edit the live prompt to patch the most common wrong answer, and watch whether the wrong-answer rate comes back down

Check answer

### Show answer

Answer: Roll back to the last known-good prompt and tool versions, confirm recovery on the same metric, then investigate from traces. During a regression the first job is to stop the harm, and a rollback to a known-good version is the fastest safe mitigation when a deploy is the obvious suspect. Root cause analysis follows from preserved traces once users are protected. Debugging forward or hot-patching a live prompt extends the incident and adds an untested change on top of it.

Advanced debugging and incident response

A multi-agent system produces a report with a wrong revenue figure. Three subagents contributed, and the orchestrator wrote the final text. What is the most direct way to find where the error entered?

- Rerun the whole system on the same input, and check whether the wrong figure appears again in the new report
- Raise the effort setting on all four agents, and compare the new report with the original one for differences
- Follow the figure back through each handoff, comparing what each subagent returned with what the orchestrator kept
- Add a verifier agent at the end of the pipeline that checks every figure in the final report against the sources

Check answer

### Show answer

Answer: Follow the figure back through each handoff, comparing what each subagent returned with what the orchestrator kept. In a multi-agent trace the question is where a value first became wrong: in a tool result, in a subagent's summary, or in the orchestrator's synthesis. Walking the handoffs backwards finds the first divergence and identifies the layer to fix. A rerun may not reproduce a non-deterministic failure and says nothing about its origin, and a verifier may catch the symptom next time without explaining this one.

Advanced debugging and incident response

After a model upgrade, about 2% of requests to an internal security-scanning assistant return no usable output. The dashboard shows a 100% success rate, because every response is an HTTP 200. Inspection shows these responses end with a refusal stop reason. What should the team do?

- Treat the responses as transient failures, and retry each one on the same model until it eventually returns usable output
- Record refusals as a distinct outcome in telemetry and evals, sliced by request type, with a designed handling path
- Raise max_tokens for the affected requests, since an empty output usually means the response ran out of room
- Keep counting them as successes, since the API accepted and processed each request without returning an error

Check answer

### Show answer

Answer: Record refusals as a distinct outcome in telemetry and evals, sliced by request type, with a designed handling path. A refusal is a successful HTTP response with a distinct stop reason, so status-code metrics cannot see it. It needs its own category in telemetry and evals, broken down by request type to show which legitimate work is affected, and a deliberate path such as a prompt revision, a fallback, or a clear message. Retrying the identical request on the same model repeats the decision, and truncation would show a different stop reason.

Advanced debugging and incident response

An agent emailed the wrong customers because two accounts shared a name and its lookup tool returned the first match. The draft postmortem lists one action item: remind the team to be more careful with customer lookups. What should the postmortem produce instead?

- A sentence added to the system prompt telling the agent to double-check the recipient before sending any email
- A rewritten incident summary that names the engineer who shipped the lookup tool and the reviewer who approved it
- Regression cases for ambiguous matches, an alert on the signal that would have caught it, and a fix to the lookup
- A month of manual review of every outgoing email, after which the review ends if no further errors are found

Check answer

### Show answer

Answer: Regression cases for ambiguous matches, an alert on the signal that would have caught it, and a fix to the lookup. A postmortem should leave the system harder to break in the same way: the failing scenario and its variants become eval cases that gate releases, monitoring gains the signal that was missing, and the control gap is closed, here by making the tool return ambiguity instead of a first match. Reminders and prompt sentences decay, temporary manual review ends, and blame teaches people to hide problems.

Advanced debugging and incident response

A policy assistant keeps omitting exceptions from its answers. In failing traces the retrieved chunk ends in the middle of a clause, and the exception that completes it sits at the start of the next chunk, which was not retrieved. The model's answer is faithful to the text it was given. Where is the fault, and what is the fix?

- Chunking: fixed-size splits cut rules from their exceptions, so split on document structure and retrieve neighbors
- Generation: the model is summarizing too aggressively, so instruct it to always list exceptions to any rule it states
- Reranking: the reranker scores the exception chunk too low, so replace it with a model trained on policy text
- Retrieval depth: too few chunks reach the context, so pass the top twenty chunks to the model instead of the top five

Check answer

### Show answer

Answer: Chunking: fixed-size splits cut rules from their exceptions, so split on document structure and retrieve neighbors. The answer matches the retrieved text, so generation is working: the defect is that indexing separated a rule from its exception. Structure-aware chunking, overlap, or retrieving the surrounding section keeps related clauses together. An instruction to list exceptions cannot surface text the model never saw, and the exception chunk alone scores poorly for the question because, cut from its rule, it barely mentions the topic.

Advanced debugging and incident response

A team discovers that for six hours a bug has caused an agent to write incorrect values into about 1,300 records across several tenants, and the agent is still running. What is the right order of response?

- Ship a fix for the bug, then let the agent make a correction pass over its own records, then inform the tenants
- Establish the full root cause first, so that the first message to tenants can explain exactly what went wrong
- Disable the agent's write path, scope the affected records from the audit log, notify stakeholders, then remediate
- Delete the records the agent touched in the last six hours, restore them from backup, then restart the agent

Check answer

### Show answer

Answer: Disable the agent's write path, scope the affected records from the audit log, notify stakeholders, then remediate. Containment comes first: every minute the agent keeps writing enlarges the incident. The audit log then defines the blast radius, stakeholders get facts and a time for the next update, and remediation is driven by that record. Letting the agent repair its own output trusts the component that failed, waiting for root cause delays notification, and a bulk delete and restore destroys legitimate writes made in the same window.

Advanced debugging and incident response

Answer quality on sampled traffic degrades sharply at 09:10. Nothing was deployed by the team in the previous three days. What should the on-call engineer check first?

- Last week's deployment, rolling it back as a precaution since it is the most recent change that the team made
- The service's host metrics, restarting every instance in turn to clear any state that may have built up over time
- What changed outside the team's deploys: the served model version, tool dependencies, index refreshes, and input mix
- The reasoning effort setting, raising it across all routes until the sampled quality score recovers to its old level

Check answer

### Show answer

Answer: What changed outside the team's deploys: the served model version, tool dependencies, index refreshes, and input mix. An LLM system can regress without a deploy because several of its inputs change on their own: a model alias can move, a tool's upstream API can change its responses, a retrieval index can refresh with bad data, and users can start sending different inputs. Telemetry sliced by those dimensions narrows it quickly. Rolling back an unrelated release or restarting hosts changes things that did not change at 09:10.

## 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

- [Production integration, reliability, and knowledge grounding (20 questions)](https://youraidept.com/network/ccdv-p-practice-questions/production-integration-reliability-and-knowledge-grounding)
- [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)
- [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 advanced debugging and incident response? +

10% 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 9 original scenario questions written from the blueprint for this domain. Reproducing exam content would violate the candidate agreement.

### How should I study advanced debugging and incident response 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)