HashiCorp Terraform-Associate-004 - HashiCorp Certified: Terraform Associate (004) (HCTA0-004)
Total 299 questions
Variables declared within a module are accessible outside of the module.
Which of the following is not a valid string function in Terraform?
What is a key benefit of the Terraform state file?
Terraformrequiresthe Go runtime as a prerequisite for installation.
Exhibit:
resource "aws_instance" "example" {
ami = "ami-0a123456789abcdef"
instance_type = "t3.micro"
}
You are updating a child module with the resource block shown in the exhibit. The public_ip attribute of the resource needs to be accessible to the parent module. How do you meet this requirement?
Which of these ate features of Terraform Cloud? Choose two correct answers.
Which are benefits of migrating from a local state backend to a remote backend? (Pick the 2 correct responses below.)
Terraform configuration (including any module references) can contain only one Terraform provider type.
You have provisioned some virtual machines (VMs) on Google Cloud Platform (GCP) using the gcloud command line tool. However, you are standardizing with Terraform and want to manage these VMs using Terraform instead. What are the two things you must do to achieve this? Choose two correct answers.
Your Terraform configuration declares a variable. You want to enforce that its value meets your specific requirements, and you want to block the Terraform operation if it does not. What should you add to your configuration?
