Bird
0
0

Given this Vault CLI command sequence, what will be the output?

medium📝 Analysis Q13 of 15
Microservices - Configuration and Secrets Management
Given this Vault CLI command sequence, what will be the output?
vault kv put secret/api-key value=12345
vault kv get -field=value secret/api-key
Asecret/api-key value=12345
Bvalue
CError: secret not found
D12345
Step-by-Step Solution
Solution:
  1. Step 1: Understand the Vault put command

    The command 'vault kv put secret/api-key value=12345' stores the key 'value' with '12345' under 'secret/api-key'.
  2. Step 2: Understand the Vault get command with '-field=value'

    The command 'vault kv get -field=value secret/api-key' retrieves only the value of the 'value' field, which is '12345'.
  3. Final Answer:

    12345 -> Option D
  4. Quick Check:

    Vault get -field=value returns the stored secret value [OK]
Quick Trick: Use '-field' to get only the secret value, not full metadata [OK]
Common Mistakes:
  • Expecting full secret metadata instead of just the value
  • Confusing the output format of Vault CLI commands
  • Assuming an error when secret exists

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes