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

Page 28 of 51

Which of the following best describes a Terraform provider?

  1. describes an infrastructure object, such as a virtual network, compute instance, or other components
  2. a container for multiple resources that are used together
  3. serves as a parameter for a Terraform module that allows a module to be customized
  4. a plugin that Terraform uses to translate the API interactions with the service or provider

Answer(s): D

Explanation:

A provider is responsible for understanding API interactions and exposing resources. Providers generally are an IaaS (e.g., Alibaba Cloud, AWS, GCP, Microsoft Azure, OpenStack), PaaS (e.g., Heroku), or SaaS services (e.g., Terraform Cloud, DNSimple, CloudFlare).



What is a downside to using a Terraform provider, such as the Vault provider, to interact with sensitive data, such as reading secrets from Vault?

  1. Terraform and Vault must be running on the same physical host
  2. Terraform and Vault must be running on the same version
  3. Terraform requires a unique auth method to work with Vault
  4. Secrets are persisted to the state file and plans

Answer(s): D

Explanation:

Interacting with Vault from Terraform causes any secrets that you read and write to be persisted in both Terraform's state file and in any generated plan files. For any Terraform module that reads or writes Vault secrets, these files should be treated as sensitive and protected accordingly.



In order to make a Terraform configuration file dynamic and/or reusable, static values should be converted to use what?

  1. regular expressions
  2. module
  3. input parameters
  4. output value

Answer(s): C

Explanation:

Input variables serve as parameters for a Terraform module, allowing aspects of the module to be customized without altering the module's own source code, and allowing modules to be shared between different configurations.



Which Terraform command will force a marked resource to be destroyed and recreated on the next apply?

  1. terraform fmt
  2. terraform destroy
  3. terraform taint
  4. terraform refresh

Answer(s): C

Explanation:

The terraform taint command manually marks a Terraform-managed resource as tainted, forcing it to be destroyed and recreated on the next apply. This command will not modify infrastructure but does modify the state file in order to mark a resource as tainted. Once a resource is marked as tainted, the next plan will show that the resource will be destroyed and recreated. The next terraform apply will

implement this change.



Page 28 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