TERRAFORM-ASSOCIATE-004 · Question #97
Which task does terraform init not perform?
The correct answer is A. Validates all required variables are present. The terraform init command is used to initialize a working directory containing Terraform configuration files. This command performs several different initialization steps to prepare the current working directory for use with Terraform, which includes initializing the backend, in
Question
Options
- AValidates all required variables are present
- BSources any modules and copies the configuration locally
- CConnects to the backend
- DSources all providers used in the configuration and downloads them
How the community answered
(30 responses)- A93% (28)
- B3% (1)
- C3% (1)
Explanation
The terraform init command is used to initialize a working directory containing Terraform configuration files. This command performs several different initialization steps to prepare the current working directory for use with Terraform, which includes initializing the backend, installing provider plugins, and copying any modules referenced in the configuration. However, it does not validate whether all required variables are present; that is a task performed by terraform plan or terraform apply.
Topics
Community Discussion
No community discussion yet for this question.