HashiCorp TA-003-P HashiCorp Certified: Terraform Associate (003) Online Training
HashiCorp TA-003-P Online Training
The questions for TA-003-P were last updated at Feb 16,2025.
- Exam Code: TA-003-P
- Exam Name: HashiCorp Certified: Terraform Associate (003)
- Certification Provider: HashiCorp
- Latest update: Feb 16,2025
What does Terraform use the .terraform.lock.hc1 file for?
- A . There is no such file
- B . Tracking specific provider dependencies
- C . Preventing Terraform runs from occurring
- D . Storing references to workspaces which are locked
Why does this backend configuration not follow best practices?
- A . An alias meta-argument should be included in backend blocks whenever possible
- B . You should use the local enhanced storage backend whenever possible
- C . You should not store credentials in Terraform configuration
- D . The backend configuration should contain multiple credentials so that more than one user can execute terraform plan and terraform apply
Module variable assignments are inherited from the parent module and you do not need to explicitly set them.
- A . True
- B . False
What are some benefits of using Sentinel with Terraform Cloud/Terra form Cloud? Choose three correct answers.
- A . You can enforce a list of approved AWS AMIs
- B . Policy-as-code can enforce security best practices
- C . You can check out and check in cloud access keys
- D . You can restrict specific resource configurations, such as disallowing the use of CIDR=0.0.0.0/0.
- E . Sentinel Policies can be written in HashiCorp Configuration Language (HCL)
What does Terraform not reference when running a terraform apply -refresh-only?
- A . State file
- B . Credentials
- C . Cloud provider
- D . Terraform resource definitions in configuration files
Which of the following is not a valid Terraform variable type?
- A . list
- B . array
- C . nap
- D . string
You decide to move a Terraform state file to Amazon S3 from another location.
You write the code below into a file called backend.tf.
Which command will migrate your current state file to the new S3 remote backend?
- A . terraform state
- B . terraform init
- C . terraform push
- D . terraform refresh
Your DevOps team is currently using the local backend for your Terraform configuration. You would like to move to a remote backend to store the state file in a central location.
Which of the following backends would not work?
- A . Artifactory
- B . Amazon S3
- C . Terraform Cloud
- D . Git
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
As a developer, you want to ensure your plugins are up to date with the latest versions.
Which Terraform command should you use?
- A . terraform refresh -upgrade
- B . terraform apply -upgrade
- C . terraform init -upgrade
- D . terraform providers -upgrade