HashiCorp Certified: Terraform Associate — Question 18
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?
Answer options
- A. Run an apply and confirm the planned changes
- B. Inspect your Terraform state because you want to change it
- C. Reinitialize because your configuration has changed
- D. Inspect all Terraform outputs to make sure they are correct
Correct answer: A
Explanation
The correct action is to run an apply to implement the changes specified in the configuration. Simply inspecting the Terraform state or outputs does not apply the updates, and reinitializing is unnecessary as the configuration has already been saved.