Free PostgreSQL PGCES-02 Exam Actual Questions

The questions for PGCES-02 were last updated On Jan 18, 2025

Question No. 1

You want to create a cursor that will SELECT the "customer" table. The created cursor must be able to move in any direction and reference data even after the end of the transaction. Select one answer containing the correct keyword(s) to fill in the underlined blank below. DECLARE cursor1 __________ FOR SELECT * FROM customer;

Show Answer Hide Answer
Correct Answer: B

Question No. 2

Select two correct statements about the command shown below.

Note: $ is the command prompt. $ dropdb -U foo foodb

Show Answer Hide Answer
Correct Answer: C, E

Question No. 3

What does the following command do? Choose the most appropriate statement from the selection below.

Note: $ is the command prompt.

$ pg_dump postgres > pgsql

Show Answer Hide Answer
Correct Answer: A

Question No. 4

Select the most appropriate statement about the initdb command.

Show Answer Hide Answer
Correct Answer: A

Question No. 5

Select two commands used to check the syntax of the ALTER TABLE statement in psql.

Show Answer Hide Answer
Correct Answer: A, B