Home › Study guides › CCAR-P › Domain 1 › Lesson 1.6
CCAR-P · Domain 1 · 18% of the exam · Lesson 1.6 · 19 min read Updated for the December 7, 2026 exam guide (v1.1)
Choosing the deployment surface and the agent runtime
Pick where Claude is served (Claude API, Bedrock, Google Cloud, Foundry) and who runs the agent loop, from the binding constraint, and name the trade-offs.
Written against skill 1.6 of the official CCAR-P exam guide (Version 1.1, effective December 7, 2026). An independent resource, not affiliated with Anthropic; the practice questions are written from scratch.
1.6.1 Two questions hidden inside "which API do we call?"
Hennacombe Care runs fourteen rehabilitation clinics across the Netherlands and Germany. It wants Claude for two jobs. The first is a letter assistant in the clinician portal: a therapist opens a patient, clicks "draft referral", and gets a letter to check and sign. The second is a nightly reconciliation agent that works through the remittance files insurers send back, runs scripts to match every payment line against Hennacombe's billing records, and leaves a report of mismatches for the finance team. Some nights that takes three hours.
Saskia, the solution architect, collects the constraints in a week of discovery. Femke, the data protection officer, states one plainly: patient data must be processed and stored inside the European Union, and the clinics' contracts with insurers say the same. Wouter, who leads a platform team of three, would rather not run agent infrastructure at all. The product owner wants the newest Opus model on the reconciliation work. And Hennacombe already runs everything on AWS in Frankfurt.
A developer's first instinct is to create an API key and start calling the model. That call answers none of the questions on Saskia's list. It does not say where the patient data is processed, who operates the servers, which features exist, or who keeps the reconciliation agent alive for three hours. Two separate decisions hide inside "which API?". The deployment surface is where Claude is served to you: the Claude API, Amazon Bedrock, Claude Models on Google Cloud (formerly Vertex AI) or Microsoft Foundry. The agent runtime is what runs the agent loop: your own code calling the Messages API, the Agent SDK or headless Claude Code in your containers, or Claude Managed Agents hosted by Anthropic.
Two linked decisions
Deployment surface
Agent runtime
the surface limits which runtimes you can pick
1.6.2 Four surfaces, one question: who operates the model, and where
Here is the question that trips people up: is Claude on a cloud marketplace the same Claude as on the Claude API? The model family is the same. What differs is who operates the inference stack, where requests are processed, which features are switched on, and whose terms govern the data. Those differences are exactly what a compliance officer and a platform lead care about, so treat the surface as an architectural component, not a billing detail.
The Claude API is Anthropic's own service. It carries the full feature set, betas included, and Claude Managed Agents. Its residency control is the inference_geo parameter, which today accepts "global" or "us", plus a workspace geo for data at rest, which today is "us" only. Amazon Bedrock serves Claude on AWS-managed infrastructure with zero operator access: Anthropic personnel have no access to the inference infrastructure, and features follow Bedrock's own release schedule. You choose a global endpoint, which routes across all regions for availability, or a regional one at a 10% premium, which keeps traffic in a single region or, through an inference profile, inside one geography such as the EU.
Claude Models on Google Cloud comes in two offerings, and the difference matters. The Google-managed offering is operated by Google as part of its Agent Platform, with global, multi-region (us or eu) and regional endpoints; multi-region and regional cost 10% more than global. The Anthropic-managed offering is the Claude API run by Anthropic and reached through your Google Cloud project and bill. Microsoft Foundry runs an Anthropic-operated service, either on Azure infrastructure or on Anthropic's, billed through the Azure Marketplace, with Global Standard or US Data Zone Standard deployments.
| Surface | Who runs inference | Residency controls today | Feature gaps to check |
|---|---|---|---|
| Claude API | Anthropic | inference_geo global or us; workspace geo us |
None: the full first-party feature set, betas included |
| Amazon Bedrock | AWS-managed infrastructure | Global endpoint, or regional (single region or US, EU, JP, AU profile) | No Files API, server-side tools, Agent Skills, MCP connector, Message Batches or Managed Agents |
| Google Cloud, Google managed | Google, on Agent Platform | Global, multi-region us or eu, or regional |
Same gaps as Bedrock except web search; regional endpoints serve only older models |
| Google Cloud, Anthropic managed | Anthropic, through your Google project | Location global; inference_geo us or global |
Close to the Claude API, Managed Agents included |
| Microsoft Foundry | Anthropic, on Azure or on Anthropic | Global Standard or US Data Zone Standard | No Managed Agents or Message Batches; Azure-hosted also lacks code execution, Skills and Files API |
Memorise the shape, not the cells: cloud-operated surfaces trade features for staying inside the provider's boundary, and every surface's residency options are a closed list you can look up. The cells change. Each feature page in the docs carries an Availability section naming the surfaces that support it, and that is where an architect checks before committing.
1.6.3 Which constraint binds: residency, compliance, model availability, ownership
Every engagement arrives with a wish list, and not every wish is equal. The question that decides a surface is which constraint is binding: the one that cannot be traded away without breaking a law, a contract or an attestation. Saskia sorts Hennacombe's constraints into the four kinds the decision turns on.
- DATA RESIDENCY. Where processing and storage happen. Femke's rule is binding: it comes from contracts and the DPO's processing record, not from a preference.
- COMPLIANCE. What the regime requires of the service: retention, zero data retention eligibility, audit. It is not the same as residency. A zero data retention (ZDR) arrangement controls how long data is kept, not where it is processed, so it can never satisfy a residency rule.
- MODEL AVAILABILITY. Whether the model you need is served where you are pinned. On the Google-managed offering, for example, regional endpoints serve only Claude Sonnet 4.6 and earlier; the newest models need the global or a multi-region endpoint.
- OPERATIONAL OWNERSHIP. Who will run, patch, scale and be paged for each part. Wouter's wish is real, but it is a preference about effort, not an obligation.
Now apply the binding rule to the table. The Claude API offers us or global and stores workspace data in the US, so it fails. Claude Platform on AWS and the Anthropic-managed Google offering have the same geos, even though one would sit on Hennacombe's AWS bill. Foundry offers Global or US Data Zone, so it fails too. The Google-managed eu multi-region would pass, but Hennacombe has no Google Cloud estate, so it adds a second cloud to operate. Bedrock with the EU inference profile passes, and it sits in the account where Hennacombe's attestations already live.
Which surfaces survive Hennacombe's residency rule
us or global; workspace geo useu multi-region passes, but adds a second cloud to runTwo checks remain before the surface is settled. Femke matches the regions the EU profile can route to against the contracts, because a label is not a list. And Saskia confirms in AWS's model availability table that the Opus model the product owner wants is served on that profile, and writes down a fallback tier in case it is not. The exam loves this step, because a design can pass residency and still fail when the model it names is not served there.
1.6.4 Three agent runtimes: who runs the loop
With the surface chosen, the next question sounds simpler and is not: who runs the agent loop? An agent is a model choosing tool calls in a loop until the work is done. Something has to call the model, run each tool, keep the conversation, and survive a crash at 2 a.m. There are three families of answer, and they differ in where the loop lives, where session state sits and who sandboxes the tools.
The Messages API loop is your own code. Your service calls the model, runs each requested tool, appends the result and calls again; the client SDKs' beta tool runner can drive the loop for you. By default the Messages API is stateless, so your code resends the conversation each turn and owns its storage. The Agent SDK gives you the loop, built-in tools (files, shell, search), hooks, permissions and sessions that power Claude Code, as a library in your process. Under it, each session is a claude subprocess that owns a shell, a working directory and transcript files on local disk.
Headless Claude Code (claude -p) is the same engine driven from a script or a CI job. Claude Managed Agents is a hosted harness: Anthropic runs the loop, keeps session history server-side, and executes tools in an Anthropic-managed cloud sandbox or in a self-hosted sandbox on your infrastructure.
Who owns what, by runtime
Messages API loop
Agent SDK or claude -p
claude subprocess in your containerSessionStore to persistManaged Agents
| Runtime | When it wins | What it costs |
|---|---|---|
| Messages API loop | Short, interactive turns; fine control; a service that already owns user state; any surface | You write the loop, the tool execution and the state store |
| Self-hosted Agent SDK or headless Claude Code | Long, tool-heavy work that must stay on your infrastructure; any surface the SDK can reach | You host containers, persist transcripts, isolate tenants and control egress |
| Claude Managed Agents | Long-running or asynchronous work with minimal infrastructure, where the surface offers it and the data may sit with Anthropic | Beta; only on the Claude API, Claude Platform on AWS and Anthropic-managed Google; session data stored by Anthropic, not ZDR or HIPAA eligible |
The runtime is not free to choose once the surface is fixed. Managed Agents is offered on the Claude API, Claude Platform on AWS and the Anthropic-managed Google offering, not on Bedrock, Google managed or Foundry. Hennacombe's surface has already ruled it out. There is a variant, self-hosted Managed Agents, where you run the service, its database and the sandboxes yourself and send model calls to a provider such as Bedrock. Access goes through Anthropic's account team. Because you store the data, it is the one form of Managed Agents eligible for zero data retention, but it hands Wouter's team everything Managed Agents was meant to take away.
1.6.5 The trade-offs the selection imposes
A selection is not finished until its costs are written down, because someone will pay them. The guide names six places a surface and runtime choice moves cost: latency, feature availability, hosting, session state, sandboxing and data custody. Saskia's design gives the letter assistant a Messages API loop in the existing portal service, and the reconciliation job the Agent SDK in containers in Frankfurt, both calling Claude through the Bedrock EU profile. Here is what Hennacombe accepts.
- LATENCY. The EU profile routes only across EU regions, so it gives up the global endpoint's routing across every region for maximum availability, and regional routing costs 10% more than global. Ephemeral containers add a cold start before the first turn.
- FEATURE AVAILABILITY. No server-side code execution, Files API, Agent Skills or Message Batches on Bedrock. The reconciliation agent runs its scripts with the Agent SDK's own shell tool inside the container, so the gap is covered, at the price of owning that shell.
- HOSTING. Wouter's team runs the containers, takes SDK patch releases and sizes hosts for concurrent sessions.
- SESSION STATE. Transcripts live on local disk and vanish with the container, so a three-hour run needs a
SessionStoreto resume after a crash. - SANDBOXING. The container is the sandbox: isolation, resource limits, and an egress proxy that allows only the billing database and the insurers' file store.
- DATA CUSTODY. AWS governs data handling on Bedrock; transcripts and logs sit in Hennacombe's own account under its own retention.
Saskia writes the decision record so that the trade-off is visible to the people who will live with it:
Decision: Claude via Amazon Bedrock, EU inference profile. Letters: Messages API loop in the portal service. Reconciliation: Agent SDK in Hennacombe containers (eu-central-1).
Binding constraint: EU processing and storage of patient data (DPO processing record; insurer contracts).
Rejected: Claude API, Claude Platform on AWS and Anthropic-managed Google (US or global geos only); Foundry (Global or US Data Zone only); Managed Agents (not offered on Bedrock; session data stored by Anthropic).
Accepted trade-offs: platform team owns containers, session persistence (SessionStore) and egress control; first-party features such as server-side code execution and Batches unavailable; EU routing at a 10% premium over global.
Revisit when: an EU geo appears for the Claude API or Managed Agents, or self-hosted Managed Agents is approved for this account.
Look at the "Rejected" and "Revisit when" lines. They turn a choice into an argument the DPO, Wouter and the product owner can each check against their own constraint. Wouter did not get what he wanted, and the record says why in one line he cannot dispute: residency binds, ownership yields.
1.6.6 The exam traps
- ✗ Treating zero data retention as a residency control. ✓ ZDR limits how long data is kept; residency is where it is processed and stored, settled by the surface and its geo or region options.
- ✗ Choosing the Claude API "for the newest features" when an obligation pins processing to a geography it does not offer. ✓ Let the binding constraint choose the surface, then accept the feature gap and cover it in the runtime.
- ✗ Assuming a hosted runtime exists on every surface. ✓ Managed Agents runs only on the Claude API, Claude Platform on AWS and the Anthropic-managed Google offering; on Bedrock, Google managed or Foundry you run the loop yourself.
- ✗ Assuming a marketplace listing means the cloud provider operates inference. ✓ Ask who runs inference and where; several cloud-billed offerings are Anthropic-operated.
- ✗ Pinning to a region and naming the newest model without checking it is served there. ✓ Verify model availability on the exact endpoint or profile, and record a fallback tier.
- ✗ Self-hosting the Agent SDK and leaving transcripts on container disk. ✓ Persist sessions to durable storage and treat the container as the sandbox, with egress control.
1.6.7 Put it together: select a surface and a runtime, and defend the trade-off
You can now rank constraints and find the binding one. You can read the surface table for who operates inference and where, and check that the model and the features you need exist on that endpoint. You can pick the runtime the surface allows and write down the six costs the pair moves, each with an owner.
The rest of this domain builds on the same habit of naming the constraint that decides. Model tier selection (2.1) works inside the surface you choose here, picking among the models it serves. And when an obligation needs more than a surface to evidence it, retention settings, audit logging and redaction join residency in compliance controls (5.5).
Key takeaways
- ✓ A deployment surface decides who operates inference, where requests are processed, which features exist and whose data terms apply; the agent runtime decides who runs the loop, holds the state and sandboxes the tools.
- ✓ Cloud-operated surfaces (Bedrock, Google managed) keep processing inside the provider's boundary but lack many first-party features; check each feature's Availability section.
- ✓ Residency and compliance obligations bind, model availability on the pinned endpoint must be verified, and ownership preferences yield; zero data retention never answers "where".
- ✓ The Messages API loop, the self-hosted Agent SDK or headless Claude Code, and Managed Agents move the loop, the session state and the sandbox from your code to your containers to Anthropic.
- ✓ Managed Agents is offered only on the Claude API, Claude Platform on AWS and the Anthropic-managed Google offering, stores session data server-side, is not HIPAA eligible, and is ZDR eligible only when self-hosted.
- ✓ Every selection moves latency, feature availability, hosting, session state, sandboxing and data custody to a named owner, and the decision record says so.
Check your understanding
4 questions written for this lesson. Every answer option is explained, including the ones you did not pick. Nothing is stored.
CCAR-P practice questions are being rewritten
The 189 CCAR-P practice questions here were written for the previous exam guide and are tagged to its domains. New questions for the December 7, 2026 guide (v1.1) are being written. Until they are ready, the practice for the new guide is the questions at the end of every lesson, with every answer option explained. The old bank stays open for general practice.
Sources
- Claude in Amazon Bedrock
- Claude Models on Google Cloud
- Claude Models on Google Cloud (Google managed)
- Claude Models on Google Cloud (Anthropic managed)
- Claude in Microsoft Foundry
- Claude Platform on AWS
- Data residency
- Using the Messages API
- Claude Managed Agents overview
- Self-hosted sandboxes
- Self-hosted Claude Managed Agents
- Agent SDK overview
- Hosting the Agent SDK
- Run Claude Code programmatically
- The CCAR-P exam guide, summarised