ExamGecko
Question list
Search
Search

Question 34 - Vault Associate 002 discussion

Report
Export

When creating a policy, an error was thrown:

Which statement describes the fix for this issue?

A.
Replace write with create in the capabilities list
Answers
A.
Replace write with create in the capabilities list
B.
You cannot have a wildcard (' * ') in the path
Answers
B.
You cannot have a wildcard (' * ') in the path
C.
sudo is not a capability
Answers
C.
sudo is not a capability
Suggested answer: A

Explanation:

The error was thrown because the policy code contains an invalid capability, ''write''. The valid capabilities for a policy are ''create'', ''read'', ''update'', ''delete'', ''list'', and ''sudo''. The ''write'' capability is not recognized by Vault and should be replaced with ''create'', which allows creating new secrets or overwriting existing ones. The other statements are not correct, because the wildcard (*) and the sudo capability are both valid in a policy. The wildcard matches any number of characters within a path segment, and the sudo capability allows performing certain operations that require root privileges.

[Policy Syntax | Vault | HashiCorp Developer]

[Policy Syntax | Vault | HashiCorp Developer]

asked 18/09/2024
Rachana Kesarkar
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first