An enterprise application running on Amazon Elastic Kubernetes Service (EKS) requires access to two configuration settings: a database connection port () and a highly sensitive database password. The database password must be automatically rotated every days. The solutions architect must design a secure and cost-optimized solution that stores these parameters and supports the rotation requirement.
Which configuration management strategy should the solutions architect recommend?
- AStore both the database port and the database password as String parameters in AWS Systems Manager Parameter Store, and restrict access using IAM policies to ensure security while minimizing cost.
- BStore the database port as a String parameter in AWS Systems Manager Parameter Store. Store the database password as a SecureString parameter in Parameter Store, and enable automatic key rotation on the associated AWS KMS customer managed key to rotate the password value every days.
- Store the database port as a String parameter in AWS Systems Manager Parameter Store. Store the database password in AWS Secrets Manager and configure automatic rotation for the secret.Answer
- DStore the database port in AWS Secrets Manager. Store the database password as a String parameter in AWS Systems Manager Parameter Store, and configure a custom AWS Lambda function to handle parameter rotation.
Answer
Store the database port as a String parameter in AWS Systems Manager Parameter Store, and store the database password in AWS Secrets Manager with automatic rotation configured.
Storing the non-sensitive database port as a String parameter in AWS Systems Manager Parameter Store is cost-effective because Standard parameters are free. AWS Secrets Manager is designed to secure sensitive credentials like database passwords and natively supports automatic credential rotation. This combination provides a secure and cost-optimized architecture that meets the rotation requirement.
Step-by-Step Solution
Key Concept
Selecting and configuring secure storage and automatic rotation mechanisms for sensitive and non-sensitive configurations using Parameter Store and Secrets Manager.
Estimated Time:1m 30s