TERRAFORM-ASSOCIATE-004 · Question #76
You have used Terraform lo create an ephemeral development environment in the (loud and are now ready to destroy all the Infrastructure described by your Terraform configuration To be safe, you would
The correct answer is C. Run terraform destroy and it will first output all the resource that will be deleted before prompting D. Run terraform plan .destory. To see all the resources that Terraform will delete, you can use either of these two commands: terraform destroy will show the plan of destruction and ask for your confirmation before proceeding. You can cancel the command if you do not want to destroy the resources. terraform pl
Question
Options
- ARun terraform state rm `
- BRun terraform show :destroy
- CRun terraform destroy and it will first output all the resource that will be deleted before prompting
- DRun terraform plan .destory
How the community answered
(39 responses)- A3% (1)
- B5% (2)
- C92% (36)
Explanation
To see all the resources that Terraform will delete, you can use either of these two commands: terraform destroy will show the plan of destruction and ask for your confirmation before proceeding. You can cancel the command if you do not want to destroy the resources. terraform plan -destroy will show the plan of destruction without asking for confirmation. You can use this command to review the changes before running terraform destroy.
Topics
Community Discussion
No community discussion yet for this question.