Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

HashiCorp Exam HCVA0-003 Topic 9 Question 1 Discussion

Actual exam question for HashiCorp's HCVA0-003 exam
Question #: 1
Topic #: 9
[All HCVA0-003 Questions]

When creating a policy, an error was thrown:

Which statement describes the fix for this issue?

Show Suggested Answer Hide Answer
Suggested Answer: A

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]

Contribute your Thoughts:

Iraida
4 days ago
C is the way to go. 'sudo' is not a capability, so that's the problem. Rookie mistake, but easy to fix.
upvoted 0 times
...
Candida
8 days ago
Hmm, I think the fix is B. You can't have a wildcard in the path. That's a common mistake I've seen before.
upvoted 0 times
...
Junita
11 days ago
I disagree, I believe the issue is with having a wildcard in the path.
upvoted 0 times
...
Susy
16 days ago
I think the fix is to replace write with create in the capabilities list.
upvoted 0 times
...

Save Cancel