CCDV-F · Domain 2: Applications and Integration · 20% of the exam
Task 2.2: Application Boundary and Surface Behavior
Judging an application design by how Claude reads instructions on each surface, which content crosses into and out of the application, and whether its schema and session choices meet the requirements.
Study it
Surfaces, the application boundary, schemas and sessions
Lesson coming
Sample questions
Try each one before opening the answer. Every option is explained, with the Anthropic documentation page that proves it.
Question 1 · choose 1
Your multitenant contract-review app uploads each tenant's documents with the Files API and refers to them by file_id. Every tenant has its own service account and key, and all files are uploaded to the Default Workspace with the tenant's ID in the filename. A penetration test shows that one tenant's key can read another tenant's file when given its file_id. What change gives tenants hard isolation?
AKeep the files in the Default Workspace and check the tenant ID in each filename before every request
BMark every uploaded file as not downloadable so that other tenants cannot fetch its contents
CCreate a workspace for each tenant and upload its files there, using a key scoped to that workspace
DGive each tenant a second service account in the Default Workspace that only uploads and never reads
Show the answer and why
AKeep the files in the Default Workspace and check the tenant ID in each filename before every request
Incorrect
Files are not scoped to an end user; any key with access to the workspace can still use them.
BMark every uploaded file as not downloadable so that other tenants cannot fetch its contents
Incorrect
Uploaded files are already not downloadable, and that does not stop another key from referencing them.
CCreate a workspace for each tenant and upload its files there, using a key scoped to that workspace
Correct
The workspace is the isolation boundary for files, so a workspace per tenant isolates each tenant's data.
DGive each tenant a second service account in the Default Workspace that only uploads and never reads
Incorrect
Every service account can use the Default Workspace, so its files stay reachable by the other tenants' keys.
Uploaded files are accessible to every API key with access to their workspace; they are not scoped to an end user, conversation or session. For a multitenant app, create a separate workspace for each tenant: the workspace is the isolation boundary for files.
Your chat backend calls the Messages API once per user turn. On turn 12 it sends:{
"model": "claude-sonnet-5-5",
"max_tokens": 1024,
"cache_control": {"type": "ephemeral"},
"system": "You are the support assistant for Acme...",
"messages": ["...all eleven earlier turns...", {"role": "user", "content": "And the warranty?"}]
}Each turn adds two blocks. A reviewer asks how this session design handles cost. What happens with the earlier turns on turn 12?
AThe API already holds them from turn 11, so sending them again bills them twice
BThey are written to the cache again at full price, because the last block changes on every turn
COnly the system prompt is cached, because top-level cache_control applies to system and nothing else
DThey are read from the cache written on turn 11, as the breakpoint moves to the last cacheable block
Show the answer and why
AThe API already holds them from turn 11, so sending them again bills them twice
Incorrect
The Messages API is stateless; the full history must be sent with every request.
BThey are written to the cache again at full price, because the last block changes on every turn
Incorrect
Previous content is read from cache; only the new tail is processed and written.
COnly the system prompt is cached, because top-level cache_control applies to system and nothing else
Incorrect
Automatic caching applies the breakpoint to the last cacheable block, covering the whole prefix.
DThey are read from the cache written on turn 11, as the breakpoint moves to the last cacheable block
Correct
With automatic caching each request caches up to its last block and reads earlier content from cache.
The Messages API is stateless, so the backend sends the whole conversation each turn. A single top-level cache_control enables automatic caching: the breakpoint moves to the last cacheable block as the conversation grows, and earlier content is read from cache.
A customer requires that model inference for its requests runs only in a specific geography. Your application calls the Messages API directly. Which control does the API offer for this?
ASet inference_geo on each request, or set a default for the workspace
BChoose a model ID whose name includes the region
CSend the requests through the Message Batches API, which runs them in the customer's region
DAdd the region to the anthropic-workspace-id header
Show the answer and why
ASet inference_geo on each request, or set a default for the workspace
Correct
inference_geo controls where model inference runs.
BChoose a model ID whose name includes the region
Incorrect
Model IDs identify models, not where inference runs.
CSend the requests through the Message Batches API, which runs them in the customer's region
Incorrect
Batching changes timing and price, not the geography of inference.
DAdd the region to the anthropic-workspace-id header
Incorrect
That header selects a workspace; it does not set a region.
Data residency controls manage where model inference runs and where data is stored. On the Messages API, set inference_geo on each request or set a default for the workspace.
Your Claude Agent SDK service exports OpenTelemetry metrics and log events to a third-party observability vendor. It sets CLAUDE_CODE_ENABLE_TELEMETRY=1 and OTLP exporters, and no other telemetry variables. Security asks whether the text of your users' prompts reaches that vendor. What does the SDK's observability guide say?
AYes; every log event carries the full prompt text, so the vendor has to be approved to store it
BOnly for prompts that lead to tool calls, because tool events copy the prompt into their attributes
CNever; the SDK has no setting at all that adds prompt text to the telemetry it exports
DNot by default; prompt text is added to the exports only if OTEL_LOG_USER_PROMPTS=1 is set
Show the answer and why
AYes; every log event carries the full prompt text, so the vendor has to be approved to store it
Incorrect
Telemetry is structural by default; prompt text is recorded only when you opt in.
BOnly for prompts that lead to tool calls, because tool events copy the prompt into their attributes
Incorrect
Tool names are recorded by default, but prompt text needs its own opt-in variable.
CNever; the SDK has no setting at all that adds prompt text to the telemetry it exports
Incorrect
Setting OTEL_LOG_USER_PROMPTS=1 adds prompt text to the exported events.
DNot by default; prompt text is added to the exports only if OTEL_LOG_USER_PROMPTS=1 is set
Correct
The content your agent reads and writes is not recorded unless an opt-in variable adds it.
Agent SDK telemetry is structural by default: durations, model names and tool names are recorded, but the content your agent reads and writes is not. Opt-in variables add content, such as OTEL_LOG_USER_PROMPTS=1 for prompt text and OTEL_LOG_TOOL_DETAILS=1 for tool input arguments. Leave them unset unless your observability pipeline is approved to store that data.