Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 86


You just scaled your VM infrastructure and realized you set the count variable to the wrong value. You correct the value and save your change.

What do you do next to make your infrastructure match your configuration?

Show Answer
Correct Answer: A

To ensure your VM infrastructure matches your updated configuration after correcting the count variable, you should run an apply and confirm the planned changes. Running 'terraform apply' will apply the changes in your configuration to your infrastructure, thus making them consistent with each other. Neither inspecting the state file, reinitializing, nor inspecting outputs will directly apply the necessary changes to the infrastructure.

Discussion

11 comments
Sign in to comment
vitasacOption: A
May 4, 2022

I'm aggree it's A

nez15Option: A
Apr 29, 2022

Not sure why D. Should be A

EltoothOption: A
Jun 28, 2022

A is correct answer : apply You need your deployment to match your config, so only way to implement changes is through terraform apply.

RVivekOption: A
Sep 26, 2022

A-- is required to deploy the the changed count B- Not required C-- checked in my Lab for the count change it worked with out init D Not required

SunraykOption: A
May 12, 2022

It should be A as the plan will show you what will change and then you can confirm the apply

Sunrayk
May 12, 2022

Actually no, it should be C as the config has changed. https://www.terraform.io/cli/commands/init

vikramvlr
Dec 14, 2022

initialize is used to refer the plug-ins

ParthasarathiOption: C
May 9, 2022

It should be C as the configuration file is changed

Maaran07
May 20, 2022

Configuration change don't require init

leonelferrariOption: A
Jun 21, 2022

A is correct

wangchungOption: A
May 22, 2022

D? Its like throughout all these questions for this exam the answers are often not just wrong, but the obvious wrong one. A

stalk98Option: A
Jun 6, 2022

A is the answer

Power123Option: A
Mar 31, 2023

A is correct

090200fOption: A
Jul 14, 2024

A: run an apply is correct ans