Pre-Summer Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

HashiCorp Certified: Terraform Associate (004) (HCTA0-004) Terraform-Associate-004 Question # 97 Topic 10 Discussion

HashiCorp Certified: Terraform Associate (004) (HCTA0-004) Terraform-Associate-004 Question # 97 Topic 10 Discussion

Terraform-Associate-004 Exam Topic 10 Question 97 Discussion:
Question #: 97
Topic #: 10

A developer accidentally launched a VM (virtual machine) outside of the Terraform workflow and ended up with two servers with the same name. They don ' t know which VM Terraform manages but do have a list of all active VM IDs.

Which of the following methods could you use to discover which instance Terraform manages?


A.

Run terraform state list to find the names of all VMs, then run terraform state show for each of them to find which VM ID Terraform manages


B.

Update the code to include outputs for the ID of all VMs, then run terraform plan to view the outputs


C.

Run terraform taint/code on all the VMs to recreate them


D.

Use terraform refresh/code to find out which IDs are already part of state


Get Premium Terraform-Associate-004 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.