ExamGecko
Question list
Search
Search

Question 21 - Terraform Associate 003 discussion

Report
Export

Which task does terraform init not perform?

A.
Validates all required variables are present
Answers
A.
Validates all required variables are present
B.
Sources any modules and copies the configuration locally
Answers
B.
Sources any modules and copies the configuration locally
C.
Connects to the backend
Answers
C.
Connects to the backend
D.
Sources all providers used in the configuration and downloads them
Answers
D.
Sources all providers used in the configuration and downloads them
Suggested answer: A

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 apply1.

Reference = This information can be verified from the official Terraform documentation on the terraform init command provided by HashiCorp Developer1.

asked 18/09/2024
Aubrey Oliver Jr
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first