The requirement is to enable a versioned Key/Value secrets engine at a custom mount path named my-secrets. KV version 2 can be enabled either by specifying kv-v2 as the plugin type or by enabling kv with the -version=2 flag and a path. Among the provided options, only vault secrets enable -path= " my-secrets " kv-v2 both enables the correct versioned KV engine and places it at the requested path. Option A enables an authentication method, not a secrets engine. Option C enables the KV engine but does not explicitly select KV version 2. Option D selects version 2 but does not set the required custom path. HashiCorp’s KV v2 setup documentation confirms that kv-v2 can be used directly with vault secrets enable -path < mount_path > .
================
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit