An operator wants to list every key beneath the `services/web/` prefix, including nested paths, and see each key's associated flags and modify index. Which command returns that information?
The `-recurse` flag makes the get operation return every key sharing the given prefix, including nested paths, along with each key's value, flags, and modify index. This single command satisfies the requirement to enumerate the subtree and inspect metadata for each entry, which is why it is the standard way to audit a KV prefix.
Why this answer
Listing a KV subtree with metadata requires recursion. The `-recurse` flag on `consul kv get` returns every key under the prefix, each with its value, flags, and modify index, which is precisely the audit view the operator needs. A non-recursive get targets a single key, export targets backup workflows, and the catalog command serves a different subsystem.
Exam trap
The trap here is assuming that passing a prefix to a plain get returns the subtree, when Consul only enumerates children when recursion is explicitly requested.