Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 240


Which two steps are required to provision new infrastructure in the Terraform workflow? (Choose two.)

Show Answer
Correct Answer: ABD

To provision new infrastructure in the Terraform workflow, the two required steps are Plan and Apply. The Plan step involves generating an execution plan, showing what actions Terraform will take to achieve the desired state defined in the configuration. The Apply step is used to execute the actions proposed in the plan to create or update the infrastructure. Although Init is an essential step to set up the working directory, it is not directly involved in the provisioning of infrastructure. Therefore, the two steps specifically required for provisioning are Plan and Apply.

Discussion

9 comments
Sign in to comment
SimplonOptions: BD
Oct 13, 2023

Plan is recommended but not a requirement, whereas init is mandatory and apply is necessary to provision infrastructure.

Oleg_golOptions: AB
May 6, 2023

A. Plan and B. Apply https://developer.hashicorp.com/terraform/intro/core-workflow

[Removed]
Jun 25, 2023

I agree with this.

PachecoheteOptions: BD
May 8, 2023

BD, plan is not a requeriment.

tabkarOptions: BD
May 7, 2023

I believe in should be B & D

JhaggarOptions: BD
May 13, 2023

First init and then apply

PikopoOptions: BD
Sep 28, 2023

BD is correct

Jas14
Sep 28, 2023

people voting for A, seriously !!

seifsklOptions: AB
Jul 24, 2023

https://developer.hashicorp.com/terraform/intro/core-workflow The core Terraform workflow has three steps: Write - Author infrastructure as code. Plan - Preview changes before applying. Apply - Provision reproducible infrastructure.

ShakDaddy
Jul 31, 2023

You do not need to use "plan" indepently since "apply" automatically runs plan as well. You can test it yourself by writing a configuration, running "init" and then "apply".

TheShantymanOptions: BD
May 31, 2024

BD is correct. The apply will automatically execute the Plan, so A is not explicitly required.