Summer Sale - Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70dumps

HCVA0-003 Questions and Answers

Question # 6

Which of the following features in Vault will replicate service tokens between clusters?

A.

Disaster Recovery Replication

B.

Performance Replication

C.

Vault Agent

D.

Integrated Storage

Full Access
Question # 7

Your organization has many applications needing heavy read access to Vault. As these applications integrate with Vault, the primary Vault cluster’s performance is negatively impacted. What feature can you use to scale the cluster and improve performance?

A.

Add additional standby nodes

B.

Enable multiple secrets engines for the applications

C.

Enable control groups

D.

Add performance standby nodes

Full Access
Question # 8

True or False? A token can be renewed up until the max TTL, even if the TTL has been reached.

A.

True

B.

False

Full Access
Question # 9

What is the default value of the VAULT_ADDR environment variable?

A.

http://127.0.0.1:8200

B.

https://vault.example.com:8200

C.

https://127.0.0.1:8200

D.

http://vault.example.com:8200

Full Access
Question # 10

What occurs when a Vault cluster cannot maintain a quorum while using the Integrated Storage backend?

A.

Vault continues to operate in read-only mode until quorum is restored

B.

The cluster becomes unavailable and cannot commit new logs

C.

Vault automatically promotes a standby node to a leader to restore quorum

D.

Vault temporarily switches to local storage until quorum is regained

Full Access
Question # 11

You have ciphertext stored in an Amazon S3 bucket encrypted by the key named prod-customer. Will Vault decrypt this data with the command vault write transit/decrypt/prod-customer ciphertext= " vault:v4:Xa1f9FIJtn13em/Wb7QCsXsU/kCOn7... " given this output?

    $ vault read transit/keys/prod-customer

    Key Value

    --- -----

    ...

    keys map[4:1549347108 5:1549347109 6:1549347110]

    latest_version 6

    min_available_version 0

    min_decryption_version 4

    min_encryption_version 0

Will Vault decrypt this data for you by running the following command?

    $ vault write transit/decrypt/prod-customer ciphertext= " vault:v4:Xa1f9FIJtn13em/Wb7QCsXsU/kCOn7... "

A.

Yes, because the minimum decryption key configuration is set to 4

B.

No, since the latest version of the key is 6

Full Access
Question # 12

You have multiple Kubernetes pods that need frequent access to Vault to retrieve credentials for establishing connectivity to a backend database. You enable the Kubernetes auth method in Vault. What resource do you need to create within Kubernetes to complete this configuration?

A.

Username and password for kubectl

B.

k8s service account token

C.

A Vault token for authentication

D.

An AppRole role_id and secret_id

Full Access
Question # 13

What features are offered by the Vault Agent? (Select three)

A.

Auditing

B.

Templating

C.

Auto-auth

D.

Secret caching

Full Access
Question # 14

You are considering using HCP Vault Dedicated but are concerned about differences between a hosted version and a self-hosted deployment. Which of the following statements is true about HCP Vault Dedicated?

A.

HCP Vault Dedicated provides a similar experience to self-hosted Vault Enterprise because it uses the same Vault binary

B.

HCP Vault Dedicated can be deployed on any cloud provider, including AWS, Azure, and Google Cloud, with full multi-cloud support

C.

HCP Vault Dedicated requires different CLI commands and APIs compared to self-hosted Vault Enterprise

D.

HCP Vault Dedicated is currently limited to a single region and cannot be deployed across multiple regions

Full Access
Question # 15

You are enabling a secrets engine in Vault using the CLI. What subcommands are available when using the vault secrets command? (Select five)

A.

update

B.

migrate

C.

tune

D.

enable

E.

move

F.

disable

G.

list

Full Access
Question # 16

Hanna is working with Vault and has been assigned a namespace called integration, where she stores all her secrets. Hanna configured her application to use the following API request, but the request is failing. What changes below will help Hanna correctly retrieve the secret? (Select two)

$ curl \

--header " X-Vault-Token:hvs.lzrmRe5Y3LMcDRmOttEjWoag " \

--request GET \

https://vault.example.com:8200/v1/secret/data/my-secret

A.

$ curl --header " X-Vault-Token:hvs.lzrmRe5Y3LMcDRmOttEjWoag " --request GET\integration https://vault.example.com:8200/v1/secret/data/my-secret

B.

$ curl --header " X-Vault-Token:hvs.lzrmRe5Y3LMcDRmOttEjWoag " --request GET --namespace " integration " https://vault.example.com:8200/v1/secret/data/my-secret

C.

$ curl --header " X-Vault-Token:hvs.lzrmRe5Y3LMcDRmOttEjWoag " --request GET https://vault.example.com:8200/v1/integration/secret/data/my-secret

D.

$ curl --header " X-Vault-Token:hvs.lzrmRe5Y3LMcDRmOttEjWoag " --header " X-Vault-Namespace:integration " --request GET https://vault.example.com:8200/v1/secret/data/my-secret

Full Access
Question # 17

Julie is a developer who needs to ensure an application can properly renew its lease for AWS credentials it uses to access data in an S3 bucket. Although the application would generally use the API, what is the equivalent CLI command to perform this action?

A.

vault renew aws/roles/s3-read-only/39e6b9a2-296-83d9-2fe0-c11e846bdc99

B.

vault lease renew aws/creds/s3-read-only/39e6b9a2-296-83d9-2fe0-c11e846bdc99

C.

vault lease renew aws/roles/s3-read-only/39e6b9a2-296-83d9-2fe0-c11e846bdc99

D.

vault lease renew aws/creds/s3-read-only

Full Access
Question # 18

Which is a benefit of Vault’s path-based system for policies?

A.

Every path is assigned a unique set of permissions.

B.

Granular control, which separates configuration functions from access while allowing simple policies and wildcard rules.

C.

Allows Vault to be mounted as a file system and accessed using native system commands like cd and mkdir.

D.

All of these are benefits of Vault’s path-based system for policies.

Full Access
Question # 19

When an auth method is disabled all users authenticated via that method lose access.

A.

True

B.

False

Full Access
Question # 20

You have a requirement that an application needs to implement AES encryption.

What parameter must you use to meet this requirement when defining a new key in a Transit secrets engine for this app?

A.

exportable

B.

convergent_encryption

C.

type

D.

name

Full Access
Question # 21

Which is true about Vault authentication responses when using the Vault API?

A.

The Vault API cannot be used for authentication.

B.

The returned tokens are not needed as all API endpoints are unauthenticated.

C.

The returned tokens should be deleted to avoid any use in future requests.

D.

The returned token must be passed in the request header.

Full Access
Question # 22

You can build a high availability Vault cluster with any storage backend.

A.

True

B.

False

Full Access
Question # 23

The Vault CLI can output to formats such as JSON, YAML, and Table.

A.

True

B.

False

Full Access
Question # 24

When using Integrated Storage, which of the following should you do to recover from possible data loss?

A.

Failover to a standby node

B.

Use snapshot

C.

Use audit logs

D.

Use server logs

Full Access
Question # 25

What does the following policy do?

Question # 25

A.

Grants access for each user to a KV folder which shares their id

B.

Grants access to a special system entity folder

C.

Allows a user to read data about the secret endpoint identity

D.

Nothing, this is not a valid policy

Full Access
Question # 26

What artifacts allow you to regenerate a root token after you have revoked it?

Pick the 2 correct responses below.

A.

Access to the OS root user.

B.

Policy with sudo access.

C.

Initial root token.

D.

Unseal keys.

E.

Recovery keys.

Full Access
Question # 27

Data protected by the Vault cryptographic barrier is encrypted with:

A.

A PGP key.

B.

PKI certificates.

C.

The encryption key.

D.

A long-lived token.

Full Access
Question # 28

What is a dynamic secret in HashiCorp Vault?

A.

A secret permanently stored in Vault’s Key/Value storage with multiple versions made available.

B.

A secret you can generate on-demand that is automatically revoked when its time to live expires.

C.

A user password for Vault that each user must rotate every 90 days by default.

D.

A secret that can periodically update its underlying encryption algorithm.

Full Access
Question # 29

If a role is able to read a secret from Vault, but unable to change the values, what capability is missing in the policy?

A.

sudo

B.

list

C.

delete

D.

update

E.

read

Full Access
Question # 30

To make an authenticated request via the Vault HTTP API, which header would you use?

A.

The X-Vault-Token HTTP Header

B.

The x-Vault-Request HTTP Header

C.

The Content-Type HTTP Header

D.

The X-Vault-Namespace HTTP Header

Full Access
Question # 31

You have enabled the database secrets engine at the database/ path and created the readonly role. You run vault read, and the output shown in the exhibit is returned.

Which command renews the given lease?

Exhibit:

$ vault read database/creds/readonly

lease_id database/creds/readonly/fyF5xDomnKeCHNZNQgStwBKD

lease_duration 1h

lease_renewable true

password Ala-ckirtymYaXACplHn

username v-token-readonly-6iRIcGv8tLpu816oblPY-1556567086

A.

vault lease renew database/creds/readonly/fyF5xDomnKeCHNZNQgStwBKD

B.

Leases with the parameter lease_renewable set to true are renewed automatically.

C.

vault lease renew database/creds/readonly/

D.

vault lease renew

Full Access
Question # 32

Security requirements demand that no secrets appear in the shell history. Which command does not meet this requirement?

A.

generate-password | vault kv put secret/password value

B.

vault kv put secret/password value-itsasecret

C.

vault kv put secret/password value=@data.txt

D.

vault kv put secret/password value-SSECRET_VALUE

Full Access
Question # 33

Where does the Vault Agent store its cache?

A.

In a file encrypted using the Vault transit secret engine

B.

In the Vault key/value store

C.

In an unencrypted file

D.

In memory

Full Access
Question # 34

Running the second command in the GUI CLI will succeed.

Question # 34

A.

True

B.

False

Full Access
Question # 35

How would you describe the value of using the Vault transit secrets engine?

A.

Vault has an API that can be programmatically consumed by applications

B.

The transit secrets engine ensures encryption in-transit and at-rest is enforced enterprise wide

C.

Encryption for application data is best handled by a storage system or database engine, while storing encryption keys in Vault

D.

The transit secrets engine relieves the burden of proper encryption/decryption from application developers and pushes the burden onto the operators of Vault

Full Access
Question # 36

An organization wants to authenticate an AWS EC2 virtual machine with Vault to access a dynamic database secret. The only authentication method which they can use in this case is AWS.

A.

True

B.

False

Full Access
Question # 37

Which of the following is a reason to rekey a Vault cluster?

Pick the 2 correct responses below.

A.

A keyholder joins or leaves the organization.

B.

A compliance policy mandates rotating the root key at a regular interval.

C.

Additional Vault nodes are added to a cluster.

D.

Upgrading Vault Community Edition to Vault Enterprise.

E.

The root token is lost.

Full Access
Question # 38

Which of the following features are not available in the Vault Community version?

A.

Cloud KMS auto-unseal

B.

Single sign-on support

C.

Event notifications and filtering

D.

Multi-factor authentication (auth)

E.

Dynamic secrets engines

F.

HSM auto-unseal

Full Access
Question # 39

Before the following command can be run to encrypt data, what (three) commands must be run to enable and configure the transit secrets engine in Vault? (Select three)

text

CollapseWrapCopy

$ vault write transit/encrypt/vendor \

plaintext= " aGFzaGljb3JwIGNlcnRpZmllZA== "

A.

base64 < < < " hashicorp certified "

B.

vault write transit/encrypt/vendor

C.

vault secrets list

D.

vault secrets enable transit

E.

vault write -f transit/keys/vendor

Full Access
Question # 40

Which of the following auth methods is the best choice for human interaction with Vault (as opposed to machine/system authentication)?

A.

Kubernetes

B.

AppRole

C.

TLS

D.

OIDC

Full Access
Question # 41

Which is not a capability that can be used when writing a Vault policy?

A.

delete

B.

modify

C.

create

D.

list

E.

read

F.

update

Full Access
Question # 42

Which auth method is ideal for machine-to-machine authentication?

A.

Okta

B.

UserPass

C.

GitHub

D.

AppRole

Full Access
Question # 43

You are trying to create a new orphan token but receiving a Permission Denied error. What capabilities are required to create this token without using a root token?

A.

write privileges on the path auth/token

B.

write privileges on the path sys/mounts

C.

sudo privileges on the path auth/token/create

D.

sudo privileges on the path sys/mounts/token

Full Access
Question # 44

Which statement best explains the role and usage of storage backends in HashiCorp Vault?

A.

They store Vault’s persistent data, affecting the scalability and performance of managing Vault.

B.

They handle the encryption of all secrets so that Vault remains completely stateless.

C.

They store only ephemeral tokens, ensuring no persistent data is ever saved.

D.

They store only unseal keys, while all secret data remains in Vault’s memory.

Full Access
Question # 45

An application is trying to use a dynamic secret in which the lease has expired. What can be done in order for the application to successfully request data from Vault?

A.

Try the expired secret in hopes it hasn’t been deleted yet

B.

Perform a lease renewal

C.

Request a new secret and associated lease

D.

Request the TTL be extended for the secret lease

Full Access
Question # 46

Select the two default policies created in Vault. (Select two)

A.

root

B.

user

C.

admin

D.

default

E.

base

F.

vault

Full Access
Question # 47

You need to write a Vault operator policy and give the users access to perform administrative actions in Vault. What path is used for Vault backend functions?

A.

/security

B.

/admin

C.

/vault

D.

/system

E.

/sys

F.

/backend

Full Access
Question # 48

Which of the following best describes a token accessor?

A.

A value that describes which clients have access to the attached token

B.

Describes the value associated with the token’s TTL

C.

A token used for clients to access Vault secrets engines

D.

A value that acts as a reference to a token which can be used to perform limited actions against the token

Full Access
Question # 49

Your application cannot manage authentication with Vault, but it can communicate with a local service to retrieve secrets. What solution can enable your app to generate dynamic credentials from Vault?

A.

Vault Proxy with caching feature enabled

B.

Vault Agent with environment variable secret injection

C.

Vault Proxy with Auto-Auth feature enabled

D.

Vault Agent with the templating feature configured

Full Access
Question # 50

After a client has authenticated to Vault, what security feature is used to make all subsequent calls?

A.

ldap

B.

pgp

C.

path

D.

key shard

E.

listener

F.

token

Full Access
Question # 51

Which of the following statements are true about HCP Vault Dedicated? (Select three)

A.

Provides 100% feature parity compared to Vault self-managed clusters

B.

Helps reduce operational overhead for organizations with push-button deployment and fully managed upgrades

C.

Increases reliability and ease of use so you can onboard applications and teams easily

D.

Increases security across clouds and machines through a single interface

Full Access
Question # 52

The Vault Agent provides which of the following benefits? (Select three)

A.

Token renewal

B.

Authentication to Vault

C.

Client-side caching of responses

D.

Automatically creates secrets in the desired storage backend

Full Access
Question # 53

Christy has created a token and needs to use that token to access Vault. What command can she use to authenticate and access secrets stored in Vault?

$ vault token create -policy=christy

Key Value

--- -----

token hvs.hxDIPd8RPVtxu4AzSGS1lArP

token_accessor AxwxpDs6LbdFQbWGmBDnwIK3

token_duration 24h

token_renewable true

token_policies [ " christy " " default " ]

identity_policies []

policies [ " christy " " default " ]

A.

vault login hvs.hxDIPd8RPVtxu4AzSGS1lArP

B.

vault login -method=password

C.

vault login -method=token christy

D.

vault login -accessor=AxwxpDs6LbdFQbWGmBDnwIK3

Full Access
Question # 54

Which two characters can be used when writing a policy to reflect a wildcard or path segment? (Select two)

A.

The ampersand &

B.

The at symbol @

C.

The splat character *

D.

A dollar sign $

E.

The pound symbol #

F.

The plus symbol +

Full Access
Question # 55

What is the default method of authentication after first initializing Vault?

A.

TLS certificates

B.

GitHub

C.

Admin account

D.

Tokens

E.

AppRole

F.

Userpass

Full Access
Question # 56

What is the result of the following Vault command?

$ vault auth enable kubernetes

A.

Allows Vault to access usernames and passwords stored in a Kubernetes cluster

B.

Mounts the Kubernetes auth method to the default path of kubernetes/

C.

Imports Kubernetes secrets to the local KV database

D.

Enables Vault to host an IdP for Kubernetes workloads

Full Access
Question # 57

Which two interfaces automatically assume the token for subsequent requests after successfully authenticating? (Select two)

A.

CLI

B.

API

C.

UI

Full Access
Question # 58

From the options below, select the benefits of using the PKI (x.509 certificates) secrets engine (select three):

A.

TTLs on Vault certs are longer to ensure certificates are valid for a longer period of time

B.

Reducing, or eliminating certificate revocations

C.

Reduces time to get a certificate by eliminating the need to generate a private key and CSR

D.

Vault can act as an intermediate CA

Full Access
Question # 59

By default, what TCP port does Vault replication use?

A.

tcp/8200

B.

tcp/8300

C.

tcp/8201

D.

tcp/8301

Full Access
Question # 60

Tommy has written an AWS Lambda function that will perform certain tasks for the organization when data has been uploaded to an S3 bucket. Security policies for the organization do not allow Tommy to hardcode any type of credential within the Lambda code or environment variables. However, Tommy needs to retrieve a credential from Vault to write data to an on-premises database. What auth method should Tommy use in Vault to meet the requirements while not violating security policies?

A.

AWS

B.

Userpass

C.

Token

D.

AppRole

Full Access
Question # 61

True or False? When encrypting data with the Transit secrets engine, Vault always stores the ciphertext in a dedicated KV store along with the associated encryption key.

A.

True

B.

False

Full Access
Question # 62

Based on the screenshot below, how many auth methods have been enabled on this Vault instance?

Question # 62

A.

1

B.

2

C.

4

D.

3

Full Access
Question # 63

True or False? Once you create a KV v1 secrets engine and place data in it, there is no way to modify the mount to include the features of a KV v2 secrets engine.

A.

True

B.

False

Full Access
Question # 64

Which of the following Vault policies will allow a Vault client to read a secret stored at secrets/applications/app01/api_key?

A.

path " secrets/applications/ " { capabilities = [ " read " ] allowed_parameters = { " certificate " = [] } }

B.

path " secrets/* " { capabilities = [ " list " ] }

C.

path " secrets/applications/+/api_* " { capabilities = [ " read " ] }

D.

path " secrets/applications/app01/api_key/* " { capabilities = [ " update " , " list " , " read " ] }

Full Access
Question # 65

How long does the Transit secrets engine store the resulting ciphertext by default?

A.

24 hours

B.

30 days

C.

32 days

D.

Transit does not store data

Full Access
Question # 66

From the options below, select the benefits of using a batch token over a service token (select four).

A.

Often used for ephemeral, high-performance workloads

B.

Can be a root token

C.

Can be used on performance replication clusters (if orphan)

D.

Has accessors

E.

Lightweight and scalable

F.

No storage cost for token creation

Full Access
Question # 67

Below is a list of parent and child tokens and their associated TTL. Which token(s) will be revoked first?

A.

├───hvs.y4fUERqCtUV0xsQjWLJar5qX - TTL: 4 hours

B.

├───hvs.FNiIFU14RUxxUYAl4ErLfPVR - TTL: 6 hours

C.

├───hvs.Jw9LMpu7oCQgxiKbjfyzyg75 - TTL: 4 hours (child of B)

D.

├───hvs.3IrlhEvcerEGbae11YQf9FvI - TTL: 3 hours

E.

├───hvs.hOpweMVFvqfvoVnNgvZq8jLS - TTL: 5 hours (child of D)

Full Access
Question # 68

Which of the following statements best describes the difference in cluster strategies between self-managed Vault and HashiCorp-managed Vault?

A.

Self-managed clusters require users to handle setup, maintenance, and scaling, whereas HCP Vault Dedicated is fully managed by HashiCorp and offloads most operational tasks

B.

Neither self-managed clusters nor HCP Vault Dedicated include enterprise security features such as replication or disaster recovery

C.

Both self-managed clusters and HCP Vault Dedicated require manual patching and upgrades, but only self-managed clusters are hosted in the user’s cloud

D.

In self-managed clusters, HashiCorp is responsible for scaling, upgrades, and patching, while HCP Vault Dedicated requires the user to handle all operational overhead

Full Access
Question # 69

Which of the following token attributes can be used to renew a token in Vault (select two)?

A.

TTL

B.

Token ID

C.

Identity policy

D.

Token accessor

Full Access
Question # 70

    A Jenkins server is using the following token to access Vault. Based on the lookup shown below, what type of token is this? $ vault token lookup hvs.FGP1A77Hxa1Sp6Pkp1yURcZB

     

    Key Value

    --- -----

    accessor RnH8jtgrxBrYanizlyJ7Y8R

    creation_time 1604604512

    creation_ttl 24h

    display_name token

    entity_id n/a

    expire_time 2025-11-06T14:28:32.8891566-05:00

    explicit_max_ttl 0s

    id hvs.FGP1A77Hxa1Sp6KRau5eNB

    issue_time 2025-11-06T14:28:32.8891566-05:00

    meta < nil >

    num_uses 0

    orphan false

    path auth/token/create

    period 24h

    policies [admin default]

    renewable true

    ttl 23h59m50s

    type service

A.

Periodic token

B.

Batch token

C.

Orphaned token

D.

Secondary token

Full Access
Question # 71

You want to integrate a third-party application to retrieve credentials from the HashiCorp Vault API. How can you accomplish this without having direct access to the source code?

A.

You cannot integrate a third-party application with Vault without being able to modify the source code

B.

Put in a request to the third-party application vendor

C.

Instead of the API, have the application use the Vault CLI to retrieve credentials

D.

Use the Vault Agent to obtain secrets and provide them to the application

Full Access
Question # 72

After decrypting data using the Transit secrets engine, the plaintext output does not match the plaintext credit card number that you encrypted. Which of the following answers provides a solution?

$ vault write transit/decrypt/creditcard ciphertext= " vault:v1:cZNHVx+sxdMEr....... "

Key: plaintext Value: Y3JlZGl0LWNhcmQtbnVtYmVyCg==

A.

Vault is sealed, therefore the data cannot be decrypted. Unseal Vault to properly decrypt the data

B.

The user doesn’t have permission to decrypt the data, therefore Vault returns false data

C.

The resulting plaintext data is base64-encoded. To reveal the original plaintext, use the base64 --decode command

D.

The data is corrupted. Execute the encryption command again using a different data key

Full Access
Question # 73

True or False? The Vault Secrets Operator does NOT encrypt client cache, such as Vault tokens and leases, by default in Kubernetes Secrets.

A.

True

B.

False

Full Access
Question # 74

A user is assigned the following policy, and they can successfully retrieve secrets using the CLI. However, the user reports receiving an error message in the UI. Why can’t the user access the secret in the Vault UI?

path " kv/apps/app01 " { capabilities = [ " read " ] }

Successful retrieval using the CLI

Question # 74

(Error: Permission denied in UI)

Question # 74

A.

The user doesn’t know what they’re doing

B.

The user doesn’t have permissions to retrieve the data from the UI, only the CLI

C.

The user needs list permissions to browse the UI

D.

The user’s token is invalid

Full Access
Question # 75

During a service outage, you must ensure all current tokens and leases are copied to another Vault cluster for failover so applications don’t need to authenticate. How can you accomplish this?

A.

Have Vault write all the tokens and leases to a file so you have a second copy of them

B.

Configure all applications to use the auto-auth feature of the Vault Agent

C.

Configure Disaster Recovery replication and promote the secondary cluster during an outage

D.

Replicate to another cluster using Performance Replication and promote the secondary cluster during an outage

Full Access
Question # 76

You want to encrypt a credit card number using the Transit secrets engine. You enter the following command and receive an error. What can you do to ensure that the credit card number is properly encrypted and the ciphertext is returned?

$ vault write -format=json transit/encrypt/creditcards plaintext= " 1234 5678 9101 1121 "

Error: * illegal base64 data at input byte 4

A.

The plain text data needs to be encoded to base64

B.

The token used to issue the encryption request does not have the appropriate permissions

C.

Credit card numbers are not supported using the Transit secrets engine since it is considered sensitive data

D.

The credit card number should not include spaces

Full Access
Question # 77

When using the Vault Secrets Operator, where is the secret written to after being retrieved from Vault?

A.

The secret is never written to any service or persistent storage

B.

Directly to the filesystem of the pod

C.

Kubernetes Secrets

D.

To the cloud-provider’s native secret manager (Azure Key Vault, AWS Secrets Manager, etc.)

Full Access
Question # 78

Vault is configured with the oidc auth method and you need to log in using the CLI. What command would you use to authenticate so you can make configuration changes to Vault?

A.

vault login -method=oidc username=bryan

B.

vault auth oidc

C.

vault login auth/oidc/users/bryan

D.

vault login username=bryan

Full Access
Question # 79

You are using the Vault API to test authentication before modifying your CI/CD pipeline to properly authenticate to Vault. You manually authenticate to Vault and receive the response below. Based on the provided options, which of the following are true? (Select four)

    $ curl \

    --request POST \

    --data @payload.json \

    https://vault.krausen.com:8200/v1/auth/userpass/login/bryan.krausen | jq

     

    *******************************************************************************

    ******* RESPONSE BELOW ********************************************************

    *******************************************************************************

     

    {

    " request_id " : " f758e8da-11b6-8341-d404-56f0c370a7fa " ,

    " lease_id " : " " ,

    " renewable " : false,

    " lease_duration " : 0,

    " data " : null,

    " wrap_info " : null,

    " warnings " : null,

    " auth " : {

    " client_token " : " hvs.CbzCNJCVWt63jyzyaJakgDwz " ,

    " accessor " : " rffwXzKFcxvaQi6Vgo8tY4Lt " ,

    " policies " : [

    " training " ,

    " default "

    ],

    " token_policies " : [

    " training " ,

    " default "

    ],

    " metadata " : {

    " username " : " bryan.krausen "

    },

    " lease_duration " : 84600,

    " renewable " : true,

    " entity_id " : " f1795f6a-c576-d619-b2d5-74c0aee08edb " ,

    " token_type " : " service " ,

    " orphan " : true

    }

    }

A.

The token required to retrieve a secret is hvs.CbzCNJCVWt63jyzyaJakgDwz

B.

The returned token is a batch token

C.

The user needs to retrieve .auth.client_token in order to perform other actions

D.

The accessor will be used to authenticate to Vault to retrieve secrets

E.

The user is using the userpass auth method

F.

The user’s password is stored in a file named payload.json

Full Access
Question # 80

A developer team requests integration of their legacy application with Vault to encrypt and decrypt data for a backend database. They cannot modify the application for Vault authentication. What is the best way to achieve this integration?

A.

Enable the Transit secrets engine and configure the secrets engine to send data directly to the legacy app

B.

Have the app team call the Vault API to encrypt and decrypt the required data

C.

Enable and configure the Kubernetes auth method to allow the application to authenticate to Vault using a JWT

D.

Run the Vault Agent on the application server(s) and use the Auto Auth feature to manage the tokens

Full Access
Question # 81

Your organization recently suffered a security breach on a specific application, and the security response team believes that MySQL database credentials were likely obtained during the event. The application generated the credentials using the database secrets engine in Vault mounted at the path database/. How can you quickly revoke all of the secrets generated by this secrets engine?

A.

vault token revoke database/*

B.

vault secrets disable mysql

C.

vault lease renew database/creds/mysql

D.

vault lease revoke -prefix database/

Full Access
Question # 82

A Fintech company is using Vault to store its static long-lived credentials so automated processes can quickly retrieve secrets. A user needs to add a new static secret for a new automated job. What CLI commands can be used to store a new static credential? (Select two)

A.

vault kv put kv/training/certification/vault @secrets.txt

B.

vault kv write kv/training/certification/vault key=username value=bryan

C.

vault kv create kv/training/certification/vault @secrets.txt

D.

vault kv put -mount=secret creds passcode=my-long-passcode

Full Access
Question # 83

A developer has requested access to manage secrets at the path kv/apps/webapp01. You create the policy below which gives them the proper access:

path " kv/apps/webapp01 " {

capabilities = [ " read " , " create " , " update " , " list " ]

}

However, when the developer logs in to the Vault UI, they see the following screenshot and cannot access the desired secret. Why can’t the developer see the secrets they need?

Question # 83

A.

The Vault UI isn’t enabled for the developer, therefore they will only see the default options

B.

The key/value secrets engine isn’t available in the Vault UI, therefore the developer should use a different Vault interface instead

C.

The policy doesn’t permit list access to the paths prior to the secret so the Vault UI doesn’t display the mount path

D.

The secrets are stored under the cubbyhole secrets engine, so the developer should browse to that secrets engine

Full Access
Question # 84

You have enabled the Transit secrets engine and want to start encrypting data to store in Azure Blob storage. What is the next step that needs to be completed before you can encrypt data? (Select two)

A.

Export the encryption key and upload it to the application server

B.

Enable the Transit secrets engine API

C.

Create an encryption key for the application to use

D.

Write a policy that permits the application to use the encryption key

Full Access
Question # 85

Your co-worker has asked you to perform certain operations in Vault and has provided you with a token accessor (not the token itself). What Vault operations would you be allowed to perform using only the provided accessor? (Select three)

A.

Renew the token to extend the TTL

B.

Revoke the token in Vault to make it invalid

C.

Create child tokens associated with the same policies as the related token

D.

Lookup properties of the token, such as the TTL, policies, and metadata

Full Access
Question # 86

You have logged into the Vault UI and see this screen. What Vault component is being enabled in the screenshot below?

Question # 86

A.

Storage Backends

B.

Secrets Engine

C.

Auth Methods

D.

Audit Devices

Full Access
Question # 87

Which of the following are considered benefits of using policies in Vault? (Select three)

A.

Policies are assigned to a token on a 1:1 basis to eliminate conflicting policies

B.

Provides granular access control to paths within Vault

C.

Policies have an implicit deny, meaning that policies are deny by default

D.

Policies provide Vault operators with role-based access control

Full Access
Question # 88

Which core component of Vault can store, generate, or encrypt data for organizations?

A.

auth method

B.

storage backend

C.

secrets engine

D.

audit device

Full Access
Question # 89

Your organization has enabled the LDAP auth method on the path of corp-auth/. When you access the Vault UI, you cannot log in despite providing the correct credentials. Based on the screenshot below, what action should you take to log in?

Question # 89

A.

Select corp-auth from the dropdown list

B.

Enter the username as corp-auth/bryan.krausen

C.

Select More Options and enter the Mount path that LDAP was enabled on (corp-auth/)

D.

Change to the Namespace of corp-auth before trying to authenticate

Full Access
Question # 90

You have a new team member on the Vault operations team. Their first task is to rotate the encryption key in Vault as part of the organization’s security policy. However, when they log in, they get an access denied error when attempting to rotate the key. The policy being used is below. Why can’t the user rotate the encryption key?

path " auth/* " {

capabilities = [ " create " , " read " , " update " , " delete " , " list " ]

}

path " sys/rotate " {

capabilities = [ " read " , " update " ]

}

A.

The policy requires sudo privileges since it is a root-protected path

B.

The policy doesn’t include create privileges so a new encryption key can’t be created

C.

The policy should include sys/rotate/ < name of key > as part of the path

D.

The encryption key has a minimum TTL, therefore the key cannot be rotated until that time expires

Full Access
Question # 91

You have enabled the Transit secrets engine on your Vault cluster to provide an " encryption as a service " service as your team develops new applications. What is a prime use case for the Transit secrets engine?

A.

Encrypting data before being written to an Amazon S3 bucket

B.

Storing the encrypted data in Vault for easy retrieval

C.

Generating dynamic SSH credentials for access to local systems

D.

Creating X.509 certificates for a new fleet of containers

Full Access
Question # 92

You are using Vault CLI and enable the database secrets engine on the default path of database/. However, the DevOps team wants to enable another database secrets engine for testing but receives an error stating the path is already in use. How can you enable a second database secrets engine using the CLI?

A.

vault secrets enable database database2/

B.

vault secrets enable -force database

C.

vault secrets enable -path=database2 database

D.

vault secrets enable database2/

Full Access
Question # 93

You are the primary Vault operator. During a routine audit, an auditor requested the ability to display all secrets under a specific path in Vault without seeing the actual stored data. Which policy permits the auditor to display the stored secrets without revealing their contents?

A.

path " kv/apps/production/ " { capabilities = [ " list " ] }

B.

path " kv/apps/+/ " { capabilities = [ " list " ] }

C.

path " kv/+/production " { capabilities = [ " list " ] }

D.

path " kv/apps/* " { capabilities = [ " list " , " read " ] }

Full Access
Question # 94

A security architect is designing a solution to address the " Secret Zero " problem for a Kubernetes-based application that needs to authenticate to HashiCorp Vault. Which approach correctly leverages Vault features to solve this challenge?

A.

Store the Vault root token in a ConfigMap and mount it to all containers that require access to sensitive information

B.

Generate a long-lived token during deployment and store it as an environment variable within each container that needs to access Vault

C.

Configure the Kubernetes auth method in Vault and enable applications to authenticate without pre-shared secrets

D.

Implement a custom sidecar container that uses AppRole role-id and secret-id each time the application needs to access Vault

Full Access
Question # 95

You have successfully authenticated using the Kubernetes auth method, and Vault has provided a token. What HTTP header can be used to specify your token when you request dynamic credentials? (Select two)

A.

X-Vault-Token: < token >

B.

Token: < token >

C.

Authentication: < token >

D.

Authorization: Bearer < token >

Full Access
Question # 96

Your supervisor has requested that you log into Vault and update a policy for one of the development teams. You successfully authenticated to Vault via OIDC but do not see a way to manage the Vault policies. Why are you unable to manage policies in the Vault UI?

Question # 96

A.

Policies are only available on Vault Enterprise

B.

The Vault node is sealed, and therefore you cannot manage policies

C.

Policies cannot be managed in the UI, only the CLI and API

D.

The policy associated with your login does not permit access to manage policies

Full Access
Question # 97

A large organization uses Vault for various use cases with multiple auth methods enabled. A user can authenticate via LDAP, OIDC, or a local userpass account, but they receive different policies for each method and often need to log out and back in for different actions. What can be configured in Vault to ensure users have consistent policies regardless of their authentication method?

A.

Enable the SSH secrets engine and instruct the user to obtain credentials using the new secrets engine

B.

Create a new entity and map the aliases from each of the available auth methods

C.

Assign the default policy to the user ' s policy used by each auth method

D.

Provide the user with an AppRole role-id and secret-id for authentication

Full Access