ExamGecko
Question list
Search
Search

Question 143 - Terraform Associate 003 discussion

Report
Export

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.

A.
Run terraform state rm '
Answers
A.
Run terraform state rm '
B.
Run terraform show :destroy
Answers
B.
Run terraform show :destroy
C.
Run terraform destroy and it will first output all the resource that will be deleted before prompting for approval
Answers
C.
Run terraform destroy and it will first output all the resource that will be deleted before prompting for approval
D.
Run terraform plan .destory
Answers
D.
Run terraform plan .destory
Suggested answer: C, D

Explanation:

To see all the resources that Terraform will delete, you can use either of these two commands:

terraform destroywill 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 -destroywill show the plan of destruction without asking for confirmation. You can use this command to review the changes before runningterraform destroy.Reference= : Destroy Infrastructure : Plan Command: Options

asked 18/09/2024
Timothy Smith
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first