nerdexam
HashiCorp

TA-002-P · Question #141

You want to use terraform import to start managing infrastructure that was not originally provisioned through infrastructure as code. Before you can import the resource's current state, what must you

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

Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)

Question

You want to use terraform import to start managing infrastructure that was not originally provisioned through infrastructure as code. Before you can import the resource's current state, what must you do in order to prepare to manage these resources using Terraform?

Options

  • ARun terraform refresh to ensure that the state file has the latest information for existing
  • BUpdate the configuration file to include the new resources.
  • CShut down or stop using the resources being imported so no changes are inadvertently
  • DModify the Terraform state file to add the new resources.

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 import#configuration files#resource declaration#managing existing infrastructure
Full TA-002-P Practice