A company is modernizing a legacy laboratory data integration system by migrating it to a serverless architecture on AWS. The system must ingest high-volume, bursty clinical test reports at a peak rate of from partner clinics located in external AWS accounts. The API must validate custom JWT tokens against an identity database before forwarding payloads. The payloads must then be written to an Amazon Aurora PostgreSQL database in the company's private VPC. The database cluster has a maximum capacity of concurrent connections. The company's AWS account has a default regional Lambda concurrency limit of executions. The solutions architect must design a highly available, secure, and reliable architecture that prevents database connection exhaustion and avoids exhausting the regional Lambda concurrency pool. Which combination of steps should the solutions architect take to meet these requirements?
- ACreate a Regional Amazon API Gateway with a custom Lambda authorizer. Deploy the ingestion Lambda function in a single private subnet, routing all outbound internet and database traffic through a single NAT Gateway in a single public subnet. Set a reserved concurrency limit of on the ingestion Lambda function, and configure it to connect to the database through an Amazon RDS Proxy endpoint.
- Create a Regional Amazon API Gateway with an API Gateway resource policy restricting access to the partner accounts' source VPC endpoints. Configure a Lambda authorizer with caching enabled to validate JWT tokens. Deploy the ingestion Lambda function in private VPC subnets across three Availability Zones. Set a reserved concurrency limit of on the ingestion Lambda function, and configure it to connect to the database through an Amazon RDS Proxy endpoint.Answer
- CCreate a Regional Amazon API Gateway with a custom Lambda authorizer. Deploy the ingestion Lambda function in private VPC subnets across three Availability Zones. Configure provisioned concurrency on the ingestion Lambda function to pre-warm instances to handle the traffic spikes. Point the Lambda function to an Amazon RDS Proxy endpoint, and rely on the RDS Proxy to queue connection requests during peak bursts.
- DCreate a Regional Amazon API Gateway with a custom Lambda authorizer. Deploy the ingestion Lambda function in private VPC subnets across three Availability Zones with a reserved concurrency limit of . Configure the Lambda authorizer to decrypt credentials passed by the partner accounts using the default AWS-managed KMS key for API Gateway (`aws/apigateway`) shared with the partner accounts. Configure the Lambda function to connect to the database through an Amazon RDS Proxy endpoint.