If writing Terraform code that adheres to the Terraform style conventions, how would you properly indent each nesting level compared to the one above it?

If writing Terraform code that adheres to the Terraform style conventions, how would you properly indent each nesting level compared to the one above it?A . With four spaces B. With a tab C. With three spaces D. With two spacesView AnswerAnswer: D Explanation: https://www.terraform.io/language/syntax/style#style-conventions

October 5, 2022 No Comments READ MORE +

terraform validate validates the syntax of Terraform files.

terraform validate validates the syntax of Terraform files.A . True B. FalseView AnswerAnswer: A Explanation: https://www.terraform.io/cli/commands/validate The terraform validate command validates the syntax and arguments of the Terraform configuration files. Reference: https://www.terraform.io/docs/cli/code/index.html

October 5, 2022 No Comments READ MORE +

What resource meta-parameter can you use to make sure Terraform respects the dependency?

CORRECT TEXT FILL BLANK You need to specify a dependency manually. What resource meta-parameter can you use to make sure Terraform respects the dependency? Type your answer in the field provided. The text field is not case-sensitive and all variations of the correct answer are accepted.View AnswerAnswer: depends_on

October 5, 2022 No Comments READ MORE +

Why would you use the terraform taint command?

Why would you use the terraform taint command?A . When you want to force Terraform to destroy a resource on the next apply B. When you want to force Terraform to destroy and recreate a resource on the next apply C. When you want Terraform to ignore a resource on...

October 5, 2022 No Comments READ MORE +

Which of the following is not a valid Terraform collection type?

Which of the following is not a valid Terraform collection type?A . list B. map C. tree D. setView AnswerAnswer: C Explanation: https://www.terraform.io/language/expressions/type-constraints#collection-types

October 4, 2022 No Comments READ MORE +

What is one disadvantage of using dynamic blocks in Terraform?

What is one disadvantage of using dynamic blocks in Terraform?A . They cannot be used to loop through a list of values B. Dynamic blocks can construct repeatable nested blocks C. They make configuration harder to read and understand D. Terraform will run more slowlyView AnswerAnswer: C Explanation: "Overuse of...

October 4, 2022 No Comments READ MORE +

When using Terraform to deploy resources into Azure, which scenarios are true regarding state files? (Choose two.)

When using Terraform to deploy resources into Azure, which scenarios are true regarding state files? (Choose two.)A . When a change is made to the resources via the Azure Cloud Console, the changes are recorded in a new state file B. When a change is made to the resources via...

October 4, 2022 No Comments READ MORE +

When does terraform apply reflect changes in the cloud environment?

When does terraform apply reflect changes in the cloud environment?A . Immediately B. However long it takes the resource provider to fulfill the request C. After updating the state file D. Based on the value provided to the -refresh command line argument E. None of the aboveView AnswerAnswer: B

October 4, 2022 No Comments READ MORE +

How can you protect sensitive data stored in Terraform state files?

Your security team scanned some Terraform workspaces and found secrets stored in a plaintext in state files. How can you protect sensitive data stored in Terraform state files?A . Delete the state file every time you run Terraform B. Store the state in an encrypted backend C. Edit your state...

October 4, 2022 No Comments READ MORE +

What is the name of the default file where Terraform stores the state?

CORRECT TEXT FILL BLANK What is the name of the default file where Terraform stores the state? Type your answer in the field provided. The text field is not case-sensitive and all variations of the correct answer are accepted.View AnswerAnswer: terraform.tfstate "This state is stored by default in a local...

October 4, 2022 No Comments READ MORE +