How can you format Terraform HCL (HashiCorp Configuration Language) code according to standard Terraform style convention?

You have multiple team members collaborating on infrastructure as code (IaC) using Terraform, and want to apply formatting standards for readability. How can you format Terraform HCL (HashiCorp Configuration Language) code according to standard Terraform style convention?A . Run the terraform fmt command during the code linting phase of your...

March 19, 2022 No Comments READ MORE +

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

What is the name assigned by Terraform to reference this resource? A . compute_instanceB . mainC . googleD . testView AnswerAnswer: B

March 18, 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...

March 18, 2022 1 Comment READ MORE +

Terraform provisioners can be added to any resource block.

Terraform provisioners can be added to any resource block.A . TrueB . FalseView AnswerAnswer: A

March 18, 2022 No Comments READ MORE +

Which of the following would achieve this?

You want to know from which paths Terraform is loading providers referenced in your Terraform configuration (files). You need to enable debug messages to find this out. Which of the following would achieve this?A . Set the environment variable TF_LOG=TRACEB . Set verbose logging for each provider in your Terraform...

March 18, 2022 No Comments READ MORE +

What is the best method to quickly find the IP address of the resource you deployed?

You have deployed a new webapp with a public IP address on a clod provider. However, you did not create any outputs for your code. What is the best method to quickly find the IP address of the resource you deployed?A . Run terraform output ip_address to view the resultB...

March 18, 2022 4 Comments READ MORE +

Which of the following commands would you use first?

You run a local-exec provisioner in a null resource called null_resource.run_script and realize that you need to rerun the script. Which of the following commands would you use first?A . terraform taint null_resource.run_scriptB . terraform apply -target=null_resource.run_scriptC . terraform validate null_resource.run_scriptD . terraform plan -target=null_resource.run_scriptView AnswerAnswer: A

March 18, 2022 No Comments READ MORE +

How is terraform import run?

How is terraform import run?A . As a part of terraform initB . As a part of terraform planC . As a part of terraform refreshD . By an explicit callE . All of the aboveView AnswerAnswer: B

March 18, 2022 No Comments READ MORE +

How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?

How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?A . Only Terraform Cloud organization owners can set workspace variables on VCS connected workspacesB . Commit a change to the VCS working directory and branch that the Terraform Cloud...

March 18, 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 . splitB . joinC . sliceD . chompView AnswerAnswer: C Explanation: Reference: https://www.terraform.io/docs/language/functions/chomp.html

March 18, 2022 No Comments READ MORE +