nerdexam
HashiCorpHashiCorp

TERRAFORM-ASSOCIATE-004 · Question #167

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

The correct answer is A: Imports existing resources into the state file. The terraform import command is used to import existing infrastructure into your Terraform state. This command takes the existing resource and associates it with a resource defined in your Terraform configuration, updating the state file accordingly. It does not generate configur

Submitted by ashley.k· Apr 18, 2026Manage Terraform State

Question

What does terraform import do?

Options

  • AImports existing resources into the state file
  • BImports all infrastructure from a given cloud provider
  • CImports a new Terraform module
  • DImports clean copies of tainted resources
  • ENone of the above

Explanation

The terraform import command is used to import existing infrastructure into your Terraform state. This command takes the existing resource and associates it with a resource defined in your Terraform configuration, updating the state file accordingly. It does not generate configuration for the resource, only the state.

Topics

#terraform import#Terraform state#existing resources#CLI commands

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 PracticeBrowse All TERRAFORM-ASSOCIATE-004 Questions