A healthcare provider is modernizing a legacy patient portal on-premises application by migrating it to a serverless architecture on AWS. The application uses Amazon API Gateway integrated with an AWS Lambda function, which queries an Amazon Aurora PostgreSQL database. The application must connect to the database via Amazon RDS Proxy to prevent connection exhaustion. The database is encrypted at rest using an AWS KMS Customer Managed Key (CMK) to allow cross-account audit access. The Lambda function requires outbound internet access to fetch external insurance verification data, and must be protected from high-traffic spikes that could exhaust the regional Lambda concurrency limit. The architecture must remain highly available across multiple Availability Zones (AZs) without single points of failure. Which architectural configuration meets these requirements?
- Configure the Lambda function to run in private subnets across multiple Availability Zones (AZs). Route outbound internet traffic from these subnets through a NAT Gateway deployed in each AZ. Configure reserved concurrency on the Lambda function to protect the regional concurrency pool. Configure Amazon RDS Proxy to connect to the Aurora PostgreSQL database, and encrypt the database at rest using a Customer Managed Key (CMK).Answer
- BConfigure the Lambda function to run in private subnets across multiple Availability Zones (AZs). Route outbound internet traffic from these subnets through a single NAT Gateway deployed in a single AZ to minimize costs. Configure reserved concurrency on the Lambda function. Configure Amazon RDS Proxy to connect to the Aurora PostgreSQL database, and encrypt the database at rest using a Customer Managed Key (CMK).
- CConfigure the Lambda function to run in private subnets across multiple Availability Zones (AZs). Route outbound internet traffic from these subnets through a NAT Gateway deployed in each AZ. Do not configure reserved concurrency on the Lambda function, allowing it to scale dynamically using the default regional account concurrency pool. Configure Amazon RDS Proxy to connect to the Aurora PostgreSQL database, and encrypt the database at rest using a Customer Managed Key (CMK).
- DConfigure the Lambda function to run in private subnets across multiple Availability Zones (AZs). Route outbound internet traffic from these subnets through a NAT Gateway deployed in each AZ. Configure reserved concurrency on the Lambda function. Configure Amazon RDS Proxy to connect to the Aurora PostgreSQL database, and encrypt the database at rest using the AWS-managed key (aws/rds).