Free TA-002-P Exam Braindumps

Pass your HashiCorp Certified: Terraform Associate exam with these free Questions and Answers

Page 17 of 19
QUESTION 76

- (Exam Topic 1)
You have recently started a new job at a retailer as an engineer. As part of this new role, you have been tasked with evaluating multiple outages that occurred during peak shopping time during the holiday season. Your investigation found that the team is manually deploying new compute instances and configuring each compute instance manually. This has led to inconsistent configuration between each compute instance.
How would you solve this using infrastructure as code?

  1. A. Implement a ticketing workflow that makes engineers submit a ticket before manually provisioning and configuring a resource
  2. B. Implement a checklist that engineers can follow when configuring compute instances
  3. C. Replace the compute instance type with a larger version to reduce the number of required deployments
  4. D. Implement a provisioning pipeline that deploys infrastructure configurations committed to your version control system following code reviews

Correct Answer: D

QUESTION 77

- (Exam Topic 4)
From the answers below, select the advantages of using Infrastructure as Code.

  1. A. Provide a codified workflow to develop customer-facing applications.
  2. B. Safely test modifications using a "dry run" before applying any actual changes.
  3. C. Easily integrate with application workflows (GitLab Actions, Azure DevOps, CI/CD tools).
  4. D. Easily change and update existing infrastructure.
  5. E. Provide reusable modules for easy sharing and collaboration.

Correct Answer: BCDE
Infrastructure as Code is not used to develop applications, but it can be used to help deploy or provision those applications to a public cloud provider or on-premises infrastructure.
All of the others are benefits to using Infrastructure as Code over the traditional way of managing infrastructure, regardless if it's public cloud or on-premises.

QUESTION 78

- (Exam Topic 4)
The Terraform CLI will print output values from a child module after running terraform apply.

  1. A. True
  2. B. False

Correct Answer: A

QUESTION 79

- (Exam Topic 3)
Hanah is writing a terraform configuration with nested modules, there are multiple places where she has to use the same conditional expression but she wants to avoid repeating the same values or expressions multiple times in the configuration,. What is a better approach to dealing with this?

  1. A. Expressions
  2. B. Local Values
  3. C. Variables
  4. D. Functions

Correct Answer: B
https://www.terraform.io/docs/configuration/locals.html

QUESTION 80

- (Exam Topic 3)
Complete the following sentence:
For local state, the workspaces are stored directly in a ______.

  1. A. a file called terraform.tfstate.backup
  2. B. directory called terraform.workspaces.tfstate
  3. C. a file called terraform.tfstate
  4. D. directory called terraform.tfstate.d

Correct Answer: D
For local state, Terraform stores the workspace states in a directory called terraform.tfstate.d. https://www.terraform.io/docs/state/workspaces.html#workspace-internals

Page 17 of 19

Post your Comments and Discuss HashiCorp TA-002-P exam with other Community members: