nerdexam
HashiCorpHashiCorp

TERRAFORM-ASSOCIATE-004 · Question #108

TERRAFORM-ASSOCIATE-004 Question #108: Real Exam Question with Answer & Explanation

Sign in or unlock TERRAFORM-ASSOCIATE-004 to reveal the answer and full explanation for question #108. The question stem and answer options stay visible for context.

Submitted by stefanr· Apr 18, 2026Manage Terraform State

Question

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?

Options

  • ARun terraform state list to find the names of all VMs, then run terraform state show for each of
  • BUpdate the code to include outputs for the ID of all VMs, then run terraform plan to view the
  • CRun terraform taint/code on all the VMs to recreate them
  • DUse terraform refresh/code to find out which IDs are already part of state

Unlock TERRAFORM-ASSOCIATE-004 to see the answer

You've previewed enough free TERRAFORM-ASSOCIATE-004 questions. Unlock TERRAFORM-ASSOCIATE-004 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Terraform state#CLI commands#Resource identification#State inspection
Full TERRAFORM-ASSOCIATE-004 PracticeBrowse All TERRAFORM-ASSOCIATE-004 Questions