HashiCorp Certified: Terraform Associate — Question 91
Which of the following is not an action performed by terraform init?
Answer options
- A. Create a sample main.tf file
- B. Initialize a configured backend
- C. Retrieve the source code for all referenced modules
- D. Load required provider plugins
Correct answer: A
Explanation
The correct answer is A, as terraform init does not automatically create a sample main.tf file; it expects the user to provide this configuration file. Options B, C, and D are all actions performed during the initialization process, making them incorrect choices.