Interview Prep/AWS/Observability, Secrets, KMS and CloudFormation

Detect and handle drift between deployed resources and CloudFormation.

IntermediateScenarioObservability, Secrets, KMS and CloudFormation
Answer

Situation read → Drift detection compares live to template.

What I'd do →

  1. aws cloudformation detect-stack-drift --stack-name s
  2. describe-stack-resource-drifts for details
  3. Revert in the template or update the stack to correct
  4. Schedule regular detection
  5. Restrict console write access to reduce drift

Why → Drift defeats the repeatability of IaC.

Interview tip → Prevention with permissions beats detection.

aws All AWS questions

More on Observability, Secrets, KMS and CloudFormation