Bird
0
0

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

medium📝 Analysis Q4 of 15
Microservices - Configuration and Secrets Management
Given this Vault CLI command sequence, what will be the output?
vault kv put secret/app-config username=admin password=pass123
vault kv get -field=password secret/app-config
Asecret/app-config
Bpass123
Cusername=admin
DError: field not found
Step-by-Step Solution
Solution:
  1. Step 1: Understand the put command

    The first command stores a secret at path 'secret/app-config' with keys 'username' and 'password'.
  2. Step 2: Understand the get command with -field=password

    The second command retrieves only the value of the 'password' field from the stored secret.
  3. Final Answer:

    pass123 -> Option B
  4. Quick Check:

    Vault get -field returns the specific secret value [OK]
Quick Trick: Use '-field' to get only the secret value, not full data [OK]
Common Mistakes:
  • Expecting full secret output instead of single field
  • Confusing field name with secret path
  • Assuming error if field exists

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes