121. You have decided to create a new Terraform workspace to deploy a development environment.
What is the difference between these workspaces?
A. It has its own state file
B. It pulls in a different terraform.tfvars file
C. It uses a different branch of code
D. It uses a different backend
Answer
A
122. Any user can publish modules to the public Terraform Module Registry.
A. True
B. False
Answer
A
123. Which of these commands makes your code more human readable?
A. terraform validate
B. terraform output
C. terraform plan
D. terraform fmt
Answer
D
124. Infrastructure as Code (IaC) can be stored in a version control system along with application code.
A. True
B. False
Answer
A
125. Select the command that doesn’t cause Terraform to refresh its state.
A. terraform apply
B. terraform destroy
C. terraform plan
D. terraform state list
Answer
D
126. Sentinel policy-as-code is available in Terraform Enterprise.
A. True
B. False
Answer
A
127. Before you can use Terraform’s remote backend, you must first execute terraform init.
A. True
B. False
Answer
A
128. Which two steps are required to provision new infrastructure in the Terraform workflow? (Choose two.)
A. Plan
B. Apply
C. Import
D. Init
E. Validate
Answer
B, D
129. Which of the fallowing commands would you use to access all of the attributes and details of a resource managed by Terraform?
A. terraform state list
B. terraform state show
C. terraform get
D. terraform state list
Answer
B
130. How would you be able to reference an attribute from the vsphere_datacenter data source for use with the datacenter_id argument within the vsphere_folder resource in the following configuration?
data "vsphere_datacenter" "dc" {}
resource "vsphere_folder" "parent" {
path = "Production"
type = "vm"
datacenter_id = ________________
}
A. data.dc.id
B. data.vsphere_datacenter.dc
C. vsphere_datacenter.dc.id
D. data.vsphere_datacenter.dc.id
Answer
D