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
22 comments · newest first
DE
Demetra
2 days ago
I think it's D. Seems straightforward.
GA
Gail
7 days ago
I think it's D. Seems straightforward.
FA
Fannie
12 days ago
I agree with Matt. D is the best choice here.
CO
Cordelia
17 days ago
E is definitely not it. That's for resetting logs.
CO
Cortney
22 days ago
C is confusing. Why use pg_dump for restore?
JO
Jolanda
28 days ago
B looks wrong. You can't restore with pg_dump.
CL
Claudio
1 month ago
I feel like A might be right. It uses pg_restore.
MA
Matt
1 month ago
I think it's D. Seems straightforward.
BI
Billy
1 month ago
E) sounds sketchy, I wouldn't trust that one at all.
GE
Georgeanna
2 months ago
Wait, can you really use pg_dump for restoring?
RI
Ria
2 months ago
No way, A) is definitely correct!
LO
Louvenia
2 months ago
I think D) is actually the correct one.
TH
Theodora
2 months ago
A) is the right command for restoring a dump.
LA
Lashawna
2 months ago
C) doesn’t even make sense, lol.
EZ
Ezekiel
2 months ago
I’m not sure about B), seems off to me.
LA
Latosha
3 months ago
Wait, isn't E) a dangerous command?
EL
Elenore
3 months ago
I think D) is actually the correct one.
DI
Diego
3 months ago
A) is the right command for restoring!
LI
Lindsey
3 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
3 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
4 months ago
I remember practicing with pg_dump and pg_restore, but I can't recall if we used -f for restoring.
ER
Ernest
5 months ago
I think the command should start with pg_restore, but I'm not entirely sure which option it is.