Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 45


Only the user that generated a plan may apply it.

Show Answer
Correct Answer: B

The statement is false. The user who generated a plan is not the only one who may apply it. In Terraform, for instance, a plan can be saved to a file and any user with appropriate permissions can apply that plan. This facilitates collaboration among team members, as one member can generate the plan and another can apply it.

Discussion

17 comments
Sign in to comment
Jaro3000
Jun 3, 2022

I suppose they do it by purpose so we discuss it

kopper2019
Aug 10, 2022

this made me laugh :)

vibzr2023
Mar 27, 2024

you made my day :)

yuvifoseOption: B
Jul 18, 2022

B is correct, a plan can be stored as a file and another person can execute the plan file

IpergortaOption: B
Apr 30, 2022

B: False

ItaloVinodiOption: B
May 13, 2022

A lot of question are wrong here, in this case is B: False

biscuithammerOption: B
May 23, 2022

It should be B

BereOption: B
Jul 30, 2023

For example, in a continuous deployment pipeline, one job might run terraform plan -out=plan.out to generate the plan, and this plan could be applied later in a separate job (potentially triggered manually for additional control) using terraform apply plan.out. These jobs might be run under different user accounts, or even on different machines. As described here: https://developer.hashicorp.com/terraform/tutorials/automation/automate-terraform?utm_source=WEBSITE&utm_medium=WEB_IO&utm_offer=ARTICLE_PAGE&utm_content=DOCS Steps 1, 2 and 4 can be carried out using the familiar Terraform CLI commands, with some additional options: terraform init -input=false to initialize the working directory. terraform plan -out=tfplan -input=false to create a plan and save it to the local file tfplan. terraform apply -input=false tfplan to apply the plan stored in the file tfplan.

chael88Option: B
Jan 24, 2023

B. False Somebody else can apply the plan via Terraform Cloud. I have tested this.

fsdgrtsdfcjmuOption: B
May 26, 2022

It looks like 50% of provided answers here are wrong, should be false

EltoothOption: B
Jun 27, 2022

B is correct answer.

sahara99Option: B
Feb 15, 2023

B is correct

Ahmad_TerraformOption: B
Jul 13, 2022

B is correct ,,

wimarshaOption: B
Jan 30, 2023

Someone can run an apply without plan also. So B is the correct answer.

Power123Option: B
Mar 30, 2023

B is correct

Ni33Option: B
May 1, 2023

B is the answer

kiran15789Option: A
May 14, 2023

aws_instance.example[*].id is a valid

junk4shareOption: B
Jul 7, 2023

b is the answer

tfdestroyOption: B
Jul 28, 2023

B. False Terraform does not restrict who can apply a generated plan based on who created it. As long as the person applying the plan has appropriate permissions to modify the resources in question, they should be able to apply the plan. This means that multiple team members can collaborate on Terraform configurations and one person's plan can be applied by someone else. However, it's important to note that good practices might involve controlling who has the necessary permissions to apply changes, especially in production environments, to ensure that changes are reviewed and approved before being applied.