Which of the following provider blocks would allow you to do this?

You ate creating a Terraform configuration which needs to make use of multiple providers, one for AWS and one for Datadog. Which of the following provider blocks would allow you to do this? A) B) C) D) A . Option AB . Option BC . Option CD . Option DView...

September 14, 2024No CommentsREAD MORE +

You can reference a resource created with for_each using a Splat ( *) expression.

You can reference a resource created with for_each using a Splat ( *) expression.A . TrueB . FalseView AnswerAnswer: B Explanation: You cannot reference a resource created with for_each using a splat (*) expression, as it will not work with resources that have non-numeric keys. You need to use a...

September 14, 2024No CommentsREAD MORE +

How can you protect that data?

Your security team scanned some Terraform workspaces and found secrets stored in plaintext in state files. How can you protect that data?A . Edit your state file to scrub out the sensitive dataB . Always store your secrets in a secrets.tfvars fileC . Delete the state file every time you...

September 13, 2024No CommentsREAD MORE +

What information does the public Terraform Module Registry automatically expose about published modules?

What information does the public Terraform Module Registry automatically expose about published modules?A . Required input variablesB . Optional inputs variables and default valuesC . OutputsD . All of the aboveE . None of the aboveView AnswerAnswer: D Explanation: The public Terraform Module Registry automatically exposes all the information about...

September 12, 2024No CommentsREAD MORE +

Terraform variable names are saved in the state file.

Terraform variable names are saved in the state file.A . TrueB . FalseView AnswerAnswer: B Explanation: Terraform variable names are not saved in the state file, only their values are. The state file only stores the attributes of the resources and data sources that are managed by Terraform, not the...

September 12, 2024No CommentsREAD MORE +

Once you configure a new Terraform backend with a terraform code block, which command(s) should you use to migrate the state file?

Once you configure a new Terraform backend with a terraform code block, which command(s) should you use to migrate the state file?A . terraform destroy, then terraform applyB . terraform initC . terraform pushD . terraform applyView AnswerAnswer: A Explanation: This command will initialize the new backend and prompt you...

September 12, 2024No CommentsREAD MORE +

Which command should you run to check if all code in a Terraform configuration that references multiple modules is properly formatted without making changes?

Which command should you run to check if all code in a Terraform configuration that references multiple modules is properly formatted without making changes?A . terraform fmt -write-falseB . terraform fmt -list -recursiveC . terraform fmt -check -recursiveD . terraform fmt -checkView AnswerAnswer: C Explanation: This command will check if...

September 12, 2024No CommentsREAD MORE +