Which task does terraform init not perform?
Which task does terraform init not perform?
D
Reference:
https://www.terraform.io/docs/cli/commands/init.html
D is correct
Finally ExamTopics got 1 right!
I think A is the correct answer.
terraform init not perform
terraform init performs several initialization steps to prepare your Terraform working directory to be used with Terraform commands. However, it does not validate whether all required variables are present in the configuration or provided through another method. That validation happens during the terraform plan or terraform apply stage. terraform init does: 1. Download and installs the necessary provider plugins. 2. Setup backend for storing state. 3. Download and install modules
D. Validates all required variables are present. terraform init is a command that initializes a new or existing Terraform configuration. When you run terraform init, Terraform performs several tasks to set up the configuration for use, including: Sources all providers present in the configuration and ensures they are downloaded and available locally Connects to the backend, if one is configured, and performs any necessary setup steps Sources any modules referenced in the configuration and copies their contents locally Initializes the backend configuration and performs any necessary setup steps
Ans is C. init doesn't validate all variables are present
why isn't it A?
focus on the key word "not"
yes, should be D
D is correct answer.
Looks like C to me
go and learn first no one need your looks like
D is correct. You can test it out in a sample tf file. Init command goes through even if some variable that another resource is referencing is missing.
A is the correct answer.
terraform plan or apply does "validates all required variables are present"
yes INIT does not validate variables