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
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
Community Discussion
No community discussion yet for this question.