15. CCDV-F exam prep

40 cards

Review this deck
All cards in this deck

CCDV-F exam format

53 multiple-choice and multiple-response questions (each states how many to pick), 120 minutes, pass with a scaled score of 720 or higher on a 100–1,000 scale.

Largest CCDV-F domain

Domain 2 Applications and Integration (33.1%); followed by Model Selection and Optimization (16.8%) and Agents and Workflows (14.7%).

Image sources for vision

An `image` content block with a `base64`, `url` or `file_id` (Files API) source; Bedrock and Vertex AI accept only base64.

Visual tokens of one image

`⌈width/28⌉ × ⌈height/28⌉`; from Claude 4.7 onward the long edge is capped at 2,576 px and 4,784 tokens, larger images are downscaled.

Vision limits to remember

Does not identify people, coordinates and object counts are only approximate, cannot detect AI-generated images; put the image before the question.

Calling Claude via Bedrock

The SDK's Bedrock client (Mantle, e.g. `AnthropicBedrockMantle`), model ID `anthropic.claude-opus-5-5`, authenticated with AWS credentials/IAM.

Calling Claude via Vertex AI

`AnthropicVertex(project_id, region)`, native model ID `claude-opus-5-5`, authenticated with Google Cloud ADC.

Features missing on Bedrock and Vertex AI (Google managed)

Message Batches API, Files API, Models API, MCP connector, Managed Agents; Claude Platform on AWS and Google Cloud (Anthropic managed), operated by Anthropic, keeps nearly all features.

Message Batches API

Asynchronous processing at 50% off all tokens; up to 100,000 requests or 256 MB; most finish within 1 hour, at most 24 hours; results kept for 29 days.

Reading batch results

Results are unordered, match them by `custom_id`; check `result.type` (`succeeded`, `errored`, `canceled`, `expired`).

Batch or realtime

Someone waiting means realtime; nightly reports, backfills, evals, backlog classification mean batch.

Zero-shot / single-shot / multi-shot

No example / one example / a few (usually 3–5) diverse examples in `<example>` tags; measure with evals whether examples help.

Messages API streaming

Server-Sent Events over HTTP, one-way; a websocket only sits between the backend and the browser if a two-way channel is needed.

What the SDK handles on top of REST

Credentials, version header, retries on 408/409/429/5xx with backoff, timeouts, typed error classes, types, stream helpers and the Tool Runner.

CLAUDE.md for an app calling the Messages API

Has no effect; the API only sees `system`, `messages`, `tools` in the request.

Session hygiene

One history per session tied to an authenticated user, one task per session, trim tool output, append-only history.

A good schema

`enum`, `required`, `additionalProperties: false`, meaningful names, a valid escape hatch (`other`, `needs_human_review`), schema versioning.

Model IDs on the Claude API

Every model ID is a fixed snapshot, including IDs without a date suffix from the 4.6 generation; aliases of older models point to dated IDs.

Model aliases in Claude Code

`opus`, `sonnet`, `haiku` change over time and per provider; pin with `ANTHROPIC_DEFAULT_*_MODEL` or the full model ID.

Prompt versioning

Prompts in the repo, log `prompt_version` with every request, eval before deploying, able to roll back, change one variable at a time.

Claude Code plugin

A directory bundling skills, agents, hooks, MCP servers; manifest `.claude-plugin/plugin.json` (only `name` is required); components are namespaced as `/plugin:skill`.

Plugin dependencies

The `dependencies` field in `plugin.json` lists plugins that must be enabled, as `"name"`, `"name@marketplace"` or an object with `version`.

Workflow vs agent

A workflow follows a path predefined in code; an agent lets the model direct its own process and tool use.

Workflow patterns

Prompt chaining, routing, parallelization, orchestrator-workers, evaluator-optimizer.

Benefits of subagents

Context isolation, least privilege per role, model choice per task, parallel runs; the cost is higher total tokens and harder debugging.

Managed Agents self-hosted sandbox

The loop runs at Anthropic, tools run in your infrastructure, the worker only connects outbound to receive work.

Managed Agents permission policies

`always_allow`, `always_ask` (default for MCP toolsets), `auto` (the server evaluates each call).

Agent frameworks at a glance

Strands (model-driven, AWS ecosystem), LangGraph (state graph, checkpoints, pause for approval), PydanticAI (typed output with Pydantic).

Client-side vs server-side tools

Client-side ones are executed by your code after `tool_use`; server-side ones (web search, web fetch, code execution) run on Anthropic infrastructure and cannot reach your internal network.

Three MCP primitives

Tools (called by the model), resources (file-like data read by the client), prompts (templates for the user).

MCP stdio transport

The client runs the server as a child process; stdout is reserved for MCP messages, logs must go to stderr.

MCP Streamable HTTP transport

A standalone server with one HTTP endpoint for many clients; validate `Origin`, bind `127.0.0.1` when local, require authentication; replaces the old HTTP+SSE.

Built-in tool / custom tool / Skill / MCP

Use a built-in if one exists; logic for one app is a custom tool; teaching a procedure is a Skill; a capability shared across apps and maintained independently is an MCP server.

Action approval pattern

Automatic for read tools, rules in code for low-risk writes, human approval for outbound actions, deny/hooks for forbidden ones; on rejection return an error `tool_result` with guidance.

Layered response checks

`stop_reason` → safe parse → schema validation → business rules → source cross-check → bounded retry or hand off to a human reviewer.

Be skeptical of confident output

Confident text is not a probability of being right; verify with tools, citations, evals, not by asking the model again.

Jailbreak vs indirect injection

A jailbreak is an attack by the user (input screening, boundaries in the system prompt); indirect injection lives in third-party content (put it in `tool_result`, cite sources, least privilege).

Harmlessness screen

A lightweight model (Haiku 5.5) classifies input with structured outputs; if the screening turn returns `refusal`, treat it as harmful.

Do not put your instructions in `tool_result`

Claude is skeptical of instructions inside tool results; send instructions in the following user turn.

Layered guardrails

Input screening, policy in the prompt, least privilege, approvals and hooks, output checks, logging and monitoring.

15. CCDV-F exam prep – Flashcards – Claude | Học Dev