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 266 discussion

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

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 taint/code on all the VMs to recreate them
  • B. Update the code to include outputs for the ID of all VMs, then run terraform plan to view the outputs
  • C. 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
  • D. Use terraform refresh/code to find out which IDs are already part of state
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
SureNot
5 months, 1 week ago
Multiple answer? - BC. B will also work.
upvoted 1 times
...
dankositzke
9 months ago
Selected Answer: C
I vote C
upvoted 1 times
...
DevoteamAnalytix
1 year, 5 months ago
Selected Answer: C
https://developer.hashicorp.com/terraform/cli/commands/state/list https://developer.hashicorp.com/terraform/cli/commands/state/show
upvoted 4 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 ...