Free VA-002-P Exam Braindumps

Which auth method is ideal for machine to machine authentication?

  1. GitHub
  2. UserPass
  3. AppRole
  4. Okta

Answer(s): C

Explanation:

The ideal method for a machine to machine authentication is AppRole although it's not the only method. The other options are frequently reserved for human access.


Reference:

https://www.hashicorp.com/blog/authenticating-applications-with-vault-approle/



In the example below, where is the value of the DNS record's IP address originating from?
1. resource "aws_route53_record" "www" {
2. zone_id = aws_route53_zone.primary.zone_id
3. name = "www.helloworld.com"
4. type = "A"
5. ttl = "300"
6. records = [module.web_server.instance_ip_addr]
7. }

  1. value of the web_server parameter from the variables.tf file
  2. the output of a module named web_server
  3. the regular expression named module.web_server
  4. by querying the AWS EC2 API to retrieve the IP address

Answer(s): B

Explanation:

In a parent module, outputs of child modules are available in expressions as module.<MODULE NAME>.<OUTPUT NAME>. For example, if a child module named web_server declared an output named instance_ip_addr, you could access that value as module.web_server.instance_ip_addr.



Using multi-cloud and provider-agnostic tools provides which of the following benefits? (select two)

  1. operations teams only need to learn and manage a single tool to manage infrastructure, regardless of where the infrastructure is deployed
  2. slower provisioning speed allows the operations team to catch mistakes before they are applied
  3. can be used across major cloud providers and VM hypervisors
  4. increased risk due to all infrastructure relying on a single tool for management

Answer(s): A,C

Explanation:

Using a tool like Terraform can be advantageous for organizations deploying workloads across multiple public and private cloud environments. Operations teams only need to learn a single tool, single language, and can use the same tooling to enable a DevOps-like experience and workflows.



True or False:
Workspaces provide identical functionality in the open-source, Terraform Cloud, and Enterprise versions of Terraform.

  1. True
  2. False

Answer(s): B

Explanation:

Workspaces, managed with the terraform workspace command, aren't the same thing as Terraform Cloud workspaces.
Terraform Cloud workspaces act more like completely separate working directories.
CLI workspaces(OSS) are just alternate state files.



Given the Terraform configuration below, in which order will the resources be created?
1. resource "aws_instance" "web_server" {
2. ami = "i-abdce12345"
3. instance_type = "t2.micro"
4. }
5. resource "aws_eip" "web_server_ip" {

6. vpc = true
7. instance = aws_instance.web_server.id
8. }

  1. aws_eip will be created first
    aws_instance will be created second
  2. no resources will be created
  3. aws_instance will be created first
    aws_eip will be created second
  4. resources will be created simultaneously

Answer(s): C

Explanation:

The aws_instance will be created first, and then aws_eip will be created second due to the aws_eip's resource dependency of the aws_instance id