Three request shapes. InvokeModel takes the provider’s own body; for Claude that means anthropic_version: "bedrock-2023-05-31" and Anthropic’s Messages fields. Converse takes one shape for every model. The Messages API, on bedrock-runtime under /anthropic and on bedrock-mantle, takes Anthropic’s shape directly. ConverseStream and InvokeModelWithResponseStream need the separate permission bedrock:InvokeModelWithResponseStream. Bedrock caps one request at 20 MB.
API keys. Since 2025-07-08 Bedrock also accepts bearer tokens. Short-term keys last up to 12 hours and work only in the Region that issued them. Long-term keys create an IAM user, and AWS recommends them only for exploration. Policies can deny them with bedrock:CallWithBearerToken and the condition key bedrock:bearerTokenType.
Model access, 2025 onward. Since 2025-10-15 every serverless model is enabled by default in commercial Regions, and the Model access page survives only in GovCloud. Anthropic’s first-time use form is no longer needed from Claude Opus 4.7 on. Older models, including the Claude Haiku 4.5 of chapter 05, still need it once per account or once at the organization’s management account. The first call to a Marketplace-listed model subscribes the account automatically, which can take 15 minutes; denying aws-marketplace:Subscribe does not block that call, and denying bedrock:InvokeModel does.
Errors worth recognising. ThrottlingException 429, ModelNotReadyException 429, ModelTimeoutException 408, ModelErrorException 424, ValidationException 400 (including the bare-model-ID error in chapter 01) and AccessDeniedException 403. Stop reasons: end_turn, tool_use, max_tokens, stop_sequence, guardrail_intervened, content_filtered and model_context_window_exceeded.
What the monthly bill leaves out. Data transfer between Availability Zones, CloudTrail’s default trail (free for the first copy of management events), the orders database, the chat server itself, and S3 storage for the model and batch files, which is under $1. Cache writes are left out too: with a one-hour cache and traffic that rarely pauses for an hour, the start is written about once a day, $0.53 a month.
On the exam
- “several teams need the same model through one API, with per-team cost reports” (SAP 1.2.1, 3.3.4)→Converse plus application inference profiles with cost allocation tags (chapter 01)
- “cut the cost of a chatbot that resends a long system prompt on every turn” (SAP 3.1.4)→prompt caching, with a cache point after the system prompt
- “requests fail with HTTP 429 at peak”→check the tokens-per-minute quota and maxTokens, use a cross-Region profile for its higher quota, retry with backoff
- “stop developers using long-lived Bedrock API keys”→deny bedrock:CallWithBearerToken unless bedrock:bearerTokenType is SHORT_TERM