TA-002-P · Question #186
TA-002-P Question #186: Real Exam Question with Answer & Explanation
The correct answer is A: Use terraform destroy command. {"question_number": 4, "question": "How can you check which resources will be destroyed before actually destroying them?", "correct_answer": "A, D", "explanation": "Two options surface the destruction plan: (1) terraform plan -destroy (D) generates a speculative destroy plan and
Question
You have provisioned some aws resources in your test environment through Terraform for a POC work. After the POC, now you want to destroy the resources but before destroying them you want to check what resources will be getting destroyed through terraform. what are the options of doing that? (Select TWO)
Options
- AUse terraform destroy command
- BThis is not possible
- CUse terraform plan command
- DUse terraform plan -destroy command.
Explanation
{"question_number": 4, "question": "How can you check which resources will be destroyed before actually destroying them?", "correct_answer": "A, D", "explanation": "Two options surface the destruction plan: (1) terraform plan -destroy (D) generates a speculative destroy plan and prints the full list of resources that would be removed without making any changes - this is the safest preview method. (2) terraform destroy (A) also prints a detailed destruction plan and then prompts for confirmation before proceeding, so you can review what will be destroyed before typing 'yes'. Both satisfy 'checking what will be destroyed.' Option B is simply wrong. Option C (terraform plan without -destroy) shows a normal execution plan and would not highlight upcoming deletions unless your config already removed those resources.", "generated_by": "claude-sonnet", "llm_judge_score": 4}
Topics
Community Discussion
No community discussion yet for this question.