TA-002-P · Question #449
TA-002-P Question #449: Real Exam Question with Answer & Explanation
The correct answer is C: Import provisioned infrastructure to your state file. {"question_number": 9, "question": "What does terraform import allow you to do?", "correct_answer": "C", "explanation": "terraform import brings existing real-world infrastructure under Terraform management by adding it to the Terraform state file. For example, if a VM was create
Question
What does terraform import allow you to do?
Options
- AImport a new Terraform module
- BUse a state file to import infrastructure to the cloud
- CImport provisioned infrastructure to your state file
- DImport an existing state file to a new Terraform workspace
Explanation
{"question_number": 9, "question": "What does terraform import allow you to do?", "correct_answer": "C", "explanation": "terraform import brings existing real-world infrastructure under Terraform management by adding it to the Terraform state file. For example, if a VM was created manually in AWS (outside of Terraform), you can run terraform import aws_instance.my_vm <instance-id> to record it in state. After importing, you still need to write the corresponding resource configuration manually so the state and config align. It does NOT import modules (A), use state to create cloud resources (B), or migrate state files between workspaces (D). Its sole purpose is bridging pre-existing infrastructure into Terraform's state tracking.", "generated_by": "claude-sonnet", "llm_judge_score": 4}
Topics
Community Discussion
No community discussion yet for this question.