Soru

Zorluk: KolayAWS CloudFormation

A developer needs to audit a production environment deployed via AWS CloudFormation because some resources may have been modified manually outside of the stack template. The developer wants to identify these out-of-band changes.

Which of the following actions should the developer perform to detect these modifications? (Select TWO.)

  1. Run drift detection on the entire CloudFormation stack from the AWS CloudFormation console or the AWS CLI.Cevap
  2. Review the drift status details of the stack and individual resources to compare the actual and expected configurations.Cevap
  3. C
    Configure AWS Config to automatically update the CloudFormation stack template whenever an out-of-band change is made.
  4. D
    Review the AWS CloudTrail logs for a DeleteStack event to find the exact manual modifications and automatically restore them.
  5. E
    Execute the aws cloudformation rollback-stack CLI command to automatically sync the manual changes back to the template.

Cevap

Running drift detection on the CloudFormation stack and reviewing the drift status details to compare actual and expected configurations are the correct methods to identify manual changes.
To identify manual modifications made outside of CloudFormation, a developer can run drift detection on the stack. Reviewing the drift status details shows exactly which resources have drifted and how their actual configuration properties differ from the expected template configuration.

Adım Adım Çözüm

1
Initiate a drift detection operation on the target stack.
CloudFormation scans the resources in the stack and compares them to the template definition.
This establishes the current state baseline and flags any discrepancies.
2
Review the drift status results in the console or CLI output.
The developer identifies modified properties, values, and status for drifted resources.
This provides granular details of the changes that were made manually outside of CloudFormation.

Anahtar Kavram

AWS CloudFormation Drift Detection
Bu soruyu puanla