HashiCorp Terraform Associate 003 - HashiCorp Certified: Terraform Associate (003) Exam
Page: 2 / 19
Total 93 questions
Question #6 (Topic: Exam A)
A resource block is shown in the Exhibit section of this page.

How would you reference the attribute name of this resource in HCL?

How would you reference the attribute name of this resource in HCL?
A. data.kubernetes_namespace.name
B. kubernetes_namespace.example.name
C. kubernetes_namespace.test.name
D. resource.kubernetes_namespace.example.name
Answer: B
Question #7 (Topic: Exam A)
Which argument(s) are required when declaring a Terraform variable?
A. type
B. default
C. description
D. All of the above
E. None of the above
Answer: E
Question #8 (Topic: Exam A)
terraform apply is failing with the following error. What next step should you take to determine the root cause of the problem?
Error loading state: AccessDenied: Access Denied status code: 403, request id: 288766CE5CCA24A0, host id: web.example.com
Error loading state: AccessDenied: Access Denied status code: 403, request id: 288766CE5CCA24A0, host id: web.example.com
A. Run terraform login to reauthenticate with the provider.
B. Review /var/log/terraform.log for error messages.
C. Review syslog for Terraform error messages.
D. Set TF_LOG=DEBUG.
Answer: D
Question #9 (Topic: Exam A)
Which Terraform command checks that your configuration syntax is correct?
A. terraform show
B. terraform init
C. terraform fmt
D. terraform validate
Answer: D
Question #10 (Topic: Exam A)
How does the HCP Terraform/Terraform Cloud integration differ from backends such as S3, Consul, etc.?
A. It can execute Terraform runs on dedicated infrastructure in HCP Terraform/Terraform Cloud.
B. It doesn’t show the output of a terraform apply locally.
C. It is only available to paying customers.
D. All of the above.
Answer: A