Leads4pass > HashiCorp > HashiCorp Certifications > TA-002-P > TA-002-P Online Practice Questions and Answers

TA-002-P Online Practice Questions and Answers

Questions 4

Only the user that generated a plan may apply it.

A. True

B. False

Buy Now
Questions 5

Terraform variables and outputs that set the "description" argument will store that description in the state file.

A. True

B. False

Buy Now
Questions 6

Why would you use the terraform taint command?

A. When you want to force Terraform to destroy a resource on the next apply

B. When you want to force Terraform to destroy and recreate a resource on the next apply

C. When you want Terraform to ignore a resource on the next apply

D. When you want Terraform to destroy all the infrastructure in your workspace

Buy Now
Questions 7

While using generic git repository as a module source, which of the below options allows terraform to select a specific version or tag instead of selecting the HEAD.

A. Append ref argument as module "vpc" { source = "git::https://example.com/vpc.git?ref=v1.2.0"}

B. Append version argument as module "vpc" { source = "git::https://example.com/vpc.git?version=v1.2.0"}

C. Append ref argument as module "vpc" { source = "git::https://example.com/vpc.git#ref=v1.2.0"}

D. By default, Terraform will clone and use the default branch (referenced by HEAD) in the selected repository and you can not override this.

Buy Now
Questions 8

You have already set TF_LOG = DEBUG to enable debug log. Now you want to always write the log to the directory you're currently running terraform from. what should you do to achieve this.

A. Run the command export TF_LOG_FILE=./terraform.log.

B. Run the command export TF_LOG_PATH=./terraform.log.

C. Run the command export TF_DEBUG_PATH=./terraform.log.

D. No explicit action required. Terraform will take care of this as you have enable TF_LOG.

Buy Now
Questions 9

You have modified your Terraform configuration to fix a typo in the Terraform ID of a resource from aws_security_group.http to aws_security_group.http

Which of the following commands would you run to update the ID in state without destroying the resource?

A. terraform refresh

B. terraform apply

C. terraform mv aws-security-group.htp aws-security-group.http

Buy Now
Questions 10

What is the result of the following terraform function call?

A. hello

B. what?

C. goodbye

Buy Now
Questions 11

Which provider authentication method prevents credentials from being stored in the state file?

A. Using environment variables

B. Specifying the login credentials in the provider block

C. Setting credentials as Terraform variables

D. None of the above

Buy Now
Questions 12

A terraform apply can not___________infrastructure.

A. import

B. provision

C. destroy

D. change

Buy Now
Questions 13

Which of the following is not an advantage of using infrastructure as code operations?

A. Self-service infrastructure deployment

B. Troubleshoot via a Linux diff command

C. Public cloud console configuration workflows

D. Modify a count parameter to scale resources

E. API driven workflows

Buy Now
Exam Code: TA-002-P
Exam Name: HashiCorp Certified: Terraform Associate
Last Update: Jun 18, 2026
Questions: 449
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99