A gaming company is modernizing its multiplayer matchmaking lobby backend by migrating to a serverless architecture on AWS. The design features a public Amazon API Gateway HTTP API that routes incoming requests to an AWS Lambda function. The Lambda function must perform low-latency read and write operations against an Amazon ElastiCache for Redis cluster deployed in private subnets across Availability Zones (). The Lambda function also requires outbound internet connectivity to communicate with external gaming partner APIs. Additionally, the Lambda function must retrieve and decrypt game configuration settings stored in a centralized security account, which are encrypted using an AWS KMS key. The architecture must protect other administrative Lambda functions in the same account from concurrency exhaustion during high-traffic peaks, avoid single points of network failure, and ensure that updates to the Lambda function can be rolled back automatically if error rates increase.
Which of the following configurations meets these requirements?
- Configure the Lambda function inside the VPC's private subnets across multiple Availability Zones, routing outbound internet traffic through redundant NAT Gateways (one per Availability Zone). Set reserved concurrency on the matchmaking Lambda function. Encrypt game configurations using a Customer Managed Key (CMK) in the central account and update its key policy to allow cross-account access. Deploy the Lambda function using AWS CodeDeploy with a canary deployment configuration and CloudWatch alarm-based rollbacks.Answer
- BConfigure the Lambda function inside the VPC's private subnets across multiple Availability Zones, routing outbound internet traffic through redundant NAT Gateways (one per Availability Zone). Rely on the default regional unreserved concurrency pool to allow the function to scale dynamically to meet spikes. Encrypt game configurations using a Customer Managed Key (CMK) in the central account and update its key policy to allow cross-account access. Deploy the Lambda function using AWS CodeDeploy with a canary deployment configuration and CloudWatch alarm-based rollbacks.
- CConfigure the Lambda function inside the VPC's private subnets across multiple Availability Zones, routing all outbound internet traffic through a single NAT Gateway deployed in one public subnet to reduce operating costs. Set reserved concurrency on the matchmaking Lambda function. Encrypt game configurations using a Customer Managed Key (CMK) in the central account and update its key policy to allow cross-account access. Deploy the Lambda function using AWS CodeDeploy with a canary deployment configuration and CloudWatch alarm-based rollbacks.
- DConfigure the Lambda function inside the VPC's private subnets across multiple Availability Zones, routing outbound internet traffic through redundant NAT Gateways (one per Availability Zone). Set reserved concurrency on the matchmaking Lambda function. Encrypt game configurations using the AWS-managed KMS key for Systems Manager (aws/ssm) in the central account and modify its key policy to grant cross-account decryption access. Deploy the Lambda function using AWS CodeDeploy with a canary deployment configuration and CloudWatch alarm-based rollbacks.