4 of the 4 questions we have for this objective, shown with the answer and the reasoning.
Integrate AI and ML services into architectures
Brightwater Title trained a document-classification model and hosts it on Amazon SageMaker AI. Scanned deed packages of up to 500 MB arrive in bursts during business hours, and each takes 8 to 12 minutes to classify on a GPU instance. No requests arrive at night or at weekends. The downstream system can accept results asynchronously as long as it is notified when each one is ready, and the company wants to minimize cost.
Which inference option should the solutions architect choose?
- AA nightly SageMaker AI batch transform job over all packages received that day.Batch transform is cheap for offline datasets, but results would arrive the next day instead of soon after each package arrives.
- BA SageMaker AI real-time endpoint on a GPU instance with target tracking auto scaling on invocations per instance and a minimum of one instance.Real-time endpoints are built for low-latency interactive requests with small payloads and short processing times, and they keep at least one instance running all night.
- CA SageMaker AI asynchronous inference endpoint that reads input from Amazon S3, scales to zero instances when idle, and sends Amazon SNS notifications.Asynchronous inference queues requests, accepts large payloads (up to 1 GB) and long processing (up to one hour), can scale the instance count to zero when the queue is empty, and sends SNS success and error notifications when a result is written to S3.
- DA SageMaker AI serverless inference endpoint with provisioned concurrency during business hours and the maximum memory size, so that capacity drops to zero at night and on weekends.Serverless inference suits small, short requests: its payload limit is far below 500 MB, processing is limited to 60 seconds, and it offers no GPUs, so these packages do not fit even at the maximum memory size.
Why: Choosing an inference option starts with payload size, processing time, latency tolerance and traffic shape. Large inputs, long processing, acceptable asynchronous delivery and idle periods all point to asynchronous inference: it puts requests in an internal queue, writes results to S3, sends SNS notifications and can scale to zero so nights and weekends cost nothing for compute. Real-time and serverless endpoints target short interactive calls, and batch transform targets scheduled offline jobs.
Integrate AI and ML services into architectures
Calloway & Reyes, a law firm, built a contract assistant with Amazon Bedrock Knowledge Bases over 60,000 contracts in Amazon S3, using fixed-size chunks of 300 tokens. Lawyers report that answers quote a clause without the definitions and surrounding section that give it meaning. The firm also requires that a lawyer working on one client matter never receives passages from another client's contracts. Each contract's client matter ID is known when the file is uploaded.
Which two changes should the solutions architect make? Each correct answer presents part of the solution.
- AIncrease the model's maximum output tokens so that it can write longer answers with more context.Longer output does not change what was retrieved. The model still receives the same short, context-free chunks.
- BFine-tune the foundation model on the full contract set with Amazon Bedrock model customization so that it already knows every definition.Fine-tuning is costly and still gives no per-matter isolation; it may even blend clients' text into the model.
- CCreate an Amazon Bedrock guardrail with a denied topic for each client matter and a contextual grounding check, and attach it to the assistant for every request.Guardrails filter content by topic, category or grounding; they cannot reliably tell which client a passage came from, so they are no substitute for filtering retrieval, and they do not restore the missing context.
- DRe-create the data source with hierarchical chunking so that child chunks are matched during search and their parent chunks are returned.Hierarchical chunking searches on precise child chunks but returns the parent chunk, so the model sees the clause together with its surrounding section.
- EAttach a metadata file with a matterId attribute to each contract and pass a metadata filter on matterId in every Retrieve or RetrieveAndGenerate call.With a metadata file next to each contract and a data source sync, metadata filtering restricts retrieval to chunks whose matterId matches, so a query for one matter cannot return another client's passages.
Why: RAG quality is decided mostly at ingestion and retrieval. Chunking strategy controls how much context reaches the model: fixed small chunks lose surrounding meaning, while hierarchical chunking keeps precise matching and returns richer parent text. Access boundaries belong in retrieval as well: tag each document with metadata and filter on it at query time so that unauthorized chunks are never retrieved. Bigger outputs, fine-tuning or content filters do not fix either problem.
Integrate AI and ML services into architectures
Harrowgate Insurance runs a claims-summary feature in 14 workload accounts in eu-west-1, and each account calls an Amazon Bedrock foundation model with InvokeModel. During month-end peaks the calls are throttled because the on-demand quota in one Region is not enough. Regulators require that claim text is processed only inside the EU. An SCP attached to the Workloads OU denies every action outside eu-west-1.
Which change should the solutions architect make to absorb the peaks while keeping processing inside the EU?
- AUse the model's EU geographic cross-Region inference profile, and allow the profile's other EU destination Regions in the SCP.A geographic profile routes each request to a Region inside the EU boundary, which adds capacity without leaving the EU. Because requests can land in any destination Region of the profile, the SCP must allow those Regions or the calls are denied.
- BUse the model's global cross-Region inference profile for the extra capacity, and add aws:RequestedRegion "unspecified" to the SCP's allowed values so that routed calls are not denied.A global profile can route to any supported commercial Region worldwide. The SCP change would let the calls through, but processing outside the EU breaks the regulatory requirement.
- CPurchase Provisioned Throughput for the model in eu-west-1 and reference it through the EU inference profile.Provisioned Throughput can add capacity in one Region, but inference profiles do not support Provisioned Throughput, so the two cannot be combined this way.
- DDeploy a copy of the feature in every EU Region and have each client pick a Region at random for every call.This also stays in the EU, but it multiplies deployments and pushes routing and retry logic into every client, which cross-Region inference does for you.
Why: Cross-Region inference spreads on-demand traffic over several Regions through an inference profile. The deciding constraint is data residency: geographic profiles (US, EU, APAC) keep processing inside that geography, while global profiles trade residency for about 10 percent lower cost. In a multi-account estate the SCP is the usual trap: it must allow every destination Region in the profile, because the Region that processes a request is chosen by Bedrock, not by the caller. CloudTrail in the source Region records the processing Region in additionalEventData.inferenceRegion, which helps prove residency to auditors.
Integrate AI and ML services into architectures
Fenwick Logistics is building an AI agent that answers dispatcher questions and takes actions such as rebooking a shipment. The actions already exist as an internal REST API described by an OpenAPI specification and as three AWS Lambda functions. The platform team wants the agent framework to discover these actions as Model Context Protocol (MCP) tools, wants each user session isolated from others, and wants to write as little integration code as possible.
Which design meets these requirements?
- ARun the agent on Amazon EC2 behind an Application Load Balancer, and write and operate a custom MCP server that proxies each REST operation and each Lambda function as a tool.A hand-built MCP server can work, but it is the most code to write and run, and session isolation becomes the team's problem.
- BHost the agent on Amazon Bedrock AgentCore Runtime and add an AgentCore Gateway with the OpenAPI specification and the Lambda functions as targets.AgentCore Gateway turns OpenAPI-described APIs and Lambda functions into MCP-compatible tools without custom wrappers, so the agent calls them as MCP tools, and AgentCore Runtime hosts the agent with isolated sessions.
- CLoad the OpenAPI specification and the Lambda source code into an Amazon Bedrock knowledge base so that the model can retrieve how to call each action.A knowledge base retrieves text to ground answers. It does not execute actions, so the agent would still need its own code to call the API.
- DExpose each action as an AWS Step Functions Express workflow and have the agent call StartSyncExecution with credentials stored in environment variables.This works only with custom glue code for every action, the actions are not MCP tools, and credentials in environment variables are a poor practice.
Why: SAP-C03 asks architects to design agent architectures that integrate with tools. The managed pattern on AWS separates where the agent runs (AgentCore Runtime, with per-session isolation) from how it reaches tools (AgentCore Gateway, which converts APIs and Lambda functions into MCP tools and handles authentication to them). Knowledge bases answer questions from documents; they are not a way to perform actions. The phrase "as little integration code as possible" rules out hand-built proxies.