Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 23


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

Show Answer
Correct Answer: BD

To provision new infrastructure in the Terraform workflow, two essential steps are required: 'Init' and 'Apply.' First, the 'Init' step initializes a new or existing Terraform working directory by installing necessary provider plugins and setting up state backends. Then, the 'Apply' step takes the Terraform configuration files and applies the changes to create or modify resources according to the defined specifications. Other operations such as 'Destroy,' 'Import,' and 'Validate' are not fundamental steps in the provisioning process but serve different roles within the Terraform lifecycle.

Discussion

18 comments
Sign in to comment
softarts
Nov 16, 2022

D and B

javibadilloOptions: BD
Dec 8, 2022

b and d

EltoothOptions: BD
Dec 26, 2022

B and D are correct answers.

cjigOptions: BD
Jan 24, 2023

Options B and D are correct.

NunyabiznesOptions: BD
Sep 19, 2023

The two steps required to provision new infrastructure in the Terraform workflow are: B. Apply: This step applies the changes to the infrastructure by creating or modifying resources in accordance with the configuration described in the Terraform code. D. Init: This step initializes a new or existing Terraform working directory by downloading and installing any required providers and modules, as well as setting up the backend. The other options are: A. Destroy: This step destroys the resources that are managed by Terraform in the specified configuration. C. Import: This step allows the user to import existing infrastructure into Terraform's state. E. Validate: This step checks the syntax and validity of the Terraform configuration files without actually creating or modifying any resources.

Jlee7
Dec 25, 2023

Glad to see most popular answer and examtopics answer agree!! :) B&D

BlackZerosOptions: BD
Dec 26, 2022

b and d sounds logical

Bilalglg93350
Sep 14, 2023

The two required steps to provision new infrastructure in the Terraform workflow are: B. Apply - This step applies the changes to the infrastructure by creating, modifying, or deleting resources based on the Terraform configuration. D. Init - This step initializes a new or existing Terraform configuration by downloading the required provider plugins and setting up the backend to store the state of the infrastructure. Options A, C, and E are not required steps to provision new infrastructure in the Terraform workflow: Destroy (option A) is used to destroy the resources created by the Terraform configuration, which is not required to provision new infrastructure. Import (option C) is used to import an existing infrastructure resource into the Terraform state, which is not a required step to provision new infrastructure. Validate (option E) is used to validate the syntax and structure of the Terraform configuration but is not a required step to provision new infrastructure.

connecttozee
Oct 4, 2023

required sure init first & apply later BD is correct

enookOptions: BD
Jul 3, 2024

BD for sure

RVivekOptions: BD
Mar 22, 2023

A- is to destrory C- is to import an existng resource that was manually created . The question is about provisioning a new resource E - is sjust to valaidate the command structure

FarziWaliMarziOptions: BD
Jun 16, 2023

Obviously, plan can be skipped.

awsguys
Jul 30, 2023

B , D right

SilentMilliOptions: BD
Aug 11, 2023

The Terraform workflow consists of several steps for provisioning new infrastructure. The two steps that are required to provision new infrastructure in the Terraform workflow are: B. Apply: The "terraform apply" command is used to provision new infrastructure. This command takes the Terraform configuration files as input and creates or updates the resources specified in the configuration files. D. Init: The "terraform init" command is used to initialize a Terraform configuration directory. This command must be run before running the "terraform apply" command to ensure that the required Terraform modules and plugins are installed and available. Note that other steps in the Terraform workflow, such as "terraform destroy" or "terraform import," may also be used depending on your specific needs and the nature of your infrastructure. However, the "terraform apply" and "terraform init" commands are the two steps that are required to provision new infrastructure in the Terraform workflow.

Power123
Sep 30, 2023

B & D - init and apply

Ni33Options: BD
Nov 1, 2023

B and D

karendavtyanOptions: BD
Nov 5, 2023

B and D

hungran91Options: BD
Jan 8, 2024

Definitely BD