An agent uses Amazon Bedrock tools to call an external REST API. Network egress is restricted, but the agent must still securely sign requests. Which AWS-native mechanism is best suited to provide credentials to the tool invocation at runtime?
Answer
Use IAM roles with AWS Signature Version 4 (SigV4) for the API integration and restrict permissions by resource ARN where possible
Explanation
Tool invocations can use IAM roles whose permissions are scoped, enabling SigV4 signing without embedding secrets in prompts. Instance metadata or shared secrets reduce auditability and least-privilege guarantees.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
A model returns different answers for the same input because context retrieval includes nondeterministic results. You must improve reproducibility for audit. Which strategy most directly improves determinism in a RAG pipeline?
View question →
In a cross-account setup where an Amazon Bedrock model is invoked from account A but retrieved documents are stored in account B, which combination of AWS services most directly enables least-privilege access for both retrieval and model invocation?
View question →
A team wants to use Amazon Bedrock Knowledge Bases but must guarantee that responses include only approved citations and comply with a tenant’s policy. Which configuration/control is most aligned with this requirement?
View question →
A customer requires strict data handling for training/evaluation artifacts. You store labeled datasets and evaluation logs in S3. Which design most directly supports data governance and controlled access?
View question →
You are building a retrieval-augmented generation (RAG) system for compliance. A tenant-specific policy requires that the model never sees documents outside a tenant boundary, even if retrieval accidentally fetches them. Which control approach is most appropriate at the foundational AWS AI practitioner level?
View question →
A security reviewer claims that “because the response is generated, the system is not actually using the retrieved documents.” What is the strongest rebuttal based on how RAG works in AWS AI systems?
View question →