Terraform validate reports syntax check errors from which of the following scenarios?
Terraform validate reports syntax check errors from which of the following scenarios?A . Code contains tabs indentation instead of spaces B. There is missing value for a variable C. The state files does not match the current infrastructure D. None of the aboveView AnswerAnswer: B Explanation: The terraform validate command...
What is terraform refresh intended to detect?
What is terraform refresh intended to detect?A . Terraform configuration code changes B. Empty state files C. State file drift D. Corrupt state filesView AnswerAnswer: C Explanation: "The terraform refresh command reads the current settings from all managed remote objects and updates the Terraform state to match. Warning: This command...
What should you do to delete the newly-created VM with Terraform?
You have never used Terraform before and would like to test it out using a shared team account for a cloud provider. The shared team account already contains 15 virtual machines (VM). You develop a Terraform configuration containing one VM, perform terraform apply, and see that your VM was created...
terraform init initializes a sample main.tf file in the current directory.
terraform init initializes a sample main.tf file in the current directory.A . True B. FalseView AnswerAnswer: B Explanation: Reference: https://www.terraform.io/docs/cli/commands/init.html
Which of these options is the most secure place to store secrets foe connecting to a Terraform remote backend?
Which of these options is the most secure place to store secrets foe connecting to a Terraform remote backend?A . Defined in Environment variables B. Inside the backend block within the Terraform configuration C. Defined in a connection configuration outside of Terraform D. None of aboveView AnswerAnswer: A Explanation: https://www.terraform.io/language/settings/backends/configuration#credentials-and-sensitive-data...
What meta-argument do you need to configure in a resource block to deploy the resource to the “us-west-2” AWS region?
You need to deploy resources into two different cloud regions in the same Terraform configuration. To do that, you declare multiple provider configurations as follows: What meta-argument do you need to configure in a resource block to deploy the resource to the “us-west-2” AWS region?A . alias = west B....
What command does Terraform require the first time you run it within a configuration directory?
What command does Terraform require the first time you run it within a configuration directory?A . terraform import B. terraform init C. terraform plan D. terraform workspaceView AnswerAnswer: B Explanation: terraform init command is used to initialize a working directory containing Terraform configuration files. Reference: https://www.terraform.io/docs/cli/commands/init.html
What information does the public Terraform Module Registry automatically expose about published modules?
What information does the public Terraform Module Registry automatically expose about published modules?A . Required input variables B. Optional inputs variables and default values C. Outputs D. All of the above E. None of the aboveView AnswerAnswer: D Explanation: https://www.terraform.io/registry/modules/publish "The registry extracts information about the module from the module's...
Which of the following is allowed as a Terraform variable name?
Which of the following is allowed as a Terraform variable name?A . count B. name C. source D. versionView AnswerAnswer: B Explanation: "The name of a variable can be any valid identifier except the following: source, version, providers, count, for_each, lifecycle, depends_on, locals." https://www.terraform.io/language/values/variables
HashiCorp Configuration Language (HCL) supports user-defined functions.
HashiCorp Configuration Language (HCL) supports user-defined functions.A . True B. FalseView AnswerAnswer: B Explanation: https://www.terraform.io/language/functions The Terraform language does not support user-defined functions, and so only the functions built into the language are available for use