If a module declares a variable with a default, that variable must also be defined within the module.

If a module declares a variable with a default, that variable must also be defined within the module.A . True B. FalseView AnswerAnswer: B

October 1, 2022 No Comments READ MORE +

If a module uses a local variable, you can expose that value with a terraform output.

If a module uses a local variable, you can expose that value with a terraform output.A . True B. FalseView AnswerAnswer: A Explanation: Output values are like function return values. Reference: https://www.terraform.io/docs/language/values/locals.html https://www.terraform.io/docs/language/values/outputs.html

October 1, 2022 No Comments READ MORE +

How is the Terraform remote backend different than other state backends such as S3, Consul, etc.?

How is the Terraform remote backend different than other state backends such as S3, Consul, etc.?A . It can execute Terraform runs on dedicated infrastructure on premises or in Terraform Cloud B. It doesn't show the output of a terraform apply locally C. It is only available to paying customers...

October 1, 2022 No Comments READ MORE +

How would you solve this using infrastructure as code?

You have recently started a new job at a retailer as an engineer. As part of this new role, you have been tasked with evaluating multiple outages that occurred during peak shopping time during the holiday season. Your investigation found that the team is manually deploying new compute instances and...

October 1, 2022 No Comments READ MORE +

Which of the following is available only in Terraform Enterprise or Cloud workspaces and not in Terraform CLI?

Which of the following is available only in Terraform Enterprise or Cloud workspaces and not in Terraform CLI?A . Secure variable storage B. Support for multiple cloud providers C. Dry runs with terraform plan D. Using the workspace as a data sourceView AnswerAnswer: A Explanation: Reference: https://www.terraform.io/docs/language/providers/configuration.html

September 30, 2022 No Comments READ MORE +

Terraform and Terraform providers must use the same major version number in a single configuration.

Terraform and Terraform providers must use the same major version number in a single configuration.A . True B. FalseView AnswerAnswer: B Explanation: https://www.terraform.io/language/expressions/version-constraints#terraform-core-and-provider-versions

September 30, 2022 No Comments READ MORE +

What is not processed when running a terraform refresh?

What is not processed when running a terraform refresh?A . State file B. Configuration file C. Credentials D. Cloud providerView AnswerAnswer: B Explanation: "The terraform refresh command reads the current settings from all managed remote objects and updates the Terraform state to match."

September 30, 2022 No Comments READ MORE +

Where in your Terraform configuration do you specify a state backend?

Where in your Terraform configuration do you specify a state backend?A . The terraform block B. The resource block C. The provider block D. The datasource blockView AnswerAnswer: A Explanation: Backends are configured with a nested backend block within the top-level terraform block. Reference: https://www.terraform.io/docs/language/settings/backends/configuration.html https://www.terraform.io/language/settings/backends/configuration#using-a-backend-block

September 30, 2022 No Comments READ MORE +

In contrast to Terraform Open Source, when working with Terraform Enterprise and Cloud Workspaces, conceptually you could think about them as completely separate working directories.

In contrast to Terraform Open Source, when working with Terraform Enterprise and Cloud Workspaces, conceptually you could think about them as completely separate working directories.A . True B. FalseView AnswerAnswer: A Explanation: https://www.terraform.io/cloud-docs/workspaces "When run locally, Terraform manages each collection of infrastructure with a persistent working directory, which contains a...

September 29, 2022 No Comments READ MORE +

Which of the following is not a valid string function in Terraform?

Which of the following is not a valid string function in Terraform?A . split B. join C. slice D. chompView AnswerAnswer: C Explanation: https://www.terraform.io/language/functions

September 29, 2022 No Comments READ MORE +