HashiCorp Terraform-Associate-004 - HashiCorp Certified: Terraform Associate (004) (HCTA0-004)
How could you 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?
If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform Init.
You cannot install third party plugins using terraform init.
What is the purpose of the terraform.lock.hcl file in Terraform?
Which provider authentication method prevents credentials from being stored in the state file?
You have a simple Terraform configuration containing one virtual machine (VM) in a cloud provider. You run terraform apply and the VM is created successfully. What will happen if you terraform apply again immediately afterward without changing any Terraform code?
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 3 correct responses)
Exhibit:
data "vsphere_datacenter" "dc" {}
resource "vsphere_folder" "parent" {
path = "Production"
type = "vm"
datacenter_id = _________
}
You want to pass the id of the vsphere_datacenter data source to the datacenter_id argument of the vsphere_folder resource. Which reference would you use?
Select the command that doesn’t cause Terraform to refresh its state.
Before you can use a new backend or HCP Terraform/Terraform Cloud integration, you must first execute terraform init.
