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
    :Apr 21, 2024

HashiCorp HashiCorp Certifications VA-002-P Questions & Answers

  • Question 1:

    From the code below, identify the implicit dependency:

    1.

    resource "aws_eip" "public_ip" {

    2.

    vpc = true

    3.

    instance = aws_instance.web_server.id

    4.

    }

    5.

    resource "aws_instance" "web_server" {

    6.

    ami = "ami-2757f631"

    7.

    instance_type = "t2.micro"

    8.

    depends_on = [aws_s3_bucket.company_data]

    9.

    }

    A. The EC2 instance labeled web_server

    B. The EIP with an id of ami-2757f631

    C. The AMI used for the EC2 instance

    D. The S3 bucket labeled company_data

  • Question 2:

    Which statements best describes what the local variable assignment is doing in the following code snippet:

    1.

    variable "subnet_details" {

    2.

    type = list(object({

    3.

    cidr = string

    4.

    subnet_name = string

    5.

    route_table_name = string

    6.

    aznum = number

    7.

    }))

    8.

    }

    9.

    locals {

    10.

    route_tables_all = distinct([for s in var.subnet_details : s.route_table_name ])

    11.

    }

    A. Create a distinct list of route table name objects

    B. Create a map of route table names to subnet names

    C. Create a map of route table names from a list of subnet names

    D. Create a list of route table names eliminating duplicates

  • Question 3:

    Environment variables can be used to set variables. The environment variables must be in the format "____"_. Select the correct prefix string from the following list.

    A. TF_VAR

    B. TF_VAR_NAME

    C. TF_ENV

    D. TF_ENV_VAR

  • Question 4:

    Anyone can publish and share modules on the Terraform Public Module Registry, and meeting the requirements for publishing a module is extremely easy. Select from the following list all valid requirements. (select three)

    A. The registry uses tags to identify module versions. Release tag names must be for the format x.y.z, and can optionally be prefixed with a v.

    B. Module repositories must use this three-part name format, terraform--.

    C. The module must be PCI/HIPPA compliant.

    D. The module must be on GitHub and must be a public repo

  • Question 5:

    What is the result of the following terraform function call? lookup({a="hello", b="goodbye"}, "c", "what?")

    A. goodbye

    B. hello

    C. what?

    D. c

  • Question 6:

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

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

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

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

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

  • Question 7:

    True or False?

    terraform init cannot automatically download Community providers.

    A. False

    B. True

  • Question 8:

    True or False? Each Terraform workspace uses its own state file to manage the infrastructure associated with that particular workspace.

    A. False

    B. True

  • Question 9:

    While Terraform is generally written using the HashiCorp Configuration Language (HCL), what another syntax can Terraform be expressed in?

    A. JSON

    B. XML

    C. TypeScript

    D. YAML

  • Question 10:

    When using constraint expressions to signify a version of a provider, which of the following are valid provider versions that satisfy the expression found in the following code snippet: (select two)

    1.

    terraform {

    2.

    required_providers {

    3.

    aws = "~> 1.2.0"

    4.

    }

    5.

    }

    A. 1.2.9

    B. 1.3.1

    C. 1.3.0

    D. 1.2.3

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.