A retail enterprise is modernizing its legacy on-premises inventory replenishment system by moving to a serverless architecture on AWS. The system must expose a private REST API via Amazon API Gateway to multiple partner AWS accounts over an AWS Transit Gateway. The API invokes AWS Lambda functions deployed inside private subnets of a shared services VPC. These Lambda functions must perform high-frequency read and write operations against a centralized Amazon Aurora PostgreSQL database situated in a dedicated database VPC. The database credentials are stored in AWS Secrets Manager within the database VPC account. The Lambda functions in the shared services account must retrieve and decrypt these credentials. The design must prevent database connection exhaustion, support cross-account access to the credentials, and ensure that bursts in replenishment traffic do not exhaust the regional concurrency limits, which would throttle other critical customer-facing Lambda functions in the shared services account. Which TWO options should a solutions architect implement to meet these requirements? (Select TWO.)
- Provision an Amazon RDS Proxy endpoint in the shared services VPC to pool database connections to the Aurora PostgreSQL database, and configure reserved concurrency on the inventory replenishment Lambda function.Answer
- Create a Customer Managed Key (CMK) in AWS KMS within the database account, configure its key policy to grant the Lambda execution role in the shared services account permission to decrypt, and use this key to encrypt the secret in AWS Secrets Manager.Answer
- CCreate the database credentials secret in AWS Secrets Manager using the default AWS-managed KMS key in the database account, and attach an IAM policy to the Lambda execution role in the shared services account that allows cross-account decryption of that key.
- DDeploy a single NAT Gateway in one Availability Zone of the shared services VPC to route outgoing traffic from the private subnets to the Aurora PostgreSQL database and the Secrets Manager endpoints.
- EConfigure provisioned concurrency on the inventory replenishment Lambda function to pre-warm execution environments, and rely on the default regional unreserved concurrency pool to automatically scale the replenishment workload during traffic spikes.