HashiCorp Certified: Terraform Associate — Question 263
What does terraform import allow you to do?
Answer options
- A. Import a new Terraform module
- B. Use a state file to import infrastructure to the cloud
- C. Import provisioned infrastructure to your state file
- D. Import an existing state file to a new Terraform workspace
Correct answer: C
Explanation
The correct answer is C because terraform import is specifically designed to bring existing infrastructure into Terraform's state management. Options A and B are incorrect as they do not accurately describe the function of terraform import, while option D is also incorrect as it refers to importing a state file rather than infrastructure.