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 Nov 19,2024.
- Exam Code: TA-003-P
- Exam Name: HashiCorp Certified: Terraform Associate (003)
- Certification Provider: HashiCorp
- Latest update: Nov 19,2024
Module version is required to reference a module on the Terraform Module Registry.
- A . True
- B . False
You ate creating a Terraform configuration which needs to make use of multiple providers, one for AWS and one for Datadog.
Which of the following provider blocks would allow you to do this?
A)
B)
C)
D)
- A . Option A
- B . Option B
- C . Option C
- D . Option D
terraform validate confirms that your infrastructure matches the Terraform state file.
- A . True
- B . False
Which command must you first run before performing further Terraform operations in a working directory?
- A . terraform import
- B . terraform workspace
- C . terraform plan
- D . terraform init
A developer accidentally launched a VM (virtual machine) outside of the Terraform workflow and ended up with two servers with the same name. They don’t know which VM Terraform manages but do have a list of all active VM IDs.
Which of the following methods could you use to discover which instance Terraform manages?
- A . Run terraform state list to find the names of all VMs, then run terraform state show for each of them to find which VM ID Terraform manages
- B . Update the code to include outputs for the ID of all VMs, then run terraform plan to view the outputs
- C . Run terraform taint/code on all the VMs to recreate them
- D . Use terraform refresh/code to find out which IDs are already part of state
When does Sentinel enforce policy logic during a Terraform Cloud run?
- A . Before the plan phase
- B . During the plan phase
- C . Before the apply phase
- D . After the apply phase
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
Which of the following ate advantages of using infrastructure as code (laC) instead of provisioning with a graphical user interface (GUI)? Choose two correct answers.
- A . Lets you version, reuse, and share infrastructure configuration
- B . Provisions the same resources at a lower cost
- C . Secures your credentials
- D . Reduces risk of operator error
- E . Prevents manual modifications to your resources
Outside of the required_providers block, Terraform configurations always refer to providers by their local names.
- A . True
- B . False