HashiCorp TA-003-P Practice Exams
Last updated on Apr 07,2025- Exam Code: TA-003-P
- Exam Name: HashiCorp Certified: Terraform Associate (003)
- Certification Provider: HashiCorp
- Latest update: Apr 07,2025
You add a new resource to an existing Terraform configuration, but do not update the version constraint in the configuration. The existing and new resources use the same provider. The working contains a .terraform.lock, hc1 file.
How will Terraform choose which version of the provider to use?
- A . Terraform will use the version recorded in your lock file
- B . Terraform will use the latest version of the provider for the new resource and the version recorded in the lock file to manage existing resources
- C . Terraform will check your state file to determine the provider version to use
- D . Terraform will use the latest version of the provider available at the time you provision your new resource
What information does the public Terraform Module Registry automatically expose about published modules?
- A . Required input variables
- B . Optional inputs variables and default values
- C . Outputs
- D . All of the above
- E . None of the above
Which of the following methods, used to provision resources into a public cloud, demonstrates the concept of infrastructure as code?
- A . curl commands manually run from a terminal
- B . A sequence of REST requests you pass to a public cloud API endpoint Most Voted
- C . A script that contains a series of public cloud CLI commands
- D . A series of commands you enter into a public cloud console
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.
What is the name of the default file where Terraform stores the state?
Type your answer in the field provided. The text field is not case-sensitive and all variations of the correct answer are accepted.
- A . Terraform.tfstate
You have deployed a new webapp with a public IP address on a cloud provider. However, you did not create any outputs for your code.
What is the best method to quickly find the IP address of the resource you deployed?
- A . In a new folder, use the terraform_remote_state data source to load in the state file, then write an output for each resource that you find the state file
- B . Run terraform state list to find the name of the resource, then terraform state show to find the attributes including public IP address
- C . Run terraform output ip_address to view the result
- D . Run terraform destroy then terraform apply and look for the IP address in stdout
Which of the following is not a way to trigger terraform destroy?
- A . Using the destroy command with auto-approve.
- B . Passing –destroy at the end of a plan request.
- C . Running terraform destroy from the correct directory and then typing yes when prompted in the CLI.
Which of the following module source paths does not specify a remote module?
- A . Source = “module/consul’’
- B . Source = ‘’githhub.comicrop/example’’
- C . Source =’’[email protected]:hasicrop/example.git’’
- D . Source = ‘’hasicrop/consul/aws’’
Which of the following module source paths does not specify a remote module?
- A . Source = “module/consul’’
- B . Source = ‘’githhub.comicrop/example’’
- C . Source =’’[email protected]:hasicrop/example.git’’
- D . Source = ‘’hasicrop/consul/aws’’