Bird
0
0

Which of the following is the correct AWS CLI command to start drift detection on a stack named 'TestStack'?

easy📝 Syntax Q3 of 15
AWS - CloudFormation
Which of the following is the correct AWS CLI command to start drift detection on a stack named 'TestStack'?
Aaws cloudformation start-drift-detection --stack TestStack
Baws cloudformation detect-stack-drift --stack-name TestStack
Caws cloudformation check-drift --name TestStack
Daws cloudformation drift-detect --stack TestStack
Step-by-Step Solution
Solution:
  1. Step 1: Recall correct CLI syntax for drift detection

    The official command is 'aws cloudformation detect-stack-drift' with '--stack-name'.
  2. Step 2: Compare options to correct syntax

    Only aws cloudformation detect-stack-drift --stack-name TestStack matches the exact command and parameter names.
  3. Final Answer:

    aws cloudformation detect-stack-drift --stack-name TestStack -> Option B
  4. Quick Check:

    Correct CLI command = aws cloudformation detect-stack-drift --stack-name TestStack [OK]
Quick Trick: Use 'detect-stack-drift' with '--stack-name' to start detection [OK]
Common Mistakes:
  • Using incorrect command verbs
  • Wrong parameter names like --stack instead of --stack-name

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes