TERRAFORM-ASSOCIATE-004 · Question #76
TERRAFORM-ASSOCIATE-004 Question #76: Real Exam Question with Answer & Explanation
The correct answer is C: Run terraform destroy and it will first output all the resource that will be deleted before prompting. 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
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 like to first see all the infrastructure that Terraform will delete. Which command should you use to show all of the resources that mil be deleted? Choose two correct answers.
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
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.