HashiCorp TA-003-P Practice Exams
Last updated on Oct 22,2026- Exam Code: TA-003-P
- Exam Name: HashiCorp Certified: Terraform Associate (003)
- Certification Provider: HashiCorp
- Latest update: Oct 22,2026
You have multiple team members collaborating on infrastructure as code (IaC) using Terraform, and want to apply formatting standards for readability.
How can you format Terraform HCL (HashiCorp Configuration Language) code according to standard Terraform style convention?
- A . Run the terraform fmt command during the code linting phase of your CI/CD process Most Voted
- B . Designate one person in each team to review and format everyone’s code
- C . Manually apply two spaces indentation and align equal sign "=" characters in every Terraform file (*.tf)
- D . Write a shell script to transform Terraform files using tools such as AWK, Python, and sed
You can access state stored with the local backend by using terraform_remote_state data source.
- A . True
- B . False
Which of these statements about HCP Terraform/Terraform Cloud workspaces is false?
- A . They can securely store cloud credentials.
- B . They have role-based access controls.
- C . Plans and applies can be triggered via version control system integrations.
- D . You must use the CLI to switch between workspaces.
Which command lets you experiment with terraform expressions?
- A . Terraform console
- B . Terraform validate
- C . Terraform env
- D . Terraform test
What is the provider for the resource shown in the Exhibit?
resource "aws_vpc" "main" {
name = "test"
}
- A . VPC
- B . test
- C . main
- D . aws
If a module declares a variable with a default, that variable must also be defined within the module.
- A . True
- B . False
Which of the following is not a valid Terraform variable type?
- A . list
- B . array
- C . nap
- D . string
How does Terraform determine dependencies between resources?
- A . Terraform requires resource dependencies to be defined as modules and sourced in order
- B . Terraform automatically builds a resource graph based on resources provisioners, special meta-parameters, and the stale file (if present}
- C . Terraform requires resources in a configuration to be listed m the order they will be created to determine dependencies
- D . Terraform requires all dependencies between resources to be specified using the depends_on parameter
You have provisioned some virtual machines (VMs) on Google Cloud Platform (GCP) using the gcloud command line tool. However, you are standardizing with Terraform and want to manage these VMs using Terraform instead.
What are the two things you must do to achieve this? Choose two correct answers.
- A . Run the terraform Import-gcp command
- B . Write Terraform configuration for the existing VMs
- C . Use the terraform import command for the existing VMs
- D . Provision new VMs using Terraform with the same VM names
Where can Terraform not load a provider from?
- A . Plugins directory
- B . Provider plugin chance
- C . Official HashCrop Distribution on releases.hashcrop.com
- D . Source code