nerdexam
HashiCorpHashiCorp

TERRAFORM-ASSOCIATE-004 · Question #209

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

The correct answer is C: terraform import. The terraform import command allows Terraform to take existing infrastructure and bring it under Terraform's management. A (terraform get) is incorrect because it is used to fetch modules. B (terraform refresh) is incorrect because it only updates Terraform's state to match the i

Submitted by salim_om· Apr 18, 2026Manage Terraform State

Question

You created infrastructure outside the Terraform workflow that you now want to manage using Terraform. Which command brings the infrastructure into Terraform state?

Options

  • Aterraform get
  • Bterraform refresh
  • Cterraform import
  • Dterraform init

Explanation

The terraform import command allows Terraform to take existing infrastructure and bring it under Terraform's management. A (terraform get) is incorrect because it is used to fetch modules. B (terraform refresh) is incorrect because it only updates Terraform's state to match the infrastructure but does not import resources. D (terraform init) is incorrect because it only initializes the Terraform working directory.

Topics

#terraform import#managing existing infrastructure#terraform state#CLI commands

Community Discussion

No community discussion yet for this question.

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