Module variable assignments are inherited from the parent module and do not need to be explicitly set.

Module variable assignments are inherited from the parent module and do not need to be explicitly set.A . True B. FalseView AnswerAnswer: B

September 29, 2022 No Comments READ MORE +

Which of the following is the correct way to pass the value in the variable num_servers into a module with the input servers?

Which of the following is the correct way to pass the value in the variable num_servers into a module with the input servers?A . servers = num_servers B. servers = variable.num_servers C. servers = var(num_servers) D. servers = var.num_serversView AnswerAnswer: D Explanation: "Within the module that declared a variable, its...

September 29, 2022 No Comments READ MORE +

Which of the following is not a key principle of infrastructure as code?

Which of the following is not a key principle of infrastructure as code?A . Versioned infrastructure B. Golden images C. Idempotence D. Self-describing infrastructureView AnswerAnswer: B Explanation: Reference: https://docs.microsoft.com/en-us/azure/devops/learn/what-is-infrastructure-as-code#:~:text=Idempotence%20is%20a%20principle%20of,of%20the%20environment's%20 starting%20state.

September 28, 2022 No Comments READ MORE +

How can terraform plan aid in the development process?

How can terraform plan aid in the development process?A . Validates your expectations against the execution plan without permanently modifying state B. Initializes your working directory containing your Terraform configuration files C. Formats your Terraform configuration files D. Reconciles Terraform’s state against deployed resources and permanently modifies state using the...

September 28, 2022 No Comments READ MORE +

Which option can not be used to keep secrets out of Terraform configuration files?

Which option can not be used to keep secrets out of Terraform configuration files?A . A Terraform provider B. Environment variables C. A -var flag D. secure stringView AnswerAnswer: A Explanation: Reference: https://secrethub.io/blog/secret-management-for-terraform/

September 28, 2022 No Comments READ MORE +

What features stops multiple admins from changing the Terraform state at the same time?

What features stops multiple admins from changing the Terraform state at the same time?A . Version control B. Backend types C. Provider constraints D. State lockingView AnswerAnswer: D Explanation: Somewhat ambiguous question however the key phrase is "feature". You need a remote backend first with a State Locking feature available...

September 28, 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 . True B. FalseView AnswerAnswer: B Explanation: The remote backend can work with either a single remote Terraform Cloud workspace, or with multiple similarly-named remote workspaces (like networking-dev and networking-prod). The workspaces block of the backend configuration determines which...

September 28, 2022 No Comments READ MORE +

A provider configuration block is required in every Terraform configuration.

A provider configuration block is required in every Terraform configuration. Example: A . True B. FalseView AnswerAnswer: B Explanation: Unlike many other objects in the Terraform language, a provider block may be omitted if its contents would otherwise be empty. Terraform assumes an empty default configuration for any provider that...

September 28, 2022 No Comments READ MORE +

Terraform can run on Windows or Linux, but it requires a Server version of the Windows operating system.

Terraform can run on Windows or Linux, but it requires a Server version of the Windows operating system.A . True B. FalseView AnswerAnswer: B Explanation: https://www.terraform.io/downloads

September 28, 2022 No Comments READ MORE +

Which task does terraform init not perform?

Which task does terraform init not perform?A . Sources all providers present in the configuration and ensures they are downloaded and available locally B. Connects to the backend C. Sources any modules and copies the configuration locally D. Validates all required variables are presentView AnswerAnswer: D Explanation: Reference: https://www.terraform.io/docs/cli/commands/init.html

September 27, 2022 No Comments READ MORE +