TA-002-P · Question #241
TA-002-P Question #241: Real Exam Question with Answer & Explanation
The correct answer is A: Terraform can still determine the correct order for destruction from the state even when. {"question_number": 8, "question": "Destroying dependent resources by deleting them from config and running plan/apply", "correct_answer": "A. Terraform determines the correct destruction order from state", "explanation": "Terraform's state file records all managed resources and
Question
You wanted to destroy some of the dependent resources from real infrastructure. You choose to delete those resources from your configuration file and run terraform plan and then apply. Which of the following way your resources would be destroyed?
Options
- ATerraform can still determine the correct order for destruction from the state even when
- BThose would be destroyed in the order in which they were written in the configuration file
- CThe resource will be destructed in random order as you have already deleted them from
- DYou can not destroy resources by deleting them from configuration file and running plan
Explanation
{"question_number": 8, "question": "Destroying dependent resources by deleting them from config and running plan/apply", "correct_answer": "A. Terraform determines the correct destruction order from state", "explanation": "Terraform's state file records all managed resources and their dependency relationships. When you remove resources from your configuration and run 'terraform apply', Terraform compares the desired state (config) against the current state (state file), identifies resources to destroy, and uses the dependency graph stored in state to determine the correct destruction order - destroying dependents before their dependencies, even without the config present.", "generated_by": "claude-sonnet", "llm_judge_score": 4}
Topics
Community Discussion
No community discussion yet for this question.