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 228 discussion

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

What does running a terraform plan do?

  • A. Imports all of your existing cloud provider resources to the state file
  • B. Compares the state file to your Terraform code and determines if any changes need to be made
  • C. Imports all of your existing cloud provider resources to your Terraform configuration file
  • D. Compares your Terraform code and local state file to the remote state file in a cloud provider and determines if any changes need to be made
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
6169891
3 weeks, 1 day ago
Selected Answer: D
terraform plan includes a refresh which compare the state with the real world Reads the current state of any already-existing remote objects to make sure that the Terraform state is up-to-date.
upvoted 1 times
...
SilentH
7 months ago
Selected Answer: D
Examtopics, please fire whoever you had answer these questions! Almost every single answer is wrong.
upvoted 2 times
...
tbhtp
1 year, 7 months ago
Selected Answer: B
B. Compares the state file to your Terraform code and determines if any changes need to be made. The terraform plan command is used to create an execution plan, which shows you the changes that will be made to your infrastructure based on the current Terraform configuration and the current state file. It allows you to review the changes before actually applying them, helping you understand the impact of your changes and catch any unintended modifications before they happen.
upvoted 3 times
...
camps
1 year, 7 months ago
Selected Answer: B
B. Compares the state file to your Terraform code and determines if any changes need to be made Running a terraform plan command performs a comparison between your Terraform configuration files and the current state file. It then generates an execution plan that shows the differences between the desired state (defined in the configuration) and the actual state (represented by the state file). This plan outlines the actions (create, update, or delete) that Terraform will take to reconcile the differences and achieve the desired state when the terraform apply command is executed.
upvoted 1 times
...
micropbl4
1 year, 7 months ago
Selected Answer: B
B is correct
upvoted 2 times
...
Ravi528
1 year, 7 months ago
Selected Answer: B
B is correct,
upvoted 2 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 ...