An enterprise is deploying a high-volume payment processing application on Amazon ECS using the AWS Fargate launch type. The application requires access to a sensitive API key for a third-party payment gateway. The API key must be encrypted at rest using a customer managed key (CMK) in AWS Key Management Service (AWS KMS) and must be rotated every 90 days. The application tasks scale dynamically, launching and terminating thousands of containers daily, and the application queries the third-party gateway frequently, which requires reading the API key multiple times per minute. The solutions architect must design a secure, cost-effective secrets management solution that automates key rotation with zero downtime. Which combination of actions should the solutions architect recommend to meet these requirements? (Select TWO.)
- Store the API key as a secret in AWS Secrets Manager, and configure a custom AWS Lambda function to rotate the API key every 90 days.Answer
- Use the AWS Secrets Manager client-side caching library in the ECS application containers to retrieve and cache the API key.Answer
- CStore the API key as a plaintext String parameter in AWS Systems Manager Parameter Store to avoid Secrets Manager storage costs, and enable automatic key rotation on the AWS KMS customer managed key.
- DEnable automatic rotation on the AWS KMS customer managed key to automatically update the API key value and re-encrypt the secret in Secrets Manager every 90 days.
- EStore the API key as a SecureString parameter in AWS Systems Manager Parameter Store, and configure the AWS KMS customer managed key to automatically trigger a Lambda function to rotate the parameter when the key is rotated.