TA-002-P Dumps

TA-002-P Free Practice Test

HashiCorp TA-002-P: HashiCorp Certified: Terraform Associate

QUESTION 16

- (Exam Topic 3)
You can migrate the Terraform backend but only if there are no resources currently being managed.

Correct Answer: A
If you need to migrate to another backend, such as Terraform Cloud, so you can continue managing it. By migrating your Terraform state, you can hand off infrastructure without de-provisioning anything.
https://www.terraform.io/docs/cloud/migrate/index.html

QUESTION 17

- (Exam Topic 3)
* 1. resource "aws_s3_bucket" "example" {
* 2. bucket = "my-test-s3-terraform-bucket"
* 3. …} resource "aws_iam_role" "test_role" {
* 4. name = "test_role"
* 5. …}
Due to the way that the application code is written, the s3 bucket must be created before the test role is created, otherwise there will be a problem. How can you ensure that?

Correct Answer: A
Implicit dependency works only if there is some reference of one resource to another. Explicit dependency is the option here.

QUESTION 18

- (Exam Topic 4)
Terraform Enterprise (also referred to as pTFE) requires what type of backend database for a clustered deployment?

Correct Answer: A

External Services mode stores the majority of the stateful data used by the instance in an external PostgreSQL database and an external S3-compatible endpoint or Azure blob storage. There is still critical data stored on the instance that must be managed with snapshots. Be sure to check the PostgreSQL Requirements for information that needs to be present for Terraform Enterprise to work. This option is best for users with expertise managing PostgreSQL or users that have access to managed PostgreSQL offerings like AWS RDS.

QUESTION 19

- (Exam Topic 4)
In order to reduce the time it takes to provision resources, Terraform uses parallelism. By default, how many resources will Terraform provision concurrently?

Correct Answer: C

QUESTION 20

- (Exam Topic 2)
What allows you to conveniently switch between multiple instances of a single configuration within its single backend?

Correct Answer: D
Named workspaces allow conveniently switching between multiple instances of a single configuration within its single backend. ... A common use for multiple workspaces is to create a parallel, distinct copy of a set of infrastructure in order to test a set of changes before modifying the main production infrastructure.
Workspaces, allowing multiple states to be associated with a single configuration. The configuration still has only one backend, but multiple distinct instances of that configuration to be deployed without configuring a new backend or changing authentication credentials.
https://www.terraform.io/docs/state/workspaces.html