HashiCorp VA-002-P Exam
HashiCorp Certified: Vault Associate (Page 7 )

Updated On: 30-Jan-2026

What are some of the features of Terraform state? (select three)

  1. inspection of cloud resources
  2. increased performance
  3. mapping configuration to real-world resources
  4. determining the correct order to destroy resources

Answer(s): B,C,D

Explanation:

See this page on the purpose of Terraform state and the benefits it provides.



Select the feature below that best completes the sentence:
The following list represents the different types of __________ available in Terraform.
1. max
2. min
3. join
4. replace
5. list
6. length
7. range

  1. named values
  2. backends
  3. functions
  4. data sources

Answer(s): C

Explanation:

The Terraform language includes a number of built-in functions that you can call from within expressions to transform and combine values. The Terraform language does not support user-defined functions, and only the functions built into the language are available for use.



You have been given requirements to create a security group for a new application. Since your organization standardizes on Terraform, you want to add this new security group with the fewest number of lines

of code. What feature could you use to iterate over a list of required tcp ports to add to the new security group?

  1. terraform import
  2. splat expression
  3. dynamic block
  4. dynamic backend

Answer(s): C

Explanation:

A dynamic block acts much like a for expression but produces nested blocks instead of a complex typed value. It iterates over a given complex value and generates a nested block for each element of that complex value.



When using parent/child modules to deploy infrastructure, how would you export value from one module to import into another module?
For example, a module dynamically deploys an application instance or virtual machine, and you need the IP address in another module to configure a related DNS record in order to reach the newly deployed application.

  1. configure an output value in the application module in order to use that value for the DNS module
  2. preconfigure the IP address as a parameter in the DNS module
  3. configure the pertinent provider's configuration with a list of possible IP addresses to use
  4. export the value using terraform export and input the value using terraform input

Answer(s): A

Explanation:

Output values are like the return values of a Terraform module and have several uses such as a child module using those outputs to expose a subset of its resource attributes to a parent module.



From the answers below, select the advantages of using Infrastructure as Code. (select four)

  1. Easily integrate with application workflows (GitLab Actions, Azure DevOps, CI/CD tools)
  2. Safely test modifications using a "dry run" before applying any actual changes
  3. Provide reusable modules for easy sharing and collaboration
  4. Easily change and update existing infrastructure
  5. Provide a codified workflow to develop customer-facing applications

Answer(s): A,B,C,D

Explanation:

Infrastructure as Code is not used to develop applications, but it can be used to help deploy or provision those applications to a public cloud provider or on-premises infrastructure. All of the others are benefits to using Infrastructure as Code over the traditional way of managing infrastructure, regardless if it's public cloud or on-premises.



Viewing page 7 of 41
Viewing questions 31 - 35 out of 200 questions



Post your Comments and Discuss HashiCorp VA-002-P exam prep with other Community members:

Join the VA-002-P Discussion