Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 134 discussion

Actual exam question from HashiCorp's Terraform Associate
Question #: 134
Topic #: 1
[All Terraform Associate Questions]

You have 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 will be deleted by Terraform.
Which command should you use to show all of the resources that will be deleted? (Choose two.)

  • A. Run terraform plan -destroy
  • B. Run terraform show -destroy
  • C. Run terraform destroy and it will first output all the resources that will be deleted before prompting for approval
  • D. Run terraform show -destroy
Show Suggested Answer Hide Answer
Suggested Answer: AC 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
bora4motion
Highly Voted 2 years, 2 months ago
Selected Answer: AC
I go with AC
upvoted 9 times
...
imkhan
Highly Voted 1 year, 1 month ago
AC are the correct options When you want to see a preview of the resources that will be deleted by Terraform, you can use the terraform plan -destroy command to generate a destruction plan that shows what will be removed. This is a safe way to ensure you understand the impact of the destroy operation before proceeding. Option C is also correct because when you run terraform destroy, Terraform will provide an execution plan that lists the resources to be deleted before it actually prompts you for approval to proceed with the destruction. This allows you to review the list of resources that will be affected before confirming the destroy operation.
upvoted 6 times
...
gofavad926
Most Recent 1 year, 1 month ago
Selected Answer: AC
AC for sure
upvoted 1 times
...
Bilalglg93350
1 year, 8 months ago
A. Run terraform plan -destroy D. Run terraform show -destroy To see all the resources that will be deleted by Terraform, you should run the terraform plan -destroy command. This command will show a preview of all the changes that Terraform will make, including any resources that will be deleted. After running the terraform plan -destroy command, you can also run the terraform show -destroy command to view a detailed summary of the resources that will be deleted. Option C (Run terraform destroy and it will first output all the resources that will be deleted before prompting for approval) is not correct. Running the terraform destroy command will immediately destroy all the resources without showing a preview of what will be deleted. To be safe, it is recommended to run the terraform plan -destroy command first to see the resources that will be deleted, and then run terraform destroy to confirm the deletion.
upvoted 4 times
MrTee
1 year, 4 months ago
Terraform show -destroy is not a valid command
upvoted 4 times
...
Roytf
1 year, 1 month ago
don't paste chatGpt output..option D is invalid
upvoted 3 times
...
Halimb
1 year, 2 months ago
Nosense. There is no terraform show -destroy. Stop confusing people. Answer is A&C.
upvoted 4 times
...
...
VamsiPopuri
1 year, 9 months ago
Selected Answer: AC
A and C. Aren't B and D the same ?
upvoted 4 times
...
rafpe
1 year, 11 months ago
Selected Answer: AC
Def A&C
upvoted 1 times
...
Atta33
2 years, 1 month ago
Selected Answer: AC
AC is correct
upvoted 3 times
...
RVivek
2 years, 1 month ago
Selected Answer: AC
A and C
upvoted 1 times
...
shopkitty
2 years, 2 months ago
Selected Answer: AC
vote for A & C
upvoted 1 times
...
Burakko
2 years, 2 months ago
Selected Answer: AC
It is AC. terraform show only shows the state file
upvoted 4 times
...
dc_98
2 years, 2 months ago
Selected Answer: AC
There is no terraform show -destroy
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...