Choose the best description of what stack drift detection does in AWS CloudFormation.
Think about what 'drift' means in terms of configuration and actual state.
Stack drift detection checks if the real resources have changed outside of CloudFormation, but it does not fix or delete resources automatically.
You run drift detection on a CloudFormation stack that has not been modified outside of CloudFormation. What is the expected result?
Consider what it means if no changes were made outside CloudFormation.
If no changes are detected, the stack status after drift detection is IN_SYNC, meaning the actual resources match the template.
Select the correct AWS CLI command to start drift detection on the stack named 'MyAppStack'.
Look for the exact AWS CLI command name for drift detection.
The correct command to start drift detection is detect-stack-drift. Other commands do not exist.
Identify the minimum IAM permission needed to run drift detection on a CloudFormation stack.
Think about the permission that allows checking for drift, not modifying the stack.
The cloudformation:DetectStackDrift permission allows users to initiate drift detection without changing the stack.
Choose the best practice to detect stack drift early and maintain infrastructure consistency.
Consider automation and frequency for early detection.
Automating drift detection regularly helps catch changes quickly and keeps infrastructure consistent.