Exam Terraform Associate All QuestionsBrowse all questions from this exam
Question 240

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

    Correct Answer: A, B

    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
SimplonOptions: BD

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

Oleg_golOptions: AB

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

[Removed]

I agree with this.

PachecoheteOptions: BD

BD, plan is not a requeriment.

Jas14

people voting for A, seriously !!

PikopoOptions: BD

BD is correct

JhaggarOptions: BD

First init and then apply

tabkarOptions: BD

I believe in should be B & D

TheShantymanOptions: BD

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

seifsklOptions: AB

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

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