AI Certificates

CCDV-F Prompt and Context Engineering practice questions

11% of the CCDV-F exam. These worked examples come from free Form 1, with an explanation for every answer option.

D6 Prompt and Context EngineeringCCDV-F · Form 1 · free

Meridian Logistics runs a Claude-powered agent that reconciles shipping manifests. Each run makes about 40 tool calls, and several return multi-thousand-line CSV dumps. Around the 30th call, answer quality drops and the agent begins re-requesting files it already fetched, while token spend climbs every run. Which change most directly addresses the degradation?

  1. A

    Move the agent to a larger model tier so it can reason over the accumulated tool output more capably.

    A larger tier reasons better per token, but the transcript is still bloated with stale CSV dumps, so the drift and re-fetching continue.

  2. B

    Raise max_tokens on each request so responses are never truncated mid-reconciliation.

    Raising max_tokens addresses truncated responses; the failures here come from a crowded input context, not cut-off output.

  3. C

    Prune or summarize older tool results, keeping only fields still needed for reconciliation.Correct

    Trimming spent tool output shrinks the working context, so the model keeps sight of what it already fetched and reasons over what still matters.

  4. D

    Enable prompt caching on the conversation prefix so resending earlier tool output costs less.

    Caching cuts the cost and latency of resending the prefix, but the noisy content still occupies the context and keeps degrading answers.

The principle

Long agentic runs degrade when old tool output crowds the context window; pruning or compacting spent results restores signal, while bigger models, caching, or larger output budgets leave the bloat in place.

D6 Prompt and Context EngineeringCCDV-F · Form 1 · free

A developer's main agent must survey hundreds of source files but needs only a short architectural summary to continue its task. Which approach best keeps the main agent's context window clean?

  1. A

    Hand the survey off to a subagent that does the heavy reading and reports back its conclusions.Correct

    A subagent isolates the bulky file contents in its own context, so the main agent receives just the distilled summary and nothing else.

  2. B

    Read every file in the main conversation itself, then trigger a compaction pass once the survey finishes.

    Compaction recovers space after the fact, but the file dumps still flow through the main context first and compaction can lose detail the task needs.

  3. C

    Cache the file contents as a shared prompt prefix so repeated reads cost fewer tokens.

    Caching lowers the cost of resending a stable prefix; every cached file still occupies space in the main context window.

  4. D

    Request the survey in a single response by raising the max_tokens limit substantially.

    A larger response budget affects output length, not the input-side accumulation of hundreds of files.

The principle

Context isolation through subagents keeps high-volume intermediate reads out of the parent context entirely, which beats cleaning up after the bloat has already happened.

D6 Prompt and Context EngineeringCCDV-F · Form 1 · free

A developer builds a support assistant whose persona, tone rules, and refusal policy stay fixed, while each request brings a new customer message. Where should these components be placed?

  1. A

    Send the rules and the customer message together in the user turn so nothing is split across components.

    Bundling everything into the user turn can work, but it blurs the stable policy layer with per-request data and forfeits the system prompt's role-setting placement.

  2. B

    Put the standing guidance in the system prompt and pass each customer message as user content.Correct

    Stable behavioral instructions belong in the system prompt, leaving user turns to carry the changing per-request data.

  3. C

    Repeat the full rules inside every user turn beside the message so they stay in scope.

    Restating rules each turn keeps them visible but bloats every request and invites drift between copies; the system prompt states them once, authoritatively.

  4. D

    Put the customer message in the system prompt so it receives the strongest instruction weight.

    The system prompt is for the application's standing instructions; injecting untrusted customer text there mixes data into the control layer.

The principle

Place stable role and policy instructions in the system prompt and changing data in user turns; that separation keeps behavior consistent and keeps untrusted input out of the control layer.

Start free CCDV-F Form 1The eight domains