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 Vault-Associate Exam - Topic 3 Question 45 Discussion

Posted by Erinn on Aug 16, 2025 at 11:40 PM

You are using the Vault userpass auth method mounted at auth/userpass. How do you create a new user named "sally" with password "h0wN0wB4r0wnC0w"? This new user will need the power-users policy.

A.

B.

C.

D.

Suggested Answer: D

To create a new user named ''sally'' with password ''h0wN0wB4r0wnC0w'' and the power-users policy, you would use the Vault userpass auth method mounted at auth/userpass. You would use the following command: ''vault write auth/userpass/users/sally password=h0wN0wB4r0wnC0w policies=power-users''. This command would create a new user named ''sally'' with the specified password and policy.Reference:

[Userpass Auth Method | Vault | HashiCorp Developer]

[Create Vault policies | Vault | HashiCorp Developer]


Get Premium Vault-Associate Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
23 comments · newest first
EA
Earleen 10 months ago
This is so straightforward, I love it!
AD
Adelina 10 months ago
Wait, are you sure about the password format? Seems a bit off.
NI
Nicolette 11 months ago
Totally agree, that's the right command!
EL
Elli 11 months ago
You can create a user with `vault write auth/userpass/users/sally password=h0wN0wB4r0wnC0w policies=power-users`.
LA
Lauran 11 months ago
I thought you had to specify the username first, not the password?
JE
Jessenia 11 months ago
I think we might need to specify the policy in a separate field, but I’m not entirely confident about how to format that in the command.
GI
Gilberto 12 months ago
I feel like option B looks familiar, but I can't remember if it was the right way to include the password and policy at the same time.
BE
Bette 12 months ago
I remember a practice question where we had to assign a policy to a user, but I can't recall if it was done in the same command or separately.
MA
Ma 1 year ago
I think we need to use the `vault write` command to create the user, but I'm not sure about the exact syntax.
JU
Jutta 1 year ago
Ah, this is a classic Vault user management question. I've practiced similar scenarios, so I'm confident I can identify the right solution. Time to put my Vault skills to the test!
KA
Katy 1 year ago
This is a good test of my Vault knowledge. I'll methodically go through each option and evaluate which one correctly creates the new user with the required policy. Attention to detail will be key here.
GE
Gertude 1 year ago
Okay, I think I've got this. Based on the options, it looks like I need to use the `vault write` command to create the new user with the specified password and policy. I'll make sure to get the syntax right.
FR
Fredric 1 year ago
Hmm, I'm a bit unsure about this one. The question mentions the userpass auth method, but the options show different commands. I'll need to double-check the Vault documentation to make sure I understand the right approach.
IZ
Izetta 1 year ago
This looks like a straightforward Vault authentication question. I'll carefully review the options and think through the steps to create a new user with the power-users policy.
FR
Francine 1 year ago
I'm going with Option C. Looks like the most straightforward way to create a new user and assign the policy.
MA
Marci 1 year ago
I think the answer is A because it shows the correct command to create a new user with a specific policy.
AR
Arlene 1 year ago
Hold up, is that really the password we're supposed to use? 'h0wN0wB4r0wnC0w'? Sounds like something a cow would come up with.
AB
Abraham 10 months ago
↳ replying to Arlene
I wonder if cows really think like that.
HY
Hyman 10 months ago
↳ replying to Arlene
I know, right? It’s so random!
VE
Verdell 10 months ago
↳ replying to Arlene
Haha, right? That password is hilarious!
TH
Theodora 11 months ago
↳ replying to Arlene
Maybe it’s a secret cow code!
ST
Steffanie 1 year ago
Option C looks good, that's how I would create a new user with the power-users policy.
GW
Gwenn 1 year ago
↳ replying to Steffanie
Option C looks good, that's how I would create a new user with the power-users policy.
0/2000 characters

Save Cancel