Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 306


What is the workflow for deploying new infrastructure with Terraform?

Show Answer
Correct Answer: A

The correct workflow for deploying new infrastructure with Terraform involves writing the Terraform configuration, running terraform init to initialize the working directory or workspace, and then running terraform apply to create the infrastructure. This sequence ensures that the environment is set up correctly and that the infrastructure changes are applied as specified.

Discussion

2 comments
Sign in to comment
Ramdi1Option: A
Nov 25, 2024

After writing the config you need to run terraform init so it can download plugins etc. Terraform plan is optional. Hence A is the only correct answer.

Coursesh1
Dec 1, 2024

terraform init choose (A)