ExamGecko
Question list
Search
Search

Question 104 - Terraform Associate 003 discussion

Report
Export

You ate 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 apply so you can validate your infrastructure
Answers
A.
After you run terraform apply so you can validate your infrastructure
B.
Before you run terraform apply so you can validate your provider credentials
Answers
B.
Before you run terraform apply so you can validate your provider credentials
C.
Before you run terraform plan so you can validate your code syntax
Answers
C.
Before you run terraform plan so you can validate your code syntax
D.
After you run terraform plan so you can validate that your state file is consistent with your infrastructure
Answers
D.
After you run terraform plan so you can validate that your state file is consistent with your infrastructure
Suggested answer: C

Explanation:

This is the best time to runterraform validate, as it will check your code for syntax errors, typos, and missing arguments before you attempt to create a plan. The other options are either incorrect or unnecessary.

asked 18/09/2024
Maksim Alpatov
43 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first