Which command shoul...
 
Notifications
Clear all

Which command should you use to show all of the resources that will be deleted?

1 Posts
1 Users
0 Likes
68 Views
(@sitesmario)
Posts: 734
Noble Member
Topic starter
 

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. This is not possible. You can only show resources that will be created.
    C. Run terraform state rm *.
    D. Run terraform destroy and it will first output all the resources that will be deleted before prompting for approval.

Show Answer Hide Answer

Suggested Answer: A,D

Explanation:

Reference: https://www.terraform.io/docs/cli/commands/state/rm.html
 
Posted : 06/11/2022 6:02 pm

Latest TA-002-P V1 Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: