Claude Certified Architect · प्रोफेसनल

Module 2 — Enterprise integration and production

Study notes written by Sanjay Shah. Not official Anthropic material. Facts marked "check before relying on it" may have changed.

Practice this module

On this page

Course: Claude Architect (Professional), "Design, ship and govern Claude in the enterprise". Study notes in our own words. Matching video: "Your Claude demo worked. Here's what breaks in production." Templates T3–T5. Platform facts were checked on 2026-11-25 (see the README fact table).

What you'll be able to do

  • Name the seven gaps between a working pilot and a production system, and find them in a real design.

  • Design identity so the assistant acts with the signed-in user's rights, never through one shared credential to company data.

  • Make retrieval enforce permissions before any content reaches the model.

  • Choose between the Claude API and a cloud provider (Amazon Bedrock, Google Cloud, Microsoft Foundry), and record why.

  • Plan for slow responses, rate limits and outages: timeouts, a retry budget, a fallback model and a way out to a person.

  • Set cost budgets and the observability you need to run and defend the system.

  • Run a staged rollout with pass gates and a kill switch that one named person can pull.

  • Run a production readiness review and make a go or no-go call that holds up.

Key ideas

1. Why demos hide the hard parts

A pilot usually runs with a few friendly users, a hand-picked document set, one API key, nobody watching cost, and the builder on call. Each of those hides a gap that a real launch exposes. We group them into seven gaps:

The rest of this module takes them one at a time.

2. Gap 1 — Identity: whose rights is Claude using?

Keep two credentials apart in your head:

  • The model credential. The key or cloud role your service uses to call Claude. It belongs to the service, sits in a secrets manager, never reaches a browser, and is rotated. One per environment, and often one per workload, so you can see and cap usage separately.

  • The data and tool credential. What the assistant uses to read documents or call company systems for a user. This must carry the user's own rights, not a shared "assistant can read everything" account.

The common pilot mistake is a single shared service account that can read every HR document, mailbox or ticket. The assistant then becomes a way round your access controls: any user can ask it for anything the service account can see.

The production pattern is on-behalf-of access:

Points to carry into any design:

  • Short-lived and scoped. Minutes, not days. Read-only unless the job needs writes.

  • Standards, not home-made tokens. OAuth 2.0 token exchange (RFC 8693) and the identity provider's on-behalf-of flows exist for exactly this.

  • The audit log shows the real person, not "assistant-service".

  • Agents get their own identity too. An agent working in the background (no user present) gets its own workload identity with only the permissions its job needs, and every action it takes is logged against that identity.

3. Gap 2 — Data access: filter before retrieval, not after

If one index holds documents with different permissions, a search can return a document the user shouldn't see. Claude will then summarise it faithfully. The model has no way of knowing it wasn't allowed.

Rules:

  1. Enforce permissions in retrieval. Filter by the user's groups, role, country or tenant in the query, so forbidden content never enters the prompt. Telling the model "don't reveal manager-only content" is not a control.

  2. Carry the source's permissions into the index. When documents are copied into a vector index, their access rules must travel with them and stay in sync. If a permission is removed at the source, it must disappear from the index quickly.

  3. Separate what must never mix. Different tenants, or highly sensitive collections, can live in separate indexes, which also makes the evidence simpler.

  4. Test with a low-rights user. Ask the HR bot for the CEO's salary while signed in as a new joiner. Make this a permanent test.

Data classes (Module 3) shape this too. Decide which classes may enter a prompt at all, and redact or tokenise the rest first.

4. Gap 3 — Platform choice: Claude API or a cloud provider

Claude is available directly through the Claude API and through cloud platforms: Amazon Bedrock, Google Cloud, and Microsoft Foundry. The model is the same family. What differs is the surrounding contract, controls, regions and feature timing.

FactorQuestions to ask
Existing cloud and contractsIs the company committed to one cloud? Can spend count against an existing agreement? Is a new vendor approval needed?
Region and data residencyWhere must processing and storage happen? Which regions and endpoint types does each option offer, and at what price?
Identity and networkDo you want cloud IAM roles, private networking and the cloud's own logging?
Feature availabilityAre the features you need (batches, file handling, certain tools, admin and compliance APIs) available on that platform today?
Model availability and lifecycleIs the model you tested offered there? Who sets the retirement dates?
Compliance programmeUnder which agreement (for example a BAA) and which provider's programme is regulated data covered?
Support and operationsWho do you call during an incident, and whose quotas and rate limits apply?

Checked 2026-11-25. Check before relying on it. Feature sets differ by platform. For example, the batch and compliance APIs were not offered on every cloud at the time of writing. Regional endpoints on Bedrock and Google Cloud cost about 10% more than global ones, and US-only inference on the Claude API costs 1.1×. Retirement dates on Anthropic-run platforms come with at least 60 days' notice, while Bedrock and Google-managed Google Cloud set their own. Check the current platform pages before deciding.

Record the choice as a decision record. A filled example:

PartContent
ContextHR assistant for 4,000 staff in three countries. The company is all-in on one cloud and already has a data-processing agreement with it. Staff data must be processed in-region.
DecisionUse Claude through the company's cloud provider, on a regional endpoint in the required geography.
Options rejectedDirect Claude API: needs a new vendor approval (about 10 weeks). Global endpoint: doesn't meet the in-region rule.
Risks acceptedNew features may reach this platform later than the direct API. The regional endpoint costs more. Lifecycle dates are set by the cloud provider and must be tracked separately.
EvidenceFeature checklist confirmed against the platform docs on the decision date; eval run on the platform's own model ID.
Revisit triggerA feature we need is only on another platform; the residency rule changes; or cost goes more than 20% over plan.
Owner / datePlatform architect, 2026-11

A good design keeps this choice reversible: one thin internal client or gateway calls the model, so changing platform is a configuration change plus a re-run of the evals, not a rewrite.

5. Gap 4 — Reliability: plan for slow, limited and down

Model calls are network calls to a shared service. They can be slow, rate-limited or briefly unavailable. Plan for each case.

SituationDesign response
Slow responseSet a timeout per step. Stream long answers so the user sees progress. Show a "still working" state.
Rate limit (HTTP 429)Respect the retry-after header. Retry with exponential backoff and jitter, within a retry budget (a cap on attempts and total time). Queue work that isn't urgent.
Overloaded (529) or server errorRetry within the budget, then fall back.
Persistent failureFallback model (a different tier that already passes the evals), then a human path: "Contact HR", with the question pre-filled.
Bad output (invalid format, failed check)Validate structured output. Retry once with the error message, then send it to a person.
Upstream tool downSay what isn't available instead of answering without the source.

Rate limits are set per organisation and usage tier, and measured as requests and tokens per minute. Plan capacity before launch. Estimate peak requests and tokens, compare them with your limits, and ask for higher limits early if needed. Don't discover them on launch day.

A retry budget matters because blind retries make an outage worse and can multiply cost. "Up to 3 attempts within 20 seconds, then fallback" is a decision. "Retry until it works" is a bug.

6. Gap 5 — Cost: budgets someone owns

Cost per request is small. Cost per month across thousands of users, long prompts and agents that loop is not. Controls:

  • A budget per team, tenant or feature, with alerts at 50%, 80% and 100%, and a named owner who gets them.

  • Hard caps on agents: a maximum number of steps, tool calls and tokens per task.

  • Right-size the model for each step (Module 1). Re-check after evals.

  • Prompt caching for long, repeated prefixes such as policies and instructions. Cache reads cost a fraction of normal input.

  • Batch processing for work that can wait (overnight document summaries), at about half the standard price.

  • Trim context. Retrieve the five best passages, not fifty.

On a multi-tenant SaaS platform I build, each tenant has an AI budget. When a tenant reaches it, AI features degrade politely ("summaries resume on the 1st, or ask your admin"), and other tenants are never affected. One tenant's runaway job can't become everyone's bill.

7. Gap 6 — Observability: see it, trace it, judge it

You can't run what you can't see, and you can't defend what you didn't record. The minimum:

  • A trace ID from request to answer, across retrieval, each model call and each tool call.

  • Metrics: latency (p50 and p95), errors by type, tokens in and out, cost, fallback rate, and the share of requests sent to a person.

  • Quality signals: user feedback, how much reviewers edit outputs, and a sampled eval on live traffic (for example 2% of conversations scored each week against a rubric).

  • Alerts with owners. An alert nobody owns is just noise.

  • Logs follow data rules. Traces often contain the raw prompt. Apply the same redaction, access control and retention to logs as to the data itself (Module 3).

8. Gap 7 — Change: version everything, roll out in stages

Prompts, retrieval settings, tool definitions and the model ID are all part of the system's behaviour. Version them like code, review them like code, and re-run evals when any of them changes (Module 4 covers the lifecycle).

The rollout moves through stages, each with a pass gate:

The kill switch is a feature flag that turns the AI feature off and puts the fallback in its place (the old process, or "contact HR"), in under a minute, without a deployment. One named person (and a deputy) can pull it, the runbook says when, and it is tested before launch.

9. The production readiness review (T4)

One table, one row per gap, with a status, an owner and a due date. Red means it blocks go-live, amber means it is needed before the next stage, green means done with evidence.

Worked case — The HR policy assistant

A company with 4,000 employees in three countries piloted an HR policy assistant with 30 HR staff, and everyone loved it. Now it is meant to go to all employees. On review, the team found:

  • One shared service account that could read the whole HR document store.

  • Manager-only documents (pay bands, restructuring guidance) in the same index as general policy.

  • Policies that differ by country, with nothing in the index saying which country a document applies to.

  • Employee questions that contain health and family details ("my wife is having surgery, can I take leave?").

  • Full prompts written to debug logs, kept for 90 days.

  • No plan for when the model is slow or unavailable.

  • No eval set beyond the HR team's impressions.

Integration context, after the fixes

Readiness review (filled)

GapFindingStatusFixOwnerDue
IdentityShared service account reads everything🔴 RedOn-behalf-of tokens, read-only, 5-minute lifeIAM leadBefore shadow
Data accessManager-only docs in the general index; no country labels🔴 RedAccess and country labels on every document; filter in the query; low-rights test suiteSearch engineerBefore shadow
Data in logsFull prompts with health details kept 90 days🔴 RedRedact before logging; 30-day retention on debug logs; restricted accessPlatform engineerBefore shadow
ReliabilityNo timeout, fallback or human path🔴 Red20-second budget, one fallback model, "contact HR" with the question pre-filledService ownerBefore shadow
Platform choiceUndocumented; pilot used a personal test key🟠 AmberDecision record (above); production credential in the secrets managerPlatform architectBefore shadow
QualityNo eval set🟠 Amber50 real questions per country with expected answers and sources; pass bar 90%HR policy leadCountry 1 set before shadow; each other country before its release
CostNo budget🟠 AmberMonthly budget per country, alerts at 50/80/100%Finance partnerBefore pilot
ObservabilityNo trace IDs🟠 AmberTrace across retrieval and model calls; weekly sampled evalPlatform engineerBefore pilot
ChangeNo kill switch🟠 AmberFlag, tested, with a named owner and deputyService ownerBefore pilot

Decision

No-go for an all-employee launch. Go for the staged path in country 1 once the four red rows are closed. The country 1 eval set is needed for the shadow gate. The kill switch, budget and tracing must be live before any employee sees an answer (the pilot). Each further country needs its own eval set first.

This is a little stricter than the quick model answer in the video, which let the eval set and kill switch follow before the second country. Prefer the stricter version: a kill switch is cheap, and it should exist before real users depend on the feature.

Rollout plan (T5, filled)

StageWhoDurationPass gateKill-switch owner
ShadowRuns on real HR questions; HR staff compare answers privately2 weeks≥ 90% on the country eval; zero permission leaks in the low-rights test suiteService owner
Pilot200 volunteers in country 13 weeksSatisfaction ≥ 4/5; under 10% escalated to HR; no severe incidentService owner
Staged releaseAll of country 14 weeksCost within budget; tickets to HR not rising; weekly sampled eval ≥ 90%Service owner (deputy: HR ops lead)
Wider releaseCountries 2 and 3, one at a timePer countrySame gates on each country's own eval setSame

Trade-offs to weigh

Trade-offLean one way when…Lean the other way when…
Direct API vs cloud providerYou need the newest features first, or have no cloud commitmentContracts, IAM, network and residency are already built around one cloud
Global vs regional endpointNo residency rule applies, and lower cost and higher availability matterLaw, contract or policy requires processing in a region
Shared index with filters vs separate indexesPermissions are fine-grained and change oftenTenants or very sensitive collections must never mix and the evidence must be simple
More retries vs fail fastThe work isn't urgent and the caller can waitA person is waiting, or retries would amplify an outage
Fallback model vs human pathThe fallback model passes the evals for this stepThe step is high-risk, or the fallback hasn't been evaluated
Long shadow period vs fast pilotThe domain is regulated, or errors harm peopleErrors are cheap and visible, and you need evidence quickly

Common mistakes

  • One shared credential to company data. The assistant becomes a way round access control.

  • "The prompt tells it not to" as a permission control.

  • Index permissions that drift from the source system.

  • Logs ignored. Redacted prompts, raw logs.

  • Platform chosen by habit, with no record of region, feature or contract reasons.

  • Retry until it works. No budget, no fallback, no human path.

  • Rate limits found on launch day.

  • No owner for cost alerts.

  • Big-bang launch. No shadow run, no stages, no kill switch, or a kill switch nobody has tested.

  • Evals only from the builders' favourite questions, instead of real questions from every country and user group.

Remember

  • Seven gaps: identity, data access, platform, reliability, cost, observability, change.

  • The model key belongs to the service. Data and tool access carries the user's own rights, short-lived and scoped.

  • Filter in retrieval, before the prompt. Test it with a low-rights user.

  • Record the platform choice: region, contracts, features, lifecycle. Keep it reversible behind one gateway.

  • Timeouts, retry budget, fallback model, human path, in that order.

  • Every budget and every alert has a named owner.

  • Logs are data: same redaction, access and retention rules.

  • Shadow → pilot → staged release, each with a pass gate, and a tested kill switch with a named owner.

Self-check (no answers; talk it through with a peer)

  1. In a system you know, which credential reads company data on the user's behalf? Whose rights does it carry?

  2. If the model were unavailable for an hour tomorrow, what would users see?

  3. Who gets the cost alert, and what are they allowed to do about it?

  4. Who can pull the kill switch, and when did anyone last test it?

Practice questions for this module: mcq/module-02.md.

↑ ↓ सार्नुहोस् · ↵ छान्नुहोस् · esc बन्द