HashiCorp Certified: Terraform Associate (003) Sample Questions:
1. Module variable assignments are inherited from the parent module and you do not need to explicitly set them.
A) False
B) True
2. What does the default "local" Terraform backend store?
A) Terraform binary
B) Provider plugins
C) tfplan files
D) State file
3. You have deployed a new webapp with a public IP address on a cloud provider. However, you did not create any outputs for your code.
What is the best method to quickly find the IP address of the resource you deployed?
A) Run terraform output ip_address to view the result
B) Run terraform state list to find the name of the resource, then terraform state show to find the attributes including public IP address
C) In a new folder, use the terraform_remote_state data source to load in the state file, then write an output for each resource that you find the state file
D) Run terraform destroy then terraform apply and look for the IP address in stdout
4. Which of the following is not a valid Terraform collection type?
A) Tree
B) Map
C) List
D) set
5. You want to know from which paths Terraform is loading providers referenced in your Terraform configuration (* files). You need to enable additional logging messages to find this out.
Which of the following would achieve this?
A) Set the environment variable TF_log_TRACE
B) Set the environment variable TF_LOG_PATH
C) Set verbose for each provider in your Terraform configuration
D) Set the environment variable TF_LOG_TRACE
Solutions:
| Question # 1 Answer: A | Question # 2 Answer: D | Question # 3 Answer: B | Question # 4 Answer: A | Question # 5 Answer: D |
We're so confident of our products that we provide no hassle product exchange.


By Lynn

