What is the name assigned by Terraform to reference this resource?

What is the name assigned by Terraform to reference this resource? A . dev B. azurerm_resource_group C. azurerm D. testView AnswerAnswer: A

September 29, 2022 No Comments READ MORE +

You should store secret data in the same version control repository as your Terraform configuration.

You should store secret data in the same version control repository as your Terraform configuration.A . True B. FalseView AnswerAnswer: B Explanation: Reference: https://blog.gruntwork.io/a-comprehensive-guide-to-managing-secrets-in-your-terraform-code- 1d586955ace1

September 29, 2022 No Comments READ MORE +

What command should be used to tell Terraform to no longer manage the resource?

A fellow developer on your team is asking for some help in refactoring their Terraform code. As part of their application’s architecture, they are going to tear down an existing deployment managed by Terraform and deploy new. However, there is a server resource named aws_instance.ubuntu[1] they would like to keep...

September 29, 2022 No Comments READ MORE +

A Terraform provisioner must be nested inside a resource configuration block.

A Terraform provisioner must be nested inside a resource configuration block.A . True B. FalseView AnswerAnswer: A Explanation: Most provisioners require access to the remote resource via SSH or WinRM, and expect a nested connection block with details about how to connect. Reference: https://www.terraform.io/docs/language/resources/provisioners/connection.html

September 29, 2022 No Comments READ MORE +

Which statement describes a goal of infrastructure as code?

Which statement describes a goal of infrastructure as code?A . An abstraction from vendor specific APIs B. Write once, run anywhere C. A pipeline process to test and deliver software D. The programmatic configuration of resourcesView AnswerAnswer: D Explanation: The purpose of infrastructure as code is to enable developers or...

September 29, 2022 No Comments READ MORE +

When running the command terraform taint against a managed resource you want to force recreation upon, Terraform will immediately destroy and recreate the resource.

When running the command terraform taint against a managed resource you want to force recreation upon, Terraform will immediately destroy and recreate the resource.A . True B. FalseView AnswerAnswer: B Explanation: "The terraform taint command informs Terraform that a particular object has become degraded or damaged. Terraform represents this by...

September 29, 2022 No Comments READ MORE +

Terraform variables and outputs that set the "description" argument will store that description in the state file.

Terraform variables and outputs that set the "description" argument will store that description in the state file.A . True B. FalseView AnswerAnswer: B Explanation: Reference: https://www.terraform.io/docs/language/values/outputs.html

September 29, 2022 No Comments READ MORE +

A terraform apply can not _________ infrastructure.

A terraform apply can not _________ infrastructure.A . change B. destroy C. provision D. importView AnswerAnswer: D Explanation: https://www.educative.io/answers/what-is-the-command-to-destroy-infrastructure-in-terraform

September 29, 2022 No Comments READ MORE +

Terraform provisioners that require authentication can use the ______ block.

Terraform provisioners that require authentication can use the ______ block.A . connection B. credentials C. secrets D. sshView AnswerAnswer: A Explanation: https://www.terraform.io/language/resources/provisioners/connection "Most provisioners require access to the remote resource via SSH or WinRM and expect a nested connection block with details about how to connect." "Connection blocks don't take...

September 29, 2022 No Comments READ MORE +

Where does the Terraform local backend store its state?

Where does the Terraform local backend store its state?A . In the /tmp directory B. In the terraform.tfvars file C. In the terraform.tfstate file D. In the user's .terraformrc fileView AnswerAnswer: C Explanation: https://www.terraform.io/language/state The local backend stores state on the local filesystem, locks that state using system APIs, and...

September 29, 2022 No Comments READ MORE +