nerdexam
HashiCorp

VAULT-ASSOCIATE-002 · Question #84

When creating a policy, an error was thrown: Which statement describes the fix for this issue?

The correct answer is A. Replace write with create in the capabilities list. If a policy operation fails with a permission error related to creating new data, the fix often involves replacing the write capability with create.

Submitted by takeshi77· Apr 18, 2026Administer Vault

Question

When creating a policy, an error was thrown: Which statement describes the fix for this issue?

Exhibit

VAULT-ASSOCIATE-002 question #84 exhibit

Options

  • AReplace write with create in the capabilities list
  • BYou cannot have a wildcard ("*") in the path
  • Csudo is not a capability

How the community answered

(25 responses)
  • A
    84% (21)
  • B
    12% (3)
  • C
    4% (1)

Why each option

If a policy operation fails with a permission error related to creating new data, the fix often involves replacing the `write` capability with `create`.

AReplace write with create in the capabilities listCorrect

In Vault policies, the `write` capability allows modifying existing data at a path, while the `create` capability is specifically required to create *new* data at a path that does not yet exist. If the intent was to create a new secret or entry, `create` must be explicitly granted.

BYou cannot have a wildcard ("*") in the path

Wildcards (`*` or `+`) are a fundamental feature of Vault policy paths for matching multiple paths and are perfectly valid.

Csudo is not a capability

`sudo` is a valid capability in Vault policies, granting elevated permissions to bypass normal capability checks for specific operations.

Concept tested: Vault policy capabilities (create vs write)

Source: https://developer.hashicorp.com/vault/docs/concepts/policies#capabilities

Topics

#Vault Policies#Policy Capabilities#Policy Syntax

Community Discussion

No community discussion yet for this question.

Full VAULT-ASSOCIATE-002 Practice