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

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

You are making changes to existing Terraform code to add some new infrastructure.

When is the best time to run terraform validate?

  • A. After you run terraform plan so you can validate that your state file is consistent with your infrastructure
  • B. Before you run terraform plan so you can validate your code syntax
  • C. Before you run terraform apply so you can validate your infrastructure changes
  • D. After you run terraform apply so you can validate that your infrastructure is reflected in your code
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
camps
1 year, 7 months ago
Selected Answer: B
B. Before you run terraform plan so you can validate your code syntax. Running terraform validate before running terraform plan helps catch syntax errors, missing or incorrect argument declarations, and other issues before any changes are made to the infrastructure.
upvoted 2 times
...
micropbl4
1 year, 8 months ago
Selected Answer: B
There's no need to explain. You need to make sure that all code described properly
upvoted 2 times
...
SilentMilli
1 year, 8 months ago
Selected Answer: B
B offcourse
upvoted 3 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 ...