Vault Associate 002 Exam QuestionsBrowse all questions from this exam

Vault Associate 002 Exam - Question 10


What command creates a secret with the key "my-password" and the value "53cr3t" at path "my-secrets" within the KV secrets engine mounted at "secret"?

Show Answer
Correct Answer: D

The correct command to create a secret with a specific key and value in the KV secrets engine is 'vault kv put'. The path to the new secret is 'secret/my-secrets', and the data format must be in key=value pairs. Thus, the command should be 'vault kv put secret/my-secrets my-password=53cr3t', aligning closely with option D, given a minor syntax fix.

Discussion

2 comments
Sign in to comment
daz_rekkaOption: A
Jan 17, 2024

The right command to create a key is 'vault kv put', the path to our new key is "secret/my-secrets/my-password" and it's value is "53cr3t". A has the correct syntax per https://developer.hashicorp.com/vault/docs/commands/kv#examples in the documentation.

bunnyjoelOption: B
Mar 24, 2024

Answer is A wrong. vault kv put secret/my-secret/my-password test Failed to parse K=V data: invalid key/value pair "test": format must be key=value vault kv put secret/my-secret/my-password user=test I have tested on my local machine. Thanks

bunnyjoel
Mar 24, 2024

The answer is D with modification vault kv put secret/my-secret password=53cr3t