Soru

Zorluk: KolayAWS CloudFormation

A developer is managing a web application infrastructure using AWS CloudFormation. The developer needs to configure the stack to retrieve a database password securely and ensure that the deployed infrastructure remains consistent with the template definition. Which two actions should the developer take to meet these requirements?

  1. Store the database password in AWS Secrets Manager and reference it in the CloudFormation template using a dynamic reference.Cevap
  2. Use CloudFormation stack updates to perform all infrastructure modifications, avoiding direct manual updates to the resources.Cevap
  3. C
    Store the database password in a plaintext parameters block within the CloudFormation template to avoid external service calls.
  4. D
    Perform manual adjustments directly on resources via the AWS CLI to test changes, assuming CloudFormation drift detection will automatically sync those changes to the template.
  5. E
    Initiate a stack update while the stack is currently in the ROLLBACK_IN_PROGRESS state to apply fixes immediately.

Cevap

Storing the database password in AWS Secrets Manager and referencing it dynamically, and using CloudFormation stack updates to perform all infrastructure modifications.
The correct actions are storing the database password in AWS Secrets Manager using dynamic references to prevent exposing credentials, and performing all changes via CloudFormation stack updates to avoid resource drift.

Adım Adım Çözüm

1
Identify the requirement for secure password retrieval.
AWS Secrets Manager is selected because it securely stores secrets and supports dynamic references in CloudFormation.
This avoids exposing credentials in plaintext.
2
Identify the requirement to prevent configuration drift.
Deploying all changes through CloudFormation stack updates instead of manual out-of-band modifications.
This maintains resource consistency and avoids drift-related failures during future updates.

Anahtar Kavram

AWS CloudFormation best practices for resource consistency and secrets management
Bu soruyu puanla