Q1. A module block is shown in the Exhibit space of this page. When you use a module block to reference a module from the Terraform Registry such as the one in the example, how do you specify version 1.0.0 of the module?
A.Append ?ref=v1.0.0 argument to the source path.
B. You cannot. Modules stored on the public Terraform Registry do not support versioning.
C. Add a version = '1.0.0' attribute to the module block.
D. Nothing. Modules stored on the public Terraform module Registry always default to version 1.0.0.
Correct Answer: C
Q2. Terraform configuration can only call modules from the public registry.
A.True
B. False
Correct Answer: B
Q3. You want to use API tokens and other secrets within your team's Terraform workspaces. Where does HashiCorp recommend you store these sensitive values? (Pick the 3 correct responses)
A.In an HCP Terraform/Terraform Cloud variable, with the sensitive option checked.
B. In HashiCorp Vault.
C. In a terraform.tfvars file, securely managed and shared with your team.
D. In a terraform.tfvars file, checked into your version control system.
E. In a plaintext document on a shared drive.
Correct Answer: A, B, C
Q4. Which of these actions are forbidden when the Terraform state file is locked? (Pick the 3 correct responses)
A.terraform apply
B. terraform state list
C. terraform destroy
D. terraform fmt
Correct Answer: A, B, C
$ 39
Reviews
There are no reviews yet.