A developer is configuring a containerized application running in AWS Batch. The application requires access to two sensitive values: a database password for an Amazon Aurora PostgreSQL database that must be rotated every 30 days, and an API key for a partner service that is static and does not require rotation. The developer wants to minimize costs while maintaining high security.
Which actions should the developer take to configure the storage for these secrets? (Select TWO.)
- Store the database password in AWS Secrets Manager and enable automatic rotation using the built-in AWS Lambda rotation template for Amazon Aurora.Cevap
- Store the partner API key in AWS Systems Manager Parameter Store as a SecureString parameter.Cevap
- CStore the database password in AWS Systems Manager Parameter Store as a SecureString parameter and enable native automatic rotation.
- DStore the partner API key in AWS Secrets Manager and configure a scheduled AWS Lambda function to rotate it every 30 days.
- EHardcode the database password and the partner API key directly inside the environment variables of the AWS Batch job definition.
Cevap
Store the database password in AWS Secrets Manager with automatic rotation enabled, and store the partner API key in AWS Systems Manager Parameter Store as a SecureString parameter.
The database password requires automatic rotation, which is a native feature of AWS Secrets Manager. The partner API key is static and does not require rotation, making Systems Manager Parameter Store (SecureString) the most cost-effective and secure choice.
Adım Adım Çözüm
Anahtar Kavram
Selecting between AWS Secrets Manager and Systems Manager Parameter Store based on automatic rotation needs and cost efficiency.
Tahmini Süre:1m 0s