I would like to restore the database cluster from the "db1.dump" backup file. Select the correct command from below. (Note: "postgres" is the superuser)
Suggested Answer: D
Get Premium PGCES-02 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
31 comments · newest first
LE
Leigha
7 hours ago
E is definitely wrong. That's for resetting logs.
JO
Johnna
5 days ago
C is confusing. Why use pg_dump for restore?
ED
Edna
11 days ago
I agree with D. It uses psql correctly.
IE
Iesha
16 days ago
E is definitely wrong. That's for resetting logs.
NO
Norah
21 days ago
C is confusing. Why use pg_dump for restore?
DA
Dahlia
26 days ago
B doesn't make sense. No restore command there.
MA
Mauricio
1 month ago
B doesn't make sense. No restore command there.
MA
Marylin
1 month ago
I feel like A could be right too.
JU
Justine
1 month ago
I feel like A could be right too.
DE
Demetra
2 months ago
I think it's D. Seems straightforward.
GA
Gail
2 months ago
I think it's D. Seems straightforward.
FA
Fannie
2 months ago
I agree with Matt. D is the best choice here.
CO
Cordelia
2 months ago
E is definitely not it. That's for resetting logs.
CO
Cortney
2 months ago
C is confusing. Why use pg_dump for restore?
JO
Jolanda
2 months ago
B looks wrong. You can't restore with pg_dump.
CL
Claudio
3 months ago
I feel like A might be right. It uses pg_restore.
MA
Matt
3 months ago
I think it's D. Seems straightforward.
BI
Billy
3 months ago
E) sounds sketchy, I wouldn't trust that one at all.
GE
Georgeanna
3 months ago
Wait, can you really use pg_dump for restoring?
RI
Ria
3 months ago
No way, A) is definitely correct!
LO
Louvenia
3 months ago
I think D) is actually the correct one.
TH
Theodora
4 months ago
A) is the right command for restoring a dump.
LA
Lashawna
4 months ago
C) doesn’t even make sense, lol.
EZ
Ezekiel
4 months ago
I’m not sure about B), seems off to me.
LA
Latosha
4 months ago
Wait, isn't E) a dangerous command?
EL
Elenore
4 months ago
I think D) is actually the correct one.
DI
Diego
4 months ago
A) is the right command for restoring!
LI
Lindsey
5 months ago
I definitely remember that pg_restore is the tool for restoring, so it has to be one of the options that includes it.
CH
Christene
5 months ago
I feel like option D might be the right choice since psql is often used for executing SQL commands, but I'm not completely confident.
JE
Jennie
5 months ago
I remember practicing with pg_dump and pg_restore, but I can't recall if we used -f for restoring.
ER
Ernest
7 months ago
I think the command should start with pg_restore, but I'm not entirely sure which option it is.