HashiCorp Terraform-Associate-004 - HashiCorp Certified: Terraform Associate (004) (HCTA0-004)
Total 366 questions
Before you can use a remote backend, you must first execute terra-form init.
You have set the TF_LOG_PATH environment variable for Terraform, and you would like to ensure the logs contain all debug-level messages and verbose process logs.
Which action should you take?
Which argument can you use toprevent unexpected updatesto a module ' s configuration when calling Terraform Registry modules?
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 are forbidden actions when the terraform state file is locked? Choose three correct answers.
What is the workflow for deploying new infrastructure with Terraform?
terraform apply is failing with the following error. What next step should you take to determine the root cause of the problem?
Error:
yaml
CopyEdit
Error loading state: AccessDenied: Access Denied
status code: 403, request id: 288766CE5CCA24A0, host id: web.example.com

The Terraform configuration shown in the Exhibit space on this page v/ill create a new AWS instance.
Why does this backend configuration not follow best practices?

What is the purpose of the .terraform directory in a Terraform workspace?
