AI Certificates

CCAR-P Claude Models, Prompting & Context Engineering practice questions

13% of the CCAR-P exam. These worked examples come from free Form 1, with an explanation for every answer option.

D2 Claude Models, Prompting & Context EngineeringCCAR-P · Form 1 · free

A national insurance carrier processes 1.8 million inbound claims emails per day, routing each into one of 12 claim categories. The routing decision is a short classification with a p95 latency budget of 500 ms, and finance has capped the AI line item at $4,000/day. A pilot with the most capable frontier model achieved 97% routing accuracy but would cost roughly 20x the budget at full volume. Which approach best fits the workload?

  1. A

    Keep the frontier model but batch requests overnight in bulk processing windows, confirming the amortized cost fits within the $4,000/day cap

    Overnight batching breaks the 500 ms real-time routing requirement; it treats the cost symptom while destroying the latency contract.

  2. B

    Use a mid-tier model with extended thinking enabled so deliberate reasoning holds routing accuracy near the 97% pilot level at lower per-token cost

    Extended thinking increases both latency and output-token cost, which moves the workload in the wrong direction for a simple, high-volume classification task.

  3. C

    Use the fastest, lowest-cost model with a few-shot prompt containing labeled examples of each category, and measure whether accuracy stays acceptableCorrect

    A bounded 12-way classification is exactly the workload where a small, fast, cheap model plus well-chosen few-shot examples typically closes most of the accuracy gap, and an accuracy measurement validates the trade before committing.

  4. D

    Fine-tune the frontier model on historical routing data so each routing request needs far fewer prompt tokens and the marginal cost per classification drops

    Fine-tuning adds program cost and operational complexity before the cheaper lever, prompting a smaller model, has even been evaluated.

The principle

Model selection should start from the task's intrinsic difficulty, not from the most capable model that works. Simple, high-volume, latency-bound classification is the canonical fit for the smallest model in the family, upgraded with prompt engineering and validated with an eval before scaling.

D2 Claude Models, Prompting & Context EngineeringCCAR-P · Form 1 · free

A legal-tech firm analyzes merger agreements for cross-document inconsistencies: about 200 requests per day, each carrying roughly 150K tokens of contract text, with attorneys reviewing every output. Errors that reach attorneys are expensive to catch, users tolerate multi-minute turnaround, and daily model spend at current volume is under $900 even on the most capable model. The team is debating whether to cut costs with a smaller model. What should they do?

  1. A

    Stay on the most capable model, since at 200 requests/day the absolute cost is small relative to the cost of missed inconsistenciesCorrect

    Low volume, high stakes, and generous latency tolerance mean capability dominates the trade-off, and the total spend is already immaterial next to attorney review costs.

  2. B

    Switch to the smallest model and compensate with a far more detailed system prompt describing the legal reasoning steps to follow

    Prompt detail does not substitute for reasoning capability on genuinely hard cross-document analysis; this optimizes a cost axis that is not the constraint.

  3. C

    Split each 150K-token contract into 10K-token chunks and run them in parallel through a mid-tier model to cut per-request cost and turnaround time

    Chunking destroys exactly the cross-document context the task depends on, trading correctness for a saving that was never needed.

  4. D

    Route straightforward merger agreements to a small model and complex ones to the most capable model, using contract length as the routing heuristic the team maintains

    Tiered routing is sound engineering, but document length is a poor proxy for analytical difficulty and adds routing complexity to save a few hundred dollars a day.

The principle

Cost optimization only matters when cost is actually the binding constraint. When volume is low, error costs are high, and latency is slack, the correct trade is the most capable model, and premature downgrading or chunking optimizes an axis nobody is constrained on.

D2 Claude Models, Prompting & Context EngineeringCCAR-P · Form 1 · free

A retail bank's support chatbot must never give personalized investment advice. The current implementation prepends a 900-word policy paragraph, including this prohibition, to the start of every user message; behavioral rules, tone guidance, and the ban are interleaved in one block. In testing, the bot still occasionally recommends specific funds when users push back twice. What is the most effective structural fix?

  1. A

    Add a second reminder of the prohibition at the end of each user message, closest to the model's response, so the ban is the very last instruction the model reads before it answers

    Repeating instructions inside user turns still leaves policy competing with conversational content and remains vulnerable to user pushback framing.

  2. B

    Move the role definition and prohibitions into the system prompt as explicit, separately stated rules, including what the bot should say instead when asked for investment adviceCorrect

    The system prompt is the designated channel for role and constraints, and pairing each prohibition with a specified fallback behavior gives the model a compliant action instead of just a ban to erode.

  3. C

    Lower the temperature to 0 and cap top-p so the model samples its most probable tokens and adheres more consistently to the instructions it was given

    Sampling settings control output variability, not instruction adherence; a model that yields to pushback at temperature 0.7 can do so identically at 0.

  4. D

    Post-process each response with a keyword filter that blocks replies mentioning fund names, tickers, or share classes before they reach the customer

    A keyword filter treats the symptom, blocks legitimate factual mentions of funds, and misses advice phrased without any ticker or fund name.

The principle

Guardrails belong in the system prompt as distinct, explicit rules, and each 'never do X' is far more robust when paired with 'do Y instead.' Burying policy inside user-turn preambles leaves it structurally equal to the content it must override.

Start free CCAR-P Form 1The seven domains