| Exam Name: | HashiCorp Certified: Terraform Associate (004) (HCTA0-004) | ||
| Exam Code: | Terraform-Associate-004 Dumps | ||
| Vendor: | HashiCorp | Certification: | Terraform Associate |
| Questions: | 366 Q&A's | Shared By: | jace |
You must use different Terraform commands depending on the cloud provider you use.
Exhibit:
Root module configuration:
output " vnet_id " {
value = module.my_network.vnet_id
}
Error:
Error: Reference to undeclared output value
on main.tf line 12, in output " vnet_id " :
12: value = module.my_network.vnet_id
You are using a networking module in your Terraform configuration with the name my_network. Your root module includes the configuration shown. When you run terraform validate, you get the error shown. Which option would successfully retrieve this value from your networking module?
You are creating a reusable Terraform configuration and want to include an optional billing_dept tag so your Finance team can track team-specific spending on resources. Which of the following billing_dept variable declarations will achieve this?
A resource block is shown in the Exhibit section of this page. How would you reference the attribute name of this resource in HCL?