exam questions

Exam 300-910 All Questions

View all questions & answers for the 300-910 exam

Exam 300-910 topic 1 question 4 discussion

Actual exam question from Cisco's 300-910
Question #: 4
Topic #: 1
[All 300-910 Questions]

A CI/CD pipeline that builds infrastructure components using Terraform must be designed. A step in the pipeline is needed that checks for errors in any of the .tf files in the working directory. It also checks the existing state of the defined infrastructure.
Which command does the pipeline run to accomplish this goal?

  • A. terraform plan
  • B. terraform check
  • C. terraform fmt
  • D. terraform validate
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Koen1978
Highly Voted 2 years, 12 months ago
A is correct. D is not (Validate runs checks that verify whether a configuration is syntactically valid and internally consistent, regardless of any provided variables or existing state)
upvoted 8 times
dead_beef
2 years, 7 months ago
I agree with A. https://www.terraform.io/docs/cli/commands/validate.html "use the terraform plan command instead, which includes an implied validation check."
upvoted 2 times
...
...
JM_Lee
Highly Voted 3 years ago
"D" is correct.
upvoted 5 times
...
Marwan55
Most Recent 7 months, 1 week ago
Selected Answer: A
I agree with A.
upvoted 1 times
...
bluesky2022
1 year, 4 months ago
It's A because it needs to check the state of the infrastructure, too. Otherwise if it was only the .tf file, it was D.
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 ...