nerdexam
HashiCorp

VAULT-ASSOCIATE-002 · Question #90

Which path will this policy allow? path "kv/+/team_*" { capabilities = [ "read" ] }

The correct answer is C. kv/us-west/team_edu. The policy path "kv/+/team_*" allows read access to paths within the kv secrets engine where the first segment after kv/ is any single segment, followed by team_ and then any characters.

Submitted by skyler.x· Apr 18, 2026Secure Vault

Question

Which path will this policy allow? path "kv/+/team_*" { capabilities = [ "read" ] }

Options

  • Akv/team_edu
  • Bkv/us-west/team
  • Ckv/us-west/team_edu
  • Dkv/us-west/ca/team_edu

How the community answered

(39 responses)
  • A
    18% (7)
  • B
    3% (1)
  • C
    72% (28)
  • D
    8% (3)

Why each option

The policy `path "kv/+/team_*"` allows read access to paths within the `kv` secrets engine where the first segment after `kv/` is any single segment, followed by `team_` and then any characters.

Akv/team_edu

`kv/team_edu` is incorrect because the `+` wildcard requires exactly one segment between `kv/` and `team_*`, which `team_edu` does not provide.

Bkv/us-west/team

`kv/us-west/team` is incorrect because the `*` wildcard in `team_*` requires at least `team_` followed by zero or more characters, but `team` alone does not fulfill this pattern.

Ckv/us-west/team_eduCorrect

In Vault policies, `+` is a wildcard that matches exactly one path segment, and `*` matches zero or more characters within a path segment. Thus, `kv/+/team_*` correctly matches `kv/us-west/team_edu`, as `us-west` matches `+` and `team_edu` matches `team_*`.

Dkv/us-west/ca/team_edu

`kv/us-west/ca/team_edu` is incorrect because the `+` wildcard matches only *one* path segment, whereas `us-west/ca` represents two segments.

Concept tested: Vault policy path matching (wildcards)

Source: https://developer.hashicorp.com/vault/docs/concepts/policies#path-matching

Topics

#Vault Policies#Policy Path Matching#Wildcards

Community Discussion

No community discussion yet for this question.

Full VAULT-ASSOCIATE-002 Practice