Exam Terraform Associate All QuestionsBrowse all questions from this exam
Question 93

Which of the following is not an action performed by terraform init?

    Correct Answer: A

    The 'terraform init' command is used to initialize a working directory containing Terraform configuration files. It initializes a configured backend, retrieves the source code for all referenced modules, and loads required provider plugins. However, it does not create a sample main.tf file. A main.tf file must be created by the user or provided by other means. Therefore, the correct answer is that 'terraform init' does not create a sample main.tf file.

Discussion
EltoothOption: A

Of options, only A is correct answer : Create a sample main.tf file B. Initialize a configured backend : https://www.terraform.io/cli/commands/init#backend-initialization C. Retrieve the source code for all referenced modules : https://www.terraform.io/cli/commands/init#child-module-installation D. Load required provider plugins : https://www.terraform.io/cli/commands/init#plugin-installation

keiffo2Option: A

init doen't create an main.tf file.

Power123Option: A

Correct answer is A

NzudinOption: A

A of course :')