Bird
0
0

Which AWS CLI command syntax correctly deletes a stack named MyAppStack?

easy📝 Configuration Q12 of 15
AWS - CloudFormation
Which AWS CLI command syntax correctly deletes a stack named MyAppStack?
Aaws cloudformation delete-stack --stack-name MyAppStack
Baws cloudformation update-stack --stack-name MyAppStack
Caws cloudformation remove-stack --name MyAppStack
Daws cloudformation destroy-stack --stack MyAppStack
Step-by-Step Solution
Solution:
  1. Step 1: Identify the correct delete command

    The correct AWS CLI command to delete a stack is delete-stack with the parameter --stack-name.
  2. Step 2: Verify syntax correctness

    aws cloudformation delete-stack --stack-name MyAppStack uses the exact syntax: aws cloudformation delete-stack --stack-name MyAppStack, which is valid and deployable.
  3. Final Answer:

    aws cloudformation delete-stack --stack-name MyAppStack -> Option A
  4. Quick Check:

    delete-stack + --stack-name = correct syntax [OK]
Quick Trick: Delete stacks with 'delete-stack' and '--stack-name' [OK]
Common Mistakes:
  • Using update-stack instead of delete-stack
  • Wrong parameter names like --name or --stack
  • Using non-existent commands like remove-stack or destroy-stack

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes