HashiCorp Terraform-Associate-004 - HashiCorp Certified: Terraform Associate (004) (HCTA0-004)
Total 299 questions
You want to know from which paths Terraform is loading providers referenced in your Terraform configuration (* files). You need to enable additional logging messages to find this out. Which of the following would achieve this?
Which argument can you set on a module block to prevent Terraform from updating the module’s configuration during an init or get operation?
Why would you use the -replace flag for terraform apply?
How can a ticket-based system slow down infrastructure provisioning and limit the ability to scale? Choose two correct answers.
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?
Running terraform fmt without any flags in a directory with Terraform configuration files will check the formatting of those files, but will never change their contents.
You can configure multiple cloud blocks in your Terraform configuration to connect your workspace to both HCP Terraform and your Terraform Enterprise instance.
Exhibit:
module "network" {
source = "terraform-google-modules/network/google"
version = "~> 11.0"
}
What version of the source module does Terraform allow with the module block shown in the exhibit?
Define the purpose of state in Terraform.
