A company has a global logistics application deployed on Amazon Elastic Kubernetes Service (EKS) across two AWS regions: us-east-1 and eu-west-1. The application requires access to a proprietary third-party API key to query shipping rates. The API key must be encrypted at rest using a customer managed key (CMK) and must be rotated automatically every 90 days. The application in both regions must retrieve the key with minimal latency. Which combination of actions should a solutions architect recommend to meet these requirements with the least operational overhead? (Select TWO.)
- Store the API key as a secret in AWS Secrets Manager in us-east-1, and configure replication of the secret to eu-west-1.Answer
- Create an AWS Lambda function that performs the API key rotation, and configure AWS Secrets Manager to trigger the function every 90 days.Answer
- CStore the API key as a plaintext String parameter in AWS Systems Manager Parameter Store to allow direct access from both regions without decryption overhead.
- DEnable automatic key rotation on the KMS customer managed key (CMK) that encrypts the API key secret to automatically rotate the API key value every 90 days.
- EStore the API key as a SecureString parameter in AWS Systems Manager Parameter Store, and configure KMS key rotation to automatically update the API key value every 90 days.
Answer
Store the API key as a secret in AWS Secrets Manager in us-east-1 with replication to eu-west-1, and create an AWS Lambda function triggered by Secrets Manager to rotate the secret every 90 days.
Storing the API key in AWS Secrets Manager with native replication to another region ensures local low-latency access in both regions. Creating a custom Lambda function to rotate the secret and scheduling it via Secrets Manager satisfies the 90-day automatic rotation requirement.
Step-by-Step Solution
Key Concept
AWS Secrets Manager supports native cross-region replication and automated custom secret rotation via AWS Lambda functions, whereas KMS key rotation only rotates the cryptographic keys and not the secrets themselves.
Estimated Time:2m 0s