Free VA-002-P Exam Braindumps (page: 27)

Page 27 of 51

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.



Which of the following is considered a Terraform plugin?

  1. Terraform logic
  2. Terraform language
  3. Terraform tooling
  4. Terraform provider

Answer(s): D

Explanation:

Terraform is built on a plugin-based architecture. All providers and provisioners that are used in Terraform configurations are plugins, even the core types such as AWS and Heroku. Users of Terraform are able to write new plugins in order to support new functionality in Terraform.



What happens when a terraform apply command is executed?

  1. applies the changes required in the target infrastructure in order to reach the desired configuration
  2. creates the execution plan for the deployment of resources
  3. reconciles the state Terraform knows about with the real-world infrastructure
  4. the backend is initialized and the working directory is prepped

Answer(s): A

Explanation:

The terraform apply command is used to apply the changes required to reach the desired state of the configuration, or the pre-determined set of actions generated by a terraform plan execution plan.



Page 27 of 51



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

Bruno commented on October 10, 2023
PDF is Vault, EXM is Teraform.
UNITED STATES
upvote