3 of the 3 questions we have for this objective, shown with the answer and the reasoning.
Design security and responsible AI controls
Marlow Engineering is deploying an internal AI agent that reads and updates each employee's own Jira issues and Salesforce opportunities. Employees sign in through the company's identity provider. Security requires that the agent acts only with the permissions of the employee it is helping, that each employee consents before the agent first accesses their data, and that no long-lived third-party tokens appear in agent code or configuration.
Which design should the solutions architect recommend?
- AUse an Amazon Cognito identity pool to exchange each employee's sign-in token for temporary AWS credentials and pass those credentials to Jira and Salesforce.Identity pools issue AWS credentials only. They cannot produce OAuth tokens for third-party services.
- BCreate one Jira API token and one Salesforce integration user with broad access, store both in AWS Secrets Manager with automatic rotation, and have the agent filter results to the signed-in employee's records.A shared integration identity acts with more access than any single employee and records no per-user consent; filtering in agent code is not least privilege.
- CUse Amazon Bedrock AgentCore Identity with an inbound JWT authorizer for the corporate IdP and OAuth 2.0 authorization code (user-delegated) credential providers for Jira and Salesforce.The authorization code flow asks each user for consent and returns tokens scoped to that user, the token vault stores them encrypted outside agent code, and inbound JWT authorization ties each request to the signed-in employee.
- DCreate an IAM role for each employee and have the agent assume the employee's role before calling Jira and Salesforce.IAM roles control access to AWS resources; Jira and Salesforce do not accept IAM credentials, so this does not authorize the third-party calls.
Why: Agentic applications add a new identity problem: an agent acting on behalf of a person. AgentCore Identity handles both directions. Inbound, it validates the caller's token from the corporate identity provider. Outbound, its credential providers run OAuth 2.0 flows; the client credentials grant suits machine-to-machine access, while the authorization code grant gives user-delegated, consented access to that user's data. Tokens live in an encrypted token vault and are released only to the verified agent identity, so no secrets sit in code.
Design security and responsible AI controls
Tamsin Outdoor uses an AI agent that reviews customer complaints and proposes refunds. Refunds of $500 or less can be issued automatically, but larger refunds must be approved by a supervisor before the payment API is called. Every decision must be auditable, and a request that nobody approves within 48 hours must be rejected automatically.
Which design should the solutions architect use?
- AHave the agent write large refunds to an Amazon SQS queue with a 48-hour message retention period that supervisors read in a web console, and have the console call the payment API directly after approval.Expired messages are silently deleted rather than rejected and recorded, so timeouts, state and the audit trail are left to custom code, and the payment call is no longer controlled by the workflow.
- BHave the agent's AWS Lambda action group sleep in a loop, checking an Amazon DynamoDB item until a supervisor sets it to approved.Lambda functions run for at most 15 minutes, so they cannot wait 48 hours, and polling wastes compute.
- CAn AWS Step Functions Express workflow that calls the agent, then uses a Wait state of 48 hours before calling the payment API.Express workflows run for at most five minutes and do not support the callback pattern, and a Wait state cannot capture a supervisor's decision.
- DAn AWS Step Functions Standard workflow with a Choice state on the amount and, for large refunds, a .waitForTaskToken task to the supervisor app with a 48-hour timeout that routes to rejection.Standard workflows can pause for days on a task token until the supervisor app calls SendTaskSuccess or SendTaskFailure, the timeout handles the 48-hour rule, and the execution history records every step.
Why: Human oversight of AI actions is a workflow problem: the agent proposes, a person decides, and only then does the system act. Step Functions Standard workflows implement this with the callback (.waitForTaskToken) pattern, which pauses an execution until an external system returns the token, with timeouts and heartbeats for unanswered requests. Express workflows are short-lived and do not support callbacks, and Lambda cannot wait for days. The execution history gives auditors the full sequence of each decision.
Design security and responsible AI controls
Pinecrest Credit Union runs a member-support chatbot. Most conversations go to a model on Amazon Bedrock, but one flow uses a model the credit union hosts on an Amazon SageMaker AI endpoint. Compliance requires that both paths refuse to give investment advice and mask account numbers in prompts and responses, with one policy that is managed in one place.
How should the solutions architect meet these requirements with the least operational effort?
- AAdd instructions to each model's system prompt that forbid investment advice and tell the model to mask account numbers, and keep the prompt text in AWS Systems Manager Parameter Store.System prompts influence behavior but do not enforce it; users can work around them, and nothing inspects or masks the model output.
- BCreate one Amazon Bedrock guardrail with a denied topic for investment advice and a filter that masks account numbers, attach it to the Bedrock calls, and use ApplyGuardrail on the SageMaker flow.A guardrail enforces denied topics and masks sensitive data, and the ApplyGuardrail API lets the same guardrail evaluate text for models outside Bedrock, so one policy covers both paths.
- CPut AWS WAF in front of the chatbot API with a regex pattern set for account numbers and a rule that blocks requests containing "invest", and manage the web ACL with AWS Firewall Manager.WAF inspects HTTP requests, not model responses, it cannot mask values, and keyword blocking cannot recognize a topic such as investment advice.
- DStore all conversations in Amazon S3 and use Amazon Macie to find account numbers, then alert the compliance team.Macie finds sensitive data after it has been stored. It does not stop advice or mask numbers before a member sees them.
Why: Amazon Bedrock Guardrails is the control for content filtering on generative AI. It supports denied topics, content filters, word filters, sensitive information filters that block or mask PII and custom patterns, and grounding checks. Guardrails can be attached to Bedrock inference calls and can also be applied to any text through the ApplyGuardrail API, which is how one policy can govern a model hosted elsewhere. Prompt instructions and network filters are not enforcement of AI output.