HashiCorp Terraform-Associate-004 - HashiCorp Certified: Terraform Associate (004) (HCTA0-004)
Total 318 questions
What is the purpose of the .terraform directory in a Terraform workspace?
Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.
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
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?
terraform init creates an example main.tf file in the current directory.
Which Terraform collection type should you use to store key/value pairs?
Terraform providers are part of the Terraform core binary.
What is the provider for the resource shown in the Exhibit?
resource " aws_vpc " " main " {
name = " test "
}
What type of block is used to construct a collection of nested configuration blocks?
You should run terraform fnt to rewrite all Terraform configurations within the current working directory to conform to Terraform-style conventions.
