nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-003 · Question #186

TERRAFORM-ASSOCIATE-003 Question #186: Real Exam Question with Answer & Explanation

The correct answer is A. Run terraform destroy. This will output all the resources that will be deleted before prompting B. Run terraform show -destroy.. Running terraform destroy will show all resources that will be deleted before prompting for You can also run terraform plan -destroy to simulate the destruction without actually applying it, which is useful for reviewing the planned changes.

Question

You used Terraform to create an ephemeral development environment in the cloud 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 the resources that will be deleted? (Pick the 2 correct responses)

Options

  • ARun terraform destroy. This will output all the resources that will be deleted before prompting
  • BRun terraform show -destroy.
  • CRun terraform state rm *.

Explanation

Running terraform destroy will show all resources that will be deleted before prompting for You can also run terraform plan -destroy to simulate the destruction without actually applying it, which is useful for reviewing the planned changes.

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-003 Practice