Exam Details

  • Exam Code
    :VA-002-P
  • Exam Name
    :HashiCorp Certified: Vault Associate
  • Certification
    :HashiCorp Certifications
  • Vendor
    :HashiCorp
  • Total Questions
    :200 Q&As
  • Last Updated
    :May 09, 2024

HashiCorp HashiCorp Certifications VA-002-P Questions & Answers

  • Question 21:

    Complete the following sentence:

    The terraform state command can be used to ____

    A. view the entire state file

    B. modify the current state, such as removing items

    C. refresh the existing state

    D. there is no such command

  • Question 22:

    A user creates three workspaces from the command line - prod, dev, and test. Which of the following commands will the user run to switch to the dev workspace?

    A. terraform workspace select dev

    B. terraform workspace -switch dev

    C. terraform workspace dev

    D. terraform workspace switch dev

  • Question 23:

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

    A. 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.

    B. 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.

    C. 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.

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

  • Question 24:

    A user has created a module called "my_test_module" and committed it to GitHub. Over time, several commits have been made with updates to the module, each tagged in GitHub with an incremental version number. Which of the following lines would be required in a module configuration block in terraform to select tagged version v1.0.4?

    A. source = "git::https://wpexpertsupport.com/my_test_module.git#tag=v1.0.4"

    B. source = "git::https://wpexpertsupport.com/my_test_module.git@tag=v1.0.4"

    C. source = "git::https://wpexpertsupport.com/my_test_module.git?ref=v1.0.4"

    D. source = "git::https://wpexpertsupport.com/my_test_module.gitandref=v1.0.4"

  • Question 25:

    What is the result of the following terraform function call? index(["a", "b", "c"], "c") A. 1

    B. true

    C. 2

    D. 0

  • Question 26:

    The following is a snippet from a Terraform configuration file:

    1.

    provider "aws" {

    2.

    region = "us-east-1"

    3.

    }

    4.

    provider "aws" {

    5.

    region = "us-west-1"

    6.

    }

    which, when validated, results in the following error:

    1.

    Error: Duplicate provider configuration

    2.

    3.

    on main.tf line 5:

    4.

    5: provider "aws" {

    5.

    6.

    A default provider configuration for "aws" was already given at

    7.

    main.tf:1,1-15. If multiple configurations are required, set the "______"

    8.

    argument for alternative configurations.

    Fill in the blank in the error message with the correct string from the list below.

    A. label

    B. version

    C. alias

    D. multi

  • Question 27:

    When using providers that require the retrieval of data, such as the HashiCorp Vault provider, in what phase does Terraform actually retrieve the data required?

    A. terraform apply

    B. terraform plan

    C. terraform init

    D. terraform delete

  • Question 28:

    A user has created three workspaces using the command line - prod, dev, and test. The user wants to create a fourth workspace named stage. Which command will the user execute to accomplish this?

    A. terraform workspace -new stage

    B. terraform workspace -create stage

    C. terraform workspace create stage

    D. terraform workspace new stage

  • Question 29:

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

    A. Cassandra

    B. MSSQL

    C. PostgreSQL

    D. MySQL

  • Question 30:

    Which of the following terraform subcommands could be used to remove the lock on the state for the current configuration?

    A. unlock

    B. Removing the lock on a state file is not possible

    C. force-unlock

    D. state-unlock

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 VA-002-P exam preparations and HashiCorp certification application, do not hesitate to visit our Vcedump.com to find your solutions here.