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

Actual exam question for HashiCorp's Vault-Associate exam
Question #: 45
Topic #: 3
[All Vault-Associate Questions]

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.

Show Suggested Answer Hide Answer
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]


Contribute your Thoughts:

0/2000 characters
Earleen
2 months ago
This is so straightforward, I love it!
upvoted 0 times
...
Adelina
2 months ago
Wait, are you sure about the password format? Seems a bit off.
upvoted 0 times
...
Nicolette
2 months ago
Totally agree, that's the right command!
upvoted 0 times
...
Elli
3 months ago
You can create a user with `vault write auth/userpass/users/sally password=h0wN0wB4r0wnC0w policies=power-users`.
upvoted 0 times
...
Lauran
3 months ago
I thought you had to specify the username first, not the password?
upvoted 0 times
...
Jessenia
3 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.
upvoted 0 times
...
Gilberto
3 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.
upvoted 0 times
...
Bette
4 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.
upvoted 0 times
...
Ma
4 months ago
I think we need to use the `vault write` command to create the user, but I'm not sure about the exact syntax.
upvoted 0 times
...
Jutta
4 months 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!
upvoted 0 times
...
Katy
4 months 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.
upvoted 0 times
...
Gertude
4 months 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.
upvoted 0 times
...
Fredric
5 months 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.
upvoted 0 times
...
Izetta
5 months 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.
upvoted 0 times
...
Francine
5 months ago
I'm going with Option C. Looks like the most straightforward way to create a new user and assign the policy.
upvoted 0 times
...
Marci
5 months ago
I think the answer is A because it shows the correct command to create a new user with a specific policy.
upvoted 0 times
...
Arlene
5 months ago
Hold up, is that really the password we're supposed to use? 'h0wN0wB4r0wnC0w'? Sounds like something a cow would come up with.
upvoted 0 times
Abraham
1 month ago
I wonder if cows really think like that.
upvoted 0 times
...
Hyman
2 months ago
I know, right? It’s so random!
upvoted 0 times
...
Verdell
2 months ago
Haha, right? That password is hilarious!
upvoted 0 times
...
Theodora
3 months ago
Maybe it’s a secret cow code!
upvoted 0 times
...
...
Steffanie
6 months ago
Option C looks good, that's how I would create a new user with the power-users policy.
upvoted 0 times
Gwenn
5 months ago
Option C looks good, that's how I would create a new user with the power-users policy.
upvoted 0 times
...
...

Save Cancel