Bird
0
0

After running aws cloudformation detect-stack-drift --stack-name MyStack, which command shows the drift detection status and results?

medium📝 service behavior Q13 of 15
AWS - CloudFormation

After running aws cloudformation detect-stack-drift --stack-name MyStack, which command shows the drift detection status and results?

Aaws cloudformation show-drift-results --stack-name MyStack
Baws cloudformation get-stack-drift-status --stack-name MyStack
Caws cloudformation list-stack-drift-detection --stack-name MyStack
Daws cloudformation describe-stack-drift-detection-status --stack-drift-detection-id <detection-id>
Step-by-Step Solution
Solution:
  1. Step 1: Identify the command to check drift detection status

    The AWS CLI command to check drift detection status is describe-stack-drift-detection-status.
  2. Step 2: Confirm the correct parameter usage

    It requires the --stack-drift-detection-id parameter to specify the detection ID, not --stack-name.
  3. Final Answer:

    aws cloudformation describe-stack-drift-detection-status --stack-drift-detection-id <detection-id> -> Option D
  4. Quick Check:

    Check drift status = describe-stack-drift-detection-status [OK]
Quick Trick: Use 'describe-stack-drift-detection-status' with detection ID to get drift results [OK]
Common Mistakes:
  • Using non-existent commands like get-stack-drift-status
  • Confusing list commands with status commands
  • Wrong parameter names

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes