HashiCorp Certified: Terraform Associate (003) (HCTA0-003) Questions and Answers
Question 65
Which backend does the Terraform CU use by default?
Options:
A.
Depends on the cloud provider configured
B.
HTTP
C.
Remote
D.
Terraform Cloud
E.
Local
Answer:
E
Explanation:
This is the backend that the Terraform CLI uses by default, unless you specify a different backend in your configuration. The local backend stores the state file in a local file named terraform.tfstate, which can be used to track and manage the state of your infrastructure.
Question 66
Which of the following arguments are required when declaring a Terraform output?
Options:
A.
value
B.
description
C.
default
D.
sensitive
Answer:
A
Explanation:
When declaring a Terraform output, the value argument is required. Outputs are a way to extract information from Terraform-managed infrastructure, and the value argument specifies what data will be outputted. While other arguments like description and sensitive can provide additional context or security around the output, value is the only mandatory argument needed to define an output.References = The requirement of the value argument for outputs is specified in Terraform's official documentation, which provides guidelines on defining and using outputs in Terraform configurations.
Question 67
Terraform configuration can only import modules from the public registry.
Options:
A.
True
B.
False
Answer:
B
Explanation:
Terraform configuration can import modules from various sources, not only from the public registry. Modules can be sourced from local file paths, Git repositories, HTTP URLs, Mercurial repositories, S3 buckets, and GCS buckets. Terraform supports a number of common conventions and syntaxes for specifying module sources, as documented in the [Module Sources] page. References = [Module Sources]