HashiCorp Terraform-Associate-004 - HashiCorp Certified: Terraform Associate (004) (HCTA0-004)
Total 385 questions
You have two separate Terraform configurations:
Configuration A provisions a virtual network and subnets.
Configuration B provisions compute resources that must be attached to those subnets.
In Configuration B, you have a terraform_remote_state data source configured to read Configuration A’s local state file. When running terraform plan for Configuration B in a CI/CD pipeline, Terraform fails because the state file cannot be found and is not accessible to the pipeline runtime.
What is the best solution to reliably access the state data from Configuration A in this scenario?
You much initialize your working directory before running terraform validate.
What does Terraform not reference when running a terraform apply -refresh-only ?
What is the primary purpose of Infrastructure as Code (IaC)?
A resource block is shown in the Exhibit space of this page. What is the Terraform resource name of that resource block?
Which syntax check returns an error when you run terraform validate?
What does Terraform use the .terraform.lock.hc1 file for?
A senior admin accidentally deleted some of your cloud instances. What will Terraform do when you run terraform apply?
When using a remote backend or terraform Cloud integration, where does Terraform save resource sate?
You are working on some new application features and you want to spin up a copy of your production deployment to perform some quick tests. In order to avoid having to configure a new state backend, what open source Terraform feature would allow you create multiple states but still be associated with your current code?
