Exam Details

  • Exam Code
    :TA-002-P
  • Exam Name
    :HashiCorp Certified: Terraform Associate
  • Certification
    :HashiCorp Certifications
  • Vendor
    :HashiCorp
  • Total Questions
    :449 Q&As
  • Last Updated
    :Dec 19, 2024

HashiCorp HashiCorp Certifications TA-002-P Questions & Answers

  • Question 151:

    How does Terraform determine dependencies between resources?

    A. Terraform automatically builds a resource graph based on resources, provisioners, special meta-parameters, and the state file, if present.

    B. Terraform requires all dependencies between resources to be specified using the depends_on parameter

    C. Terraform requires resources in a configuration to be listed in the order they will be created to determine dependencies

    D. Terraform requires resource dependencies to be defined as modules and sourced in order

  • Question 152:

    Which Terraform command will check and report errors within modules, attribute names, and value types to make sure they are syntactically valid and internally consistent?

    A. terraform validate

    B. terraform format

    C. terraform fmt

    D. terraform show

  • Question 153:

    A variable az has the following default value. What will be the datatype of the variable?

    az=["us-west-1a","us-east-1a"]

    A. Object

    B. List

    C. Map

    D. String

  • Question 154:

    While attempting to deploy resources into your cloud provider using Terraform. you begin to see some odd behavior and experience sluggish responses. In order to troubleshoot you decide to turn on Terraform debugging.

    Which environment variables must be configured to make Terraform's logging more verbose?

    A. TF_10G_PATM

    B. TF_LOG

    C. TF_10G_LEVEL

    D. TF.LOG.FUE

  • Question 155:

    John is writing a module and within the module, there are multiple places where he has to use the same conditional expression but he wants to avoid repeating the same values or expressions multiple times in a configuration,. What is a better approach to dealing with this?

    A. Local Values

    B. Expressions

    C. Functions

    D. Variables

  • Question 156:

    Given the below resource configuration-resource "aws_instance" "web" { # ... count = 4 }

    What does the terraform resource address aws_instance.web refer to?

    A. It refers to all 4 web instances , together , for further individual segregation , indexing is required , with a 0 based index.

    B. It refers to the last web EC2 instance , as by default , if no index is provided , the last / N-1 index is used.

    C. It refers to the first web EC2 instance out of the 4 ,as by default , if no index is provided , the first / 0th index is used.

    D. The above will result in a syntax error , as it is not syntactically correct . Resources defined using count , can only be referenced using indexes.

  • Question 157:

    True or False? By default, Terraform destroy will prompt for confirmation before proceeding.

    A. False

    B. True

  • Question 158:

    Your organization has moved to AWS and has manually deployed infrastructure using the console. Recently, a decision has been made to standardize on Terraform for all deployments moving forward.

    What can you do to ensure that all existing is managed by Terraform moving forward without interruption to existing services?

    A. Submit a ticket to AWS and ask them to export the state of all existing resources and use terraform import to import them into the state file.

    B. Delete the existing resources and recreate them using new a Terraform configuration so Terraform can manage them moving forward.

    C. Resources that are manually deployed in the AWS console cannot be imported by Terraform.

    D. Using terraform import, import the existing infrastructure into your Terraform state.

  • Question 159:

    Which of the following statements best describes the Terraform list(...) type?

    A. a collection of values where each is identified by a string label.

    B. a sequence of values identified by consecutive whole numbers starting with zero.

    C. a collection of unique values that do not have any secondary identifiers or ordering.

    D. a collection of named attributes that each have their own type.

  • Question 160:

    What is a downside to using the Vault provider to read secrets from Vault?

    A. Secrets are persisted to the state file and plans.

    B. Terraform and Vault must be running on the same version.

    C. Terraform and Vault must be running on the same physical host.

    D. Terraform requires a unique auth method to work with Vault.

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only HashiCorp exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your TA-002-P exam preparations and HashiCorp certification application, do not hesitate to visit our Vcedump.com to find your solutions here.