A developer is setting up a build process in AWS CodeBuild that requires a database password and a software license key. The database password must be rotated automatically on a regular schedule, whereas the license key is a static configuration parameter that does not require rotation. The developer wants to retrieve these values securely during the build phase.
Which combination of steps will meet these requirements in the most secure and cost-effective manner? (Select TWO.)
- Store the database password in AWS Secrets Manager and reference it in the env/secrets-manager section of the buildspec file.Cevap
- Store the license key in AWS Systems Manager Parameter Store and reference it in the env/parameter-store section of the buildspec file.Cevap
- CStore the database password in AWS Systems Manager Parameter Store and configure rotation using a custom Amazon EventBridge rule.
- DStore the database password as a plaintext environment variable in the env/variables section of the buildspec file.
- EDefine the database password and license key in the trust policy of the AWS CodeBuild service IAM role.
Cevap
Store the database password in AWS Secrets Manager and reference it in the env/secrets-manager section of the buildspec file, and store the license key in AWS Systems Manager Parameter Store and reference it in the env/parameter-store section of the buildspec file.
Storing the database password in AWS Secrets Manager enables native, automatic rotation of the credential, which can be securely fetched at build time by referencing it in the env/secrets-manager section of the buildspec file. For the static license key, AWS Systems Manager Parameter Store is a cost-effective and secure solution that does not require rotation, and can be retrieved using the env/parameter-store section of the buildspec file.
Adım Adım Çözüm
Anahtar Kavram
AWS CodeBuild environment variable retrieval from Secrets Manager and Systems Manager Parameter Store
Tahmini Süre:50s