A maritime shipping coordinator is modernizing its vessel container tracking and dispatch service by refactoring a legacy monolithic system into a microservices-based serverless architecture. The database has been migrated to an Amazon RDS for PostgreSQL DB instance in a private subnet. The serverless backend consists of AWS Lambda functions running in the same VPC to access the database, fronted by an Amazon API Gateway HTTP API. The system must scale up to handle sudden peaks of concurrent requests during port unloading operations, without exhausting database connections or affecting other services in the same AWS account. Security requirements dictate that all database credentials must be rotated automatically every days and encrypted using a Customer Managed Key (CMK) in AWS KMS.
Which TWO configurations should the solutions architect implement to meet these requirements?
- Deploy an Amazon RDS Proxy in the VPC to manage database connection pooling, and configure the Lambda functions with a defined reserved concurrency limit.Cevap
- Configure AWS Secrets Manager to store database credentials using a Customer Managed Key (CMK) in AWS KMS, and configure a custom rotation Lambda function to rotate the secret every days.Cevap
- CConfigure the Lambda functions with Provisioned Concurrency set to , and leave the reserved concurrency unconfigured to allow the functions to burst freely.
- DEncrypt the database credentials in AWS Secrets Manager using the default AWS-managed KMS key (aws/secretsmanager), and associate a key policy to allow cross-account access for database rotation.
- EConfigure the Lambda functions to run in a single private subnet and route all outbound database traffic through a single NAT Gateway to reduce NAT gateway hourly charges.