Courseiva

VA-003 Utilize Vault CLI and API Practice Question

An administrator wants to retrieve the value of a secret stored at the path 'kv/secret/mykey' using the Vault CLI. Which command should they use?

⚠ Common exam trap

HashiCorp often tests the exact CLI verb (`read`) versus common but incorrect verbs like `get`, `retrieve`, or `show`, exploiting the fact that candidates may guess based on other tools (e.g., `curl`, `aws s3 cp`) rather than memorizing Vault's specific command set.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

vault read kv/secret/mykey

The correct command to retrieve a secret from Vault's KV secrets engine is `vault read`. This command is used to read data and metadata from a specified path. Option D is correct because `vault read kv/secret/mykey` will retrieve the value stored at that path, assuming the KV engine is mounted at `kv/`.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    vault get kv/secret/mykey

    Why it's wrong here

    'vault get' is not a Vault CLI command; secrets are read with 'vault kv get'. It is tempting because 'get' matches the read verb used by many CLIs, but Vault nests the operation under the 'kv' secrets-engine subcommand, so the bare form fails.

  • ✗

    vault retrieve kv/secret/mykey

    Why it's wrong here

    'retrieve' is not a Vault CLI verb; reading a KV secret requires 'vault kv get'. It is tempting because the question asks to retrieve a value, but Vault's command set uses 'get' under the 'kv' subcommand, so this invocation is unrecognised.

  • ✗

    vault show kv/secret/mykey

    Why it's wrong here

    Vault has no 'show' subcommand; the CLI reads secrets through 'vault kv get'. The command is tempting because 'show' resembles display verbs in other tools, but Vault's KV secrets engine requires the 'kv get' path to return the secret's data and metadata.

  • ✓

    vault read kv/secret/mykey

    Why this is correct

    `vault read` targets the KV version 1 API, returning the secret's data directly from the given path. For the `kv/secret/mykey` mount, this retrieves the stored value without requiring the `-field` flag or a `data/` path segment that KV version 2 mandates.

About these practice questions

One of 366 original VA-003 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This VA-003 practice question is part of Courseiva's free HashiCorp certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the VA-003 exam.