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
    :May 11, 2024

HashiCorp HashiCorp Certifications TA-002-P Questions & Answers

  • Question 31:

    A terraform apply can not___________infrastructure.

    A. import

    B. provision

    C. destroy

    D. change

  • Question 32:

    If a Terraform creation-time provisioner fails, what will occur by default?

    A. The resource will not be affected, but the provisioner will need to be applied again

    B. The resource will be destroyed

    C. The resource will be marked as "tainted"

    D. Nothing, provisioners will not show errors in the command line

  • Question 33:

    You've used Terraform to deploy a virtual machine and a database. You want to replace this virtual machine instance with an identical one without affecting the database. What is the best way to achieve this using Terraform?

    A. Use the Terraform taint command targeting the VMs then run Terraform plan and Terraform apply

    B. Delete the Terraform VM resources from your Terraform code then run Terraform plan and terraform apply

    C. Use the terraform apply command targeting the VM resources only

    D. Use the terraform state rm command to remove the VM from state file

  • Question 34:

    Which one is the right way to import a local module names consul?

    A. module "consul" { source = "consul"}

    B. module "consul" { source = "./consul"}

    C. module "consul" { source = "../consul"}

    D. module "consul" { source = "module/consul"}

  • Question 35:

    You have to initialize a Terraform backend before it can be configured.

    A. True

    B. False

  • Question 36:

    Where can Terraform not load a provider from?

    A. Plugins directory

    B. Provider plugin cache

    C. Official HashrCorp distribution on releases, hashicorp.com

    D. Source code

  • Question 37:

    Which task does teraform init not perform?

    A. Sources any modules and copies the configuration locally

    B. Validates all required variables are present

    C. Connects to the backend

    D. Sources all providers present in the configuration and ensures they are downloaded and available locally

  • Question 38:

    What does terraform refresh modify?

    A. Your cloud infrastructure

    B. Your Terraform plan

    C. Your state file

    D. Your Terraform configuration

  • Question 39:

    You have written a terraform IaC script which was working till yesterday , but is giving some vague error from today , which you are unable to understand . You want more detailed logs that could potentially help you troubleshoot the issue , and understand the root cause. What can you do to enable this setting? Please note , you are using terraform OSS.

    A. Terraform OSS can push all its logs to a syslog endpoint. As such, you have to set up the syslog sink, and enable TF_LOG_PATH env variable to the syslog endpoint and all logs will automatically start streaming.

    B. Detailed logs are not available in terraform OSS, except the crash message. You need to upgrade to terraform enterprise for this point.

    C. Enable the TF_LOG_PATH to the log sink file location, and logging output will automatically be stored there.

    D. Enable TF_LOG to the log level DEBUG, and then set TF_LOG_PATH to the log sink file location. Terraform debug logs will be dumped to the sink path, even in terraform OSS.

  • Question 40:

    Your risk management organization requires that new AWS S3 buckets must be private and encrypted at rest. How can Terraform Enterprise automatically and proactively enforce this security control?

    A. With a Sentinel policy, which runs before every apply

    B. By adding variables to each TFE workspace to ensure these settings are always enabled

    C. With an S3 module with proper settings for buckets

    D. Auditing cloud storage buckets with a vulnerability scanning tool

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.