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
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
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...
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...
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
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
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."
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
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...
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