HashiCorp Terraform-Associate-004 - HashiCorp Certified: Terraform Associate (004) (HCTA0-004)
Total 366 questions
What is the Terraform style convention for indenting a nesting level compared to the one above it?
When you use a backend that requires authentication, it is best practice to:
You use a cloud provider account that is shared with other team members. You previously used Terraform to create a load balancer that listens on port 80. After application changes, you updated the Terraform code to change the port to 443.
You run terraform plan and see that the execution plan shows the port changing from 80 to 443 like you intended and step away to grab some coffee.
In the meantime, another team member manually changes the load balancer port to 443 through the cloud provider console before you get back to your desk.
What will happen when you run terraform apply upon returning to your desk?
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?
As a developer, you want to ensure your plugins are up to date with the latest versions. Which Terraform command should you use?
Which Terraform command checks that your configuration syntax is correct?
What does terraform destroy do?
You can define multiple backend blocks in your Terraform configuration to store your state in multiple locations.
Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into stdout.
Exhibit:
module " web_stack " {
source = " ./modules/web_stack "
}
Your configuration defines the module block shown in the exhibit. The web_stack module accepts an input variable named servers. Which of the following changes to the module block sets the servers variable to the value of 3?
