What is not processed when running a terraform refresh?

What is not processed when running a terraform refresh?A . State fileB . Configuration fileC . CredentialsD . Cloud providerView AnswerAnswer: C,D Explanation: Reference: https://www.terraform.io/docs/cli/commands/refresh.html

March 12, 2022 No Comments READ MORE +

The terraform.tfstate file always matches your currently built infrastructure.

The terraform.tfstate file always matches your currently built infrastructure.A . TrueB . FalseView AnswerAnswer: B Explanation: Reference: https://www.terraform.io/docs/language/state/index.html

March 12, 2022 No Comments READ MORE +

A Terraform provider is not responsible for:

A Terraform provider is not responsible for:A . Understanding API interactions with some serviceB . Provisioning infrastructure in multiple cloudsC . Exposing resources and data sources based on an APID . Managing actions to take based on resource differencesView AnswerAnswer: D

March 11, 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 TerraformB . Store the state in an encrypted backendC . Edit your state...

March 11, 2022 No Comments READ MORE +

One remote backend configuration always maps to a single remote workspace.

One remote backend configuration always maps to a single remote workspace.A . TrueB . FalseView AnswerAnswer: A Explanation: Reference: https://www.terraform.io/docs/language/settings/backends/remote.html

March 10, 2022 No Comments READ MORE +

Which options will produce a list of the IDs?

You have declared a variable called var.list which is a list of objects that all have an attribute id. Which options will produce a list of the IDs? (Choose two.)A . { for o in var.list : o => o.id }B . var.list[*].idC . [ var.list[*].id ]D . [ for...

March 10, 2022 1 Comment READ MORE +

Which argument(s) is (are) required when declaring a Terraform variable?

Which argument(s) is (are) required when declaring a Terraform variable?A . typeB . defaultC . descriptionD . All of the aboveE . None of the aboveView AnswerAnswer: B Explanation: The variable declaration can also include a default argument. Reference: https://www.terraform.io/docs/language/values/variables.html

March 10, 2022 No Comments READ MORE +

In Terraform 0.13 and above, outside of the required_providers block, Terraform configurations always refer to providers by their local names.

In Terraform 0.13 and above, outside of the required_providers block, Terraform configurations always refer to providers by their local names.A . TrueB . FalseView AnswerAnswer: A Explanation: Outside of the required_providers block, Terraform configurations always refer to providers by their local names. Explanation: Reference: https://www.terraform.io/docs/language/providers/requirements.html

March 10, 2022 No Comments READ MORE +

terraform validate validates the syntax of Terraform files.

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

March 10, 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 applyB . When you want to force Terraform to destroy and recreate a resource on the next applyC . When you want Terraform to ignore a resource on...

March 10, 2022 No Comments READ MORE +