ExamGecko
Question list
Search
Search

Question 51 - Vault Associate 002 discussion

Report
Export

Running the second command in the GUI CLI will succeed.

A.
True
Answers
A.
True
B.
False
Answers
B.
False
Suggested answer: B

Explanation:

Running the second command in the GUI CLI will fail. The second command is vault kv put secret/creds passcode=my-long-passcode. This command attempts to write a secret named creds with the value passcode=my-long-passcode to the secret path, which is the default path for the kv secrets engine. However, the kv secrets engine is not enabled at the secret path, as shown by the first command vault secrets list, which lists the enabled secrets engines and their paths. The only enabled secrets engine is the transit secrets engine at the transit path. Therefore, the second command will fail with an error message saying that no secrets engine is mounted at the path secret/. To make the second command succeed, the kv secrets engine must be enabled at the secret path or another path, using the vault secrets enable command. For example, vault secrets enable -path=secret kv would enable the kv secrets engine at the secret path.Reference:kv - Command | Vault | HashiCorp Developer,vault secrets enable - Command | Vault | HashiCorp Developer


asked 18/09/2024
Sajan Limbu
29 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first