HashiCorp
TERRAFORM-ASSOCIATE-004 · Question #237
What task does the terraform import command perform?
The correct answer is B. Imports existing resources into Terraform's state file. terraform import allows Terraform to associate existing resources (created outside of Terraform or by another tool) with a Terraform configuration by writing them into the state file. After import, Terraform can manage those resources.
Submitted by valeria.br· Apr 18, 2026Manage Terraform State
Question
What task does the terraform import command perform?
Options
- AImports resources from one Terraform state file to another.
- BImports existing resources into Terraform's state file.
- CImports a new Terraform module into Terraform's state file.
- DImports all infrastructure from the configured cloud provider.
- EImports provider configuration from one state file to another.
How the community answered
(19 responses)- B95% (18)
- D5% (1)
Explanation
terraform import allows Terraform to associate existing resources (created outside of Terraform or by another tool) with a Terraform configuration by writing them into the state file. After import, Terraform can manage those resources.
Topics
#terraform import#state management#CLI commands#existing resources
Community Discussion
No community discussion yet for this question.