Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Cisco 300-910 Exam - Topic 4 Question 101 Discussion

Actual exam question for Cisco's 300-910 exam
Question #: 101
Topic #: 4
[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?

Show Suggested Answer Hide Answer
Suggested Answer: A

https://www.terraform.io/docs/cli/commands/validate.html 'use the terraform plan command instead, which includes an implied validation check.'


Contribute your Thoughts:

0/2000 characters
Wenona
3 months ago
I disagree, plan is more about what will change, not just errors.
upvoted 0 times
...
Nickole
3 months ago
I thought it was A, terraform plan? It shows changes too.
upvoted 0 times
...
Donte
4 months ago
No way, it's D for sure. Validate checks for errors in .tf files.
upvoted 0 times
...
Tabetha
4 months ago
I’m surprised terraform check isn’t a thing. Sounds useful!
upvoted 0 times
...
Ligia
4 months ago
Definitely D, terraform validate is the right command!
upvoted 0 times
...
Stephaine
4 months ago
I feel like `terraform check` isn't a real command, so it must be one of the others. I lean towards `terraform validate` too.
upvoted 0 times
...
Jettie
5 months ago
`terraform fmt` is more about formatting the files, right? I don't think it helps with error checking.
upvoted 0 times
...
Ricki
5 months ago
I remember practicing with `terraform plan` for checking changes, but I don't think it specifically validates the .tf files.
upvoted 0 times
...
Christa
5 months ago
I think the command we need is `terraform validate`, but I'm not entirely sure if it checks the existing state as well.
upvoted 0 times
...
Kyoko
5 months ago
I'm a bit confused on this one. I know there are a few different Terraform commands that can check the infrastructure, but I'm not sure which one specifically checks both the .tf files and the existing state. I'll have to think this through a bit more.
upvoted 0 times
...
Isabelle
5 months ago
Definitely go with terraform validate. That's the command that checks the .tf files for errors and validates the configuration before applying any changes.
upvoted 0 times
...
Paola
5 months ago
I'm not sure about this one. I know terraform validate checks the syntax of the .tf files, but I'm not sure if it also checks the existing state. Maybe terraform check is the right answer?
upvoted 0 times
...
Dannie
6 months ago
I think the answer is terraform plan. That command checks the .tf files for errors and also shows the changes that will be made to the infrastructure.
upvoted 0 times
...

Save Cancel