Terraform Associate Practice Test practice questions, page 8 of 15, with answer review and explanations.
Question 36
What value does the Terraform Cloud/Terraform Enterprise private module registry provide over the public Terraform Module Registry?
The ability to share modules with public Terraform users and members of Terraform Enterprise Organizations
The ability to tag modules by version or release
The ability to restrict modules to members of Terraform Cloud or Enterprise organizations
The ability to share modules publicly with any user of Terraform
Question 37
Which task does terraform init not perform?
Sources all providers present in the configuration and ensures they are downloaded and available locally
Connects to the backend
Sources any modules and copies the configuration locally
Validates all required variables are present
Question 38
You have declared a variable called var.list which is a list of objects that all have an attribute id. Which options will produce a list of the IDs? (Choose two.)
{ for o in var.list : o => o.id }
var.list[*].id
[ var.list[*].id ]
[ for o in var.list : o.id ]
Question 39
Which argument(s) is (are) required when declaring a Terraform variable?
type
default
description
All of the above
None of the above
Question 40
When using a module block to reference a module stored on the public Terraform Module Registry such as: How do you specify version 1.0.0?
Modules stored on the public Terraform Module Registry do not support versioning
Append ?ref=v1.0.0 argument to the source path
Add version = "1.0.0" attribute to module block
Nothing ג€" modules stored on the public Terraform Module Registry always default to version 1.0.0