Choose the model path and the tool boundary
Separate interactive and batch inference, ground answers in authorized material and control tool execution across accounts.
Task 1.2 · Choose the model path and the tool boundary
A manual, a model and a service ticket
An assistant answers warranty questions over customer-private manuals and can open a service ticket. The same platform scores 600,000 completed tickets every weekend. Which components need independent serving and authorization decisions?
Compare your design with the worked answer
Use a latency-tested interactive path. Filter evidence by caller entitlement and current manual version before generation. Expose ticket creation as a narrow authorized tool with validated parameters and a stable operation key. Run weekend scoring on an eligible batch path, and preserve requester, model/version and input provenance for evaluation.
A generated answer can be correct even when its ticket action is unauthorized. Test an entitled reader who lacks permission to open tickets and verify the application denies the write.
1.2.1 · Give model invocation an account boundary
Decide which account owns model access, inference quotas, permitted Regions and usage attribution. A shared broker may enforce approved models and record consuming account and tenant. Separate its callers' grants from its own service role. Model availability, latency, privacy and quota ownership may justify account-local invocation instead.
1.2.2 · Give an agent a narrow tool contract
Separate the model’s proposed action from an executable tool invocation. In an AgentCore design, scope each tool identity to a resource and operation. Validate parameters outside the model, set time and cost bounds, preserve a stable operation ID and record the result. Retrieved text cannot grant new permissions.
1.2.3 · Choose an inference serving mode
A synchronous, latency-sensitive request needs an endpoint sized for concurrency and tail latency. Asynchronous inference fits larger, longer requests with later results. Batch transform handles offline datasets without keeping a persistent real-time endpoint. Benchmark model load, instance memory, queue time and supported payload limits with representative inputs.
1.2.4 · Retrieve evidence with document permissions
Version the source, chunk it around coherent passages, index embeddings with tenant/access metadata, then filter retrieval before text enters the model context. Update or remove stale chunks when the source changes. Test answer grounding, missed retrievals and authorization separately using questions with known sources.
Apply the video example
The managed-ML chapter contrasts endpoint and batch analysis. Use that distinction to split the live and weekend workloads first. The current guide then adds the Bedrock account boundary, RAG retrieval and AgentCore tool decisions.
freeCodeCamp · 44:21:00 in AWS ML Managed Services
Official SAP-C03 task 1.2 · AgentCore Identity · Bedrock evaluations
Choose the model path and the tool boundary quiz
Answer 5 questions. Check each answer for an explanation.