HashiCorp Certified: Vault Associate (002) — Question 74
Which command will generate a new transit key?
Answer options
- A. vault put transit/keys/my-key
- B. vault create -f transit/keys/my-key
- C. vault write -f transit/keys/my-key
- D. vault create transit/keys/my-key
Correct answer: C
Explanation
The correct option, C, uses 'vault write' with the '-f' flag to generate a new transit key, which is the proper syntax for this action. Options A and D do not include the necessary flags for creating a key, while B incorrectly uses 'create' instead of 'write'.