Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 37


Which task does terraform init not perform?

Show Answer
Correct Answer: D

D

Reference:

https://www.terraform.io/docs/cli/commands/init.html

Discussion

14 comments
Sign in to comment
elvancedonzyOption: D
Jun 1, 2022

D is correct

SilentHOption: D
Apr 10, 2024

Finally ExamTopics got 1 right!

Ni33Option: A
May 8, 2023

I think A is the correct answer.

Bolgarwow
Mar 29, 2024

terraform init not perform

habrosOption: C
May 29, 2022

Looks like C to me

Oskar_Madin
Jun 29, 2022

go and learn first no one need your looks like

EltoothOption: D
Jun 26, 2022

D is correct answer.

flaviu888Option: D
Jul 2, 2022

yes, should be D

bwahdiOption: A
Nov 30, 2022

why isn't it A?

FarziWaliMarzi
Dec 23, 2022

focus on the key word "not"

Power123Option: C
Mar 30, 2023

Ans is C. init doesn't validate all variables are present

campsOption: D
Mar 31, 2023

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

BereOption: D
Jul 29, 2023

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

Ahmad_TerraformOption: D
Jun 22, 2022

yes INIT does not validate variables

BurakkoOption: D
Sep 1, 2022

terraform plan or apply does "validates all required variables are present"

Ni33Option: A
May 1, 2023

A is the correct answer.

DarrylNgOption: D
Apr 23, 2024

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.