BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

PostgreSQL Exam PGCES-02 Topic 6 Question 67 Discussion

Actual exam question for PostgreSQL's PGCES-02 exam
Question #: 67
Topic #: 6
[All PGCES-02 Questions]

Select a correct SQL command to change existing user "george"'s password to "foobar".

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Wilburn
3 months ago
Haha, option D looks like something straight out of a comedy skit. 'Set user george password to foobar'? Really?
upvoted 0 times
Alberto
2 months ago
E) SET USER george ALTER PASSWORD 'foobar';
upvoted 0 times
...
Maddie
2 months ago
Haha, I agree, option D does sound pretty funny.
upvoted 0 times
...
Inocencia
2 months ago
C) ALTER USER george SET PASSWORD 'foobar';
upvoted 0 times
...
Jestine
2 months ago
A) ALTER USER george WITH PASSWORD 'foobar';
upvoted 0 times
...
...
Vivan
3 months ago
Option C is the way to go. The other choices look a bit too creative or unconventional for a certification exam.
upvoted 0 times
Hoa
2 months ago
Yes, option C is the standard way to set a new password for a user in SQL.
upvoted 0 times
...
Carlee
2 months ago
I agree, option C is the correct SQL command to change the password for user 'george'.
upvoted 0 times
...
...
Kendra
3 months ago
I think D) SET USER george PASSWORD TO 'foobar'; is the correct command based on my experience.
upvoted 0 times
...
Elinore
3 months ago
I'm not sure, but I think C) ALTER USER george SET PASSWORD 'foobar'; could also be correct.
upvoted 0 times
...
Toshia
3 months ago
I'm going with C as well. It's the only one that looks like the proper SQL syntax for this task.
upvoted 0 times
Kaycee
2 months ago
Yes, ALTER USER george WITH PASSWORD 'foobar'; is the correct syntax to change the password.
upvoted 0 times
...
Rose
3 months ago
I agree, A) looks like the right SQL command to change the password for user 'george'.
upvoted 0 times
...
Tammara
3 months ago
I think the correct answer is A) ALTER USER george WITH PASSWORD 'foobar';
upvoted 0 times
...
...
Otis
4 months ago
Definitely C. Changing a user's password is a pretty standard SQL operation, and the syntax is well-documented.
upvoted 0 times
Pansy
2 months ago
Yes, that's the correct SQL command to change the password for user 'george'.
upvoted 0 times
...
Cristal
3 months ago
C) ALTER USER george SET PASSWORD 'foobar';
upvoted 0 times
...
Lonna
3 months ago
No, that's not the correct syntax for changing a user's password.
upvoted 0 times
...
Iluminada
3 months ago
A) ALTER USER george WITH PASSWORD 'foobar';
upvoted 0 times
...
...
Teri
4 months ago
I agree with Staci, option A seems to be the right SQL command.
upvoted 0 times
...
Staci
4 months ago
I think the correct answer is A) ALTER USER george WITH PASSWORD 'foobar';
upvoted 0 times
...
Tina
4 months ago
Option C is the correct answer. The syntax for changing a user's password in SQL is 'ALTER USER SET PASSWORD 'new_password';'.
upvoted 0 times
Roy
3 months ago
C) ALTER USER george SET PASSWORD 'foobar';
upvoted 0 times
...
Matilda
3 months ago
B) ALTER USER george CHANGE PASSWORD 'foobar';
upvoted 0 times
...
Alison
4 months ago
A) ALTER USER george WITH PASSWORD 'foobar';
upvoted 0 times
...
...

Save Cancel