Exam2pass
0 items Sign In or Register
  • Home
  • IT Exams
  • Guarantee
  • FAQs
  • Reviews
  • Contact Us
  • Demo
Exam2pass > HashiCorp > HashiCorp Certifications > TA-002-P > TA-002-P Online Practice Questions and Answers

TA-002-P Online Practice Questions and Answers

Questions 4

When running the command terraform taint against a managed resource you want to force recreation upon, Terraform will immediately destroy and recreate the resource.

A. True

B. False

Buy Now

Correct Answer: B

"The terraform taint command informs Terraform that a particular object has become degraded or damaged. Terraform represents this by marking the object as "tainted" in the Terraform state, and Terraform will propose to replace it in the next plan you create." FYI-This command is deprecated. For Terraform v0.15.2 and later, we recommend using the-replace option with terraform apply instead. For Terraform v0.15.2 and later, we recommend using the-replace option with terraform apply to force Terraform to replace an object even though there are no configuration changes that would require it. https://www.terraform.io/cli/commands/taint

Questions 5

You have deployed a new webapp with a public IP address on a clod 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. Run terraform output ip_address to view the result

B. 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

C. Run terraform state list to find the name of the resource, then terraform state show to find the attributes including public IP address

D. Run terraform destroy then terraform apply and look for the IP address in stdout

Buy Now

Correct Answer: C

https://www.terraform.io/cli/commands/state/show

Questions 6

By default, a defined provisioner is a creation-time provisioner.

A. True

B. False

Buy Now

Correct Answer: A

https://www.terraform.io/docs/provisioners/index.html

Questions 7

Your manager has instructed you to start using terraform for the entire infra provisioning of the application stack. There are 4 environments ?DEV , QA , UAT , and PROD. The application team has asked for complete segregation between these environments including the backend , state , and also configurations ,since there will be unique resources in different environments . What is the possible way to structure the terraform code to facilitate that.

A. Completely separate the working directories , keep one for each environment . For each working directory , maintain a separate configuration file , variables file , and map to a different backend.

B. Completely separate the working directories , keep one for each environment . For each working directory , maintain a separate configuration file , variables file , and map to the same backend.

C. Implement terraform workspaces , and map each environment with one workspace.

D. Enable remote backend storage . Configure 4 different backend storages , one for each environment.

Buy Now

Correct Answer: A

In particular, organizations commonly want to create a strong separation between multiple deployments of the same infrastructure serving different development stages (e.g. staging vs. production) or different internal teams. In this case, the backend used for each deployment often belongs to that deployment, with different credentials and access controls. Named workspaces are not a suitable isolation mechanism for this scenario. https://www.terraform.io/docs/state/ workspaces.html

Questions 8

You have provisioned some aws resources in your test environment through Terraform for a POC work. After the POC, now you want to destroy the resources but before destroying them you want to check what resources will be getting destroyed through terraform. what are the options of doing that? (Select TWO)

A. Use terraform destroy command

B. This is not possible

C. Use terraform plan command

D. Use terraform plan-destroy command.

Buy Now

Correct Answer: AD

https://learn.hashicorp.com/terraform/getting-started/destroy

Questions 9

In Terraform Enterprise, a workspace can be mapped to how many VCS repos?

A. 5

B. 2

C. 3

D. 1

Buy Now

Correct Answer: D

A workspace can only be configured to a single VCS repo, however, multiple workspaces can use the same repo. https://www.terraform.io/docs/cloud/workspaces/vcs.html

Questions 10

By default, where does Terraform store its state file?

A. Amazon S3 bucket

B. shared directory

C. remotely using Terraform Cloud

D. current working directory

Buy Now

Correct Answer: D

By default, the state file is stored in a local file named "terraform.tfstate", but it can also be stored remotely, which works better in a team environment.

Questions 11

What are some of the problems of how infrastructure was traditionally managed before Infrastructure as Code? (select three)

A. Requests for infrastructure or hardware required a ticket, increasing the time required to deploy applications

B. Traditional deployment methods are not able to meet the demands of the modern business where resources tend to live days to weeks, rather than months to years

C. Traditionally managed infrastructure can't keep up with cyclic or elastic applications

D. Pointing and clicking in a management console is a scalable approach and reduces human error as businesses are moving to a multi-cloud deployment model

Buy Now

Correct Answer: ABC

Businesses are making a transition where traditionally-managed infrastructure can no longer meet the demands of today's businesses. IT organizations are quickly adopting the public cloud, which is predominantly API-driven. To meet customer demands and save costs, application teams are architecting their applications to support a much higher level of elasticity, supporting technology like containers and public cloud resources. These resources may only live for a matter of hours; therefore the traditional method of raising a ticket to request resources is no longer a viable option Pointing and clicking in a management console is NOT scale and increases the change of human error.

Questions 12

While Terraform is generally written using the HashiCorp Configuration Language (HCL), what other syntax can Terraform are expressed in?

A. JSON

B. YAML

C. TypeScript

D. XML

Buy Now

Correct Answer: A

The constructs in the Terraform language can also be expressed in JSON syntax, which is harder for humans to read and edit but easier to generate and parse programmatically.

Questions 13

Which of the below backends support state locking?

A.S3

B. consul

C. azurerm

D. artifactory

Buy Now

Correct Answer: ABC

Exam Code: TA-002-P
Exam Name: HashiCorp Certified: Terraform Associate
Last Update: Jun 24, 2025
Questions: 449

PDF (Q&A)

$45.99
ADD TO CART

VCE

$49.99
ADD TO CART

PDF + VCE

$59.99
ADD TO CART

Exam2Pass----The Most Reliable Exam Preparation Assistance

There are tens of thousands of certification exam dumps provided on the internet. And how to choose the most reliable one among them is the first problem one certification candidate should face. Exam2Pass provide a shot cut to pass the exam and get the certification. If you need help on any questions or any Exam2Pass exam PDF and VCE simulators, customer support team is ready to help at any time when required.

Home | Guarantee & Policy |  Privacy & Policy |  Terms & Conditions |  How to buy |  FAQs |  About Us |  Contact Us |  Demo |  Reviews

2025 Copyright @ exam2pass.com All trademarks are the property of their respective vendors. We are not associated with any of them.