HashiCorp Terraform-Associate-004 - HashiCorp Certified: Terraform Associate (004) (HCTA0-004)
Total 318 questions
What is the purpose of state locking in a remote backend?
What type of information can be found on the Terraform Registry when using published modules?
Why does this backend configuration not follow best practices?

You ate making changes to existing Terraform code to add some new infrastructure. When is the best time to run terraform validate?
Terraform encrypts sensitive values stored in your state file.
Which situation will return an error when you run terraform validate?
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?
When you initialize Terraform, where does it cache modules from the public Terraform Registry?
When declaring a variable, setting the sensitive argument to true will prevent the value from being stored in the state file.
If a module declares a variable without a default value, you must pass the value of the variable within the module block when you call the module in your configuration.
