nerdexam
HashiCorpHashiCorp

TA-002-P · Question #416

TA-002-P Question #416: Real Exam Question with Answer & Explanation

Sign in or unlock TA-002-P to reveal the answer and full explanation for question #416. The question stem and answer options stay visible for context.

Implement and maintain state

Question

You have a Terraform configuration that defines a single virtual machine with no references to it. You have run terraform apply to create the resource, and then removed the resource definition from your Terraform configuration file. What will happen when you run terraform apply in the working directory again?

Options

  • ANothing
  • BTerraform will destroy the virtual machine
  • CTerraform will error
  • DTerraform will remove the virtual machine from the state file, but the resource will still exist

Unlock TA-002-P to see the answer

You've previewed enough free TA-002-P questions. Unlock TA-002-P 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 apply#State management#Resource lifecycle#Desired state
Full TA-002-P PracticeBrowse All TA-002-P Questions