A solutions architect is designing a secure credential storage solution for a legacy application hosted on Amazon EC2 instances. The application requires access to database credentials for an Amazon RDS for PostgreSQL database, which must be rotated automatically every 30 days. Additionally, the application requires access to a static third-party API token that must be encrypted at rest but does not require automatic rotation. The solution must minimize monthly operational costs and configuration complexity. Which combination of actions should the solutions architect take to meet these requirements? (Choose two.)
- Store the database credentials in AWS Secrets Manager and configure automatic rotation using the built-in RDS rotation template.Answer
- Store the external API token as a SecureString parameter in AWS Systems Manager Parameter Store.Answer
- CStore the database credentials as a String parameter in AWS Systems Manager Parameter Store to minimize storage and retrieval costs.
- DStore the database credentials as a SecureString parameter in AWS Systems Manager Parameter Store and enable AWS Key Management Service (AWS KMS) automatic key rotation to rotate the database credentials every 30 days.
- EStore the external API token in an Amazon S3 bucket as a plaintext text file and enable S3 versioning to manage rotation.
Answer
Store the database credentials in AWS Secrets Manager with built-in RDS rotation, and store the external API token as a SecureString parameter in AWS Systems Manager Parameter Store.
Storing database credentials in AWS Secrets Manager is the best approach because it natively supports automatic rotation for RDS databases. Storing the static API token as a SecureString parameter in AWS Systems Manager Parameter Store provides encryption-at-rest at lower operational cost and complexity since the token does not require automatic rotation.
Step-by-Step Solution
Key Concept
Selecting the appropriate secrets management service based on rotation capabilities, encryption needs, and cost profiles.