Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 67 discussion

Actual exam question from HashiCorp's Terraform Associate
Question #: 67
Topic #: 1
[All Terraform Associate Questions]

How can terraform plan aid in the development process?

  • A. Validates your expectations against the execution plan without permanently modifying state
  • B. Initializes your working directory containing your Terraform configuration files
  • C. Formats your Terraform configuration files
  • D. Reconciles Terraform's state against deployed resources and permanently modifies state using the current status of deployed resources
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Eltooth
Highly Voted 2 years, 4 months ago
Selected Answer: A
A is correct answer : Validates your expectations against the execution plan without permanently modifying state "The terraform plan command creates an execution plan, which lets you preview the changes that Terraform plans to make to your infrastructure. By default, when Terraform creates a plan it: Reads the current state of any already-existing remote objects to make sure that the Terraform state is up-to-date. Compares the current configuration to the prior state and noting any differences. Proposes a set of change actions that should, if applied, make the remote objects match the configuration." "The plan command alone will not actually carry out the proposed changes, and so you can use this command to check whether the proposed changes match what you expected before you apply the changes or share your changes with your team for broader review. If Terraform detects that no changes are needed to resource instances or to root module output values, terraform plan will report that no actions need to be taken." https://www.terraform.io/cli/commands/plan
upvoted 8 times
...
Molly1994
Most Recent 5 months, 2 weeks ago
A is right. D is wrong. terraform plan did not change anything. It only give you an execution plan that shows your changes.
upvoted 1 times
...
rga91
1 year, 1 month ago
Selected Answer: D
D. When you execute a Terraform Plan, a refresh is produced and the state is modified. Easy example: you have created a Virtual Machine using Terraform and then you manually deleted using for example the AWS console. In the state, it will appear that Virtual Machine exists, but after running Terraform plan, it will detect no longer exists, and it will update the state. You can try it yourself. It is a very simple test. PD: the only way to avoid this refresh, is using the flag -refresh=false in terraform plan, but since it does not say anything about it, this is not a option
upvoted 1 times
...
Ni33
1 year, 6 months ago
Selected Answer: A
AAAAAAAAAAAAA
upvoted 1 times
...
InformationOverload
1 year, 10 months ago
Selected Answer: A
Its A, no question.
upvoted 4 times
...
chimons
1 year, 11 months ago
Selected Answer: A
A. Validates your expectations against the execution plan without permanently modifying state Terraform's plan command is used to create an execution plan that outlines the steps that Terraform will take to reach your desired infrastructure state. It allows you to preview and validate the changes that will be made to your infrastructure before actually making those changes. This can be helpful in the development process because it allows you to see exactly what will be changed and ensure that it aligns with your expectations before you apply those changes.
upvoted 3 times
...
lxgywil
1 year, 11 months ago
Selected Answer: D
It's D. `terraform plan` reads the current state of any already-existing remote objects to MAKE SURE that the Terraform state is up-to-date. `-refresh-only` - creates a plan whose goal is ONLY to update the Terraform state and any root module output values to match changes made to remote objects outside of Terraform. `-refresh=false` - disables the DEFAULT behavior of synchronizing the Terraform state with remote objects before checking for configuration changes. Reference: https://developer.hashicorp.com/terraform/cli/commands/plan
upvoted 2 times
raf314
1 year, 6 months ago
Your answer (D) is wrong... Terraform plan does not modify the state plan, which is what D states.
upvoted 2 times
...
MadMarc
1 year, 8 months ago
D. Reconciles Terraform's state against deployed resources and permanently modifies state using the current status of deployed resources Terraform plan does not, by any means, modify the state file permanently. You could run tf plan a hundred times and it will show you the same differences. The correct answer, and the only logical answer possible, is A.
upvoted 2 times
...
...
eduvar4
2 years, 1 month ago
Selected Answer: A
https://developer.hashicorp.com/terraform/cli/commands/plan
upvoted 2 times
...
tf_user
2 years, 2 months ago
Selected Answer: A
A for sure
upvoted 1 times
...
Ahmad_Terraform
2 years, 4 months ago
Validates your expectations
upvoted 1 times
...
CHRIS12722222
2 years, 5 months ago
A looks good
upvoted 1 times
...
Zam88
2 years, 5 months ago
A correct.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...