New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

HashiCorp HCVA0-003 Exam - Topic 3 Question 15 Discussion

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

Which of the following Vault policies will allow a Vault client to read a secret stored at secrets/applications/app01/api_key?

Show Suggested Answer Hide Answer
Suggested Answer: C

Comprehensive and Detailed in Depth

This question requires identifying a policy that permits reading the secret at secrets/applications/app01/api_key. Vault policies use paths and capabilities to control access. Let's evaluate:

A: path 'secrets/applications/' { capabilities = ['read'] allowed_parameters = { 'certificate' = [] } }

This policy allows reading at secrets/applications/, but not deeper paths like secrets/applications/app01/api_key. The allowed_parameters restriction is irrelevant for reading secrets. Incorrect.

B: path 'secrets/*' { capabilities = ['list'] }

The list capability allows listing secrets under secrets/, but not reading their contents. Reading requires the read capability. Incorrect.

C: path 'secrets/applications/+/api_*' { capabilities = ['read'] }

The + wildcard matches one segment (e.g., app01), and api_* matches api_key. This policy grants read access to secrets/applications/app01/api_key. Correct.

D: path 'secrets/applications/app01/api_key/*' { capabilities = ['update', 'list', 'read'] }

This policy applies to subpaths under api_key/, not the exact path api_key. It includes read, but the path mismatch makes it incorrect for this specific secret.

Overall Explanation from Vault Docs:

''Wildcards (*, +) allow flexible path matching... read capability is required to retrieve secret data.'' Option C uses globbing to precisely target the required path.


Contribute your Thoughts:

0/2000 characters
Timothy
3 days ago
I think C could work too, but not sure.
upvoted 0 times
...
Hubert
8 days ago
D is the correct choice! It has read access.
upvoted 0 times
...
Diane
13 days ago
Vault policies, huh? I just use a sticky note for my API keys. Much simpler.
upvoted 0 times
...
An
18 days ago
C is the way to go. Specific path, read access. Easy peasy.
upvoted 0 times
...
Louvenia
23 days ago
D looks good too, but it's a bit too broad. C is the way to go.
upvoted 0 times
...
Sheron
29 days ago
I’m a bit confused about the allowed parameters in A. Does that affect the ability to read the secret? I’m not sure if it’s relevant here.
upvoted 0 times
...
Marg
1 month ago
I feel like I saw a similar question in practice, and it was about the specific capabilities needed. D seems to cover everything needed.
upvoted 0 times
...
Devora
1 month ago
I'm not entirely sure, but I remember something about wildcard paths. Could option C be a possibility too?
upvoted 0 times
...
Kirk
1 month ago
I think option D might be the right choice since it explicitly mentions the exact path and includes "read" capability.
upvoted 0 times
...
Serita
2 months ago
I'm not entirely sure, but I think option C is the best choice here. The policy syntax looks correct, and it seems to grant the necessary permissions.
upvoted 0 times
...
Danilo
2 months ago
I feel pretty good about this one. The policy in option C seems to be the most targeted and appropriate for the given scenario.
upvoted 0 times
...
Ruthann
2 months ago
Okay, I've got a strategy for this. I'll break down each policy option and consider which one most specifically grants read access to the secrets/applications/app01/api_key path.
upvoted 0 times
...
Julie
2 months ago
C is the correct answer. It's a specific path that allows reading the API key.
upvoted 0 times
...
Tyra
2 months ago
I disagree, D seems more specific and allows read access.
upvoted 0 times
...
Laila
3 months ago
I think option C is the best. It covers the wildcard for app01.
upvoted 0 times
...
Hortencia
3 months ago
Hmm, I'm torn between C and D. Gotta think this one through.
upvoted 0 times
...
Alyce
3 months ago
Hmm, this looks tricky. I'm a bit confused about the difference between the policy options. I'll need to carefully read through each one to understand the implications.
upvoted 0 times
...
Celestina
3 months ago
I think the answer is C, but I'm not completely sure. I'll need to review the Vault policy syntax to be more confident.
upvoted 0 times
Cassie
3 months ago
I’m leaning towards D. It seems more specific.
upvoted 0 times
...
...

Save Cancel