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

    Which of the following actions are performed during a terraform init?

    A. Initializes downloaded and/or installed providers

    B. Initializes the backend configuration

    C. Provisions the declared resources in your configuration

    D. Download the declared providers which are supported by HashiCorp

  • Question 202:

    Module version is required to reference a module on the Terraform Module Registry.

    A. True

    B. False

  • Question 203:

    Why should secrets not be hard coded into Terraform code? Choose two correct answers

    A. All passwords should be rotated on a quarterly basis.

    B. The Terraform code is copied to the target resources to be applied locally and could expose secrets if a target resource is compromised.

    C. Terraform code is typically stored in version control, as well as copied to the systems from h it's run. Any of those may not have robust security mechanisms.

    D. It makes the code less reusable.

  • Question 204:

    Your developers are facing a lot of problem while writing complex expressions involving difficult interpolations . They have to run the terraform plan every time and check whether there are errors , and also check terraform apply to print the value as a temporary output for debugging purposes. What should be done to avoid this?

    A. Use terraform console command to have an interactive UI with full access to the underlying terraform state to run your interpolations , and debug at real-time.

    B. Add a breakpoint in your code, using the watch keyword , and output the value to console for temporary debugging.

    C. Use terraform zipmap function , it will be able to easily do the interpolations without complex code.

    D. Use terraform console command to have an interactive UI , but you can only use it with local state , and it does not work with remote state.

  • Question 205:

    In terraform, most resource dependencies are handled automatically. Which of the following statements describes best how terraform resource dependencies are handled?

    A. Resource dependencies are identified and maintained in a file called resource.dependencies. Each terraform provider is required to maintain a list of all resource dependencies for the provider and it's included with the plugin during initialization when terraform init is executed. The file is located in the terraform.d folder.

    B. The terraform binary contains a built-in reference map of all defined Terraform resource dependencies. Updates to this dependency map are reflected in terraform versions. To ensure you are working with the latest resource dependency map you much be running the latest version of Terraform.

    C. Resource dependencies are handled automatically by the depends_on meta_argument, which is set to true by default.

    D. Terraform analyses any expressions within a resource block to find references to other objects, and treats those references as implicit ordering requirements when creating, updating, or destroying resources.

  • Question 206:

    Given the Terraform configuration below, in which order will the resources be created?

    1.

    resource "aws_instance" "web_server"

    2.

    {

    3.

    ami = "ami-b374d5a5"

    4.

    instance_type = "t2.micro"

    5.

    }

    6.

    resource "aws_eip" "web_server_ip"

    7.

    {

    8.

    vpc = true instance = aws_instance.web_server.id

    9.

    }

    A. aws_eip will be created first aws_instance will be created second

    B. aws_eip will be created first aws_instance will be created second

    C. Resources will be created simultaneously

    D. aws_instance will be created first aws_eip will be created second

  • Question 207:

    terraform destroy is the only way to remove infrastructure.

    A. True

    B. False

  • Question 208:

    You have a simple Terraform configuration containing one virtual machine (VM) in a cloud provider. You run terraform apply and the VM is created successfully. What will happen if you terraform apply again immediately afterwards without changing any Terraform code?

    A. Terraform will terminate and recreate the VM

    B. Terraform will create another duplicate VM

    C. Terraform will apply the VM to the state file

    D. Nothing

  • Question 209:

    You have created a main.tr Terraform configuration consisting of an application server, a database, and a load balancer. You ran terraform apply and all resources were created successfully. Now you realize that you do not actually need the load balancer so you run terraform destroy without any flags

    What will happen?

    A. Terraform will destroy the application server because it is listed first in the code

    B. Terraform will prompt you to confirm that you want to destroy all the infrastructure

    C. Terraform will destroy the main.tf file

    D. Terraform will prompt you to pick which resource you want to destroy

    E. Terraform will immediately destroy all the infrastructure

  • Question 210:

    Select all features which are exclusive to Terraform Enterprise. (Select Three)

    A. Sentinel

    B. Cost Estimation

    C. Audit Logs

    D. Clustering

    E. SAML/SSO

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.