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 331:

    The terraform init command is always safe to run multiple times, to bring the working directory up to date with changes in the configuration. Though subsequent runs may give errors, this command will never delete your existing configuration or state.

    A. False

    B. True

  • Question 332:

    Which of the following best describes the default local backend?

    A. The local backend is where Terraform Enterprise stores logs to be processed by an log collector.

    B. The local backend stores state on the local filesystem, locks the state using system APIs, and performs operations locally.

    C. The local backend is the directory where resources deployed by Terraform have direct access to in order to update their current state.

    D. The local backend is how Terraform connects to public cloud services, such as AWS, Azure, or GCP.

  • Question 333:

    What is the default backend for Terraform?

    A. consul

    B. gcs

    C. local

    D. etcd

  • Question 334:

    You have created a custom variable definition file testing.tfvars. How will you use it for provisioning infrastructure?

    A. terraform apply-var-state-file ="testing.tfvars"

    B. terraform plan-var-file="testing.tfvar"

    C. terraform apply-var-file="testing.tfvars"

    D. terraform apply var-file="testing.tfvars"

  • Question 335:

    Which of the following Terraform files should be ignored by Git when committing code to a repo? (select Three)

    A. Files named exactly terraform.tfvars or terraform.tfvars.json.

    B. Any files with names ending in .auto.tfvars or .auto.tfvars.json.

    C. input.tf

    D. terraform.tfstate

    E. output.tf

  • Question 336:

    Which of the following command can be used to view the specified version constraints for all providers used in the current configuration.

    A. terraform providers

    B. terraform state show

    C. terraform provider

    D. terraform plan

  • Question 337:

    terraform refresh will update the state file?

    A. True

    B. False

  • Question 338:

    Which one of the following command will rewrite Terraform configuration files to a canonical format and style.

    A. terraform graph-h

    B. terraform init

    C. terraform graph

    D. terraform fmt

  • Question 339:

    What is the command you can use to set an environment variable named "var1"of type String?

    A. export TF_VAR_VAR1

    B. set TF_VAR_var1

    C. variable "var1" { type = "string"}

    D. export TF_VAR_var1

  • Question 340:

    You want to use different AMI images for different regions and for the purpose you have defined following code block.

    1.variable "images"

    2.{

    3.

    type = "map"

    4.

    5.

    default = {

    6.

    us-east-1 = "image-1234"

    7.

    us-west-2 = "image-4567"

    8.

    us-west-1 = "image-4589"

    9.

    }

    10.}

    What of the following approaches needs to be followed in order to select image-4589?

    A. var.images["us-west-1"]

    B. var.images[3]

    C. var.images[2]

    D. lookup(var.images["us-west-1"]

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.