After issuing the command to delete a secret, you run a vault kv list command, but the path to the secret still seems to exist. What command would permanently delete the path from Vault?
Answer(s): C
Comprehensive and Detailed in DepthA: Soft-deletes data, not metadata. Incorrect.B: Destroys a version, not the path. Incorrect.C: Deletes all metadata and versions, removing the path. Correct.D: Invalid syntax. Incorrect.Overall Explanation from Vault Docs:"kv metadata delete deletes all versions and metadata for the key, permanently removing it."
https://developer.hashicorp.com/vault/docs/secrets/kv/kv-v2#key-metadata
When using the Vault Secrets Operator, where is the secret written to after being retrieved from Vault?
Comprehensive and Detailed in DepthA: Incorrect; VSO writes to Kubernetes Secrets.B: Incorrect; not written to pod filesystem.C: VSO syncs secrets to Kubernetes Secrets. Correct.D: Incorrect; no automatic cloud provider integration.Overall Explanation from Vault Docs:"VSO synchronizes secrets from Vault to Kubernetes Secrets..."
https://developer.hashicorp.com/vault/docs/platform/k8s/vso
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(Error: Permission denied in UI)
Comprehensive and Detailed in DepthA: Irrelevant to permissions. Incorrect.B: UI and CLI use the same permissions. Incorrect.C: UI browsing requires list on parent paths; read alone isn't enough. Correct.D: Token works via CLI, so it's valid. Incorrect.Overall Explanation from Vault Docs:"To browse the UI, users need list permissions on paths leading to the secret..."
https://developer.hashicorp.com/vault/docs/concepts/policies#list
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?
Comprehensive and Detailed in DepthA: Insecure and manual; not a Vault feature. Incorrect.B: Auto-auth doesn't replicate tokens/leases. Incorrect.C: DR replication mirrors tokens and leases; promotion enables failover. Correct.D: Performance replication doesn't replicate tokens fully. Incorrect.Overall Explanation from Vault Docs:"Disaster Recovery replication mirrors tokens and leases... Promote the secondary during an outage."
https://developer.hashicorp.com/vault/docs/enterprise/replication#replicated-data
You logged into the Vault CLI and attempted to enable an auth method, but you received this error message. What can you do to resolve the error and configure Vault? (Error: dial tcp 127.0.0.1:8200: connect: connection refused)
Answer(s): D
Comprehensive and Detailed in DepthA: Connection refused isn't a service issue here. Incorrect.B: Permissions don't cause connection errors. Incorrect.C: Invalid syntax change. Incorrect.D: Default VAULT_ADDR is HTTPS; if TLS is off, set to http://127.0.0.1:8200. Correct.Overall Explanation from Vault Docs:"If TLS is disabled, set VAULT_ADDR to http://127.0.0.1:8200 to avoid connection errors..."
https://developer.hashicorp.com/vault/docs/commands#vault_addr
Post your Comments and Discuss HashiCorp HCVA0-003 exam prep with other Community members: