Free PostgreSQL PGCES-02 Exam Actual Questions

The questions for PGCES-02 were last updated On Dec 18, 2024

Question No. 1

PostgreSQL can use an index to access a table. Select two incorrect statements about indexes.

Show Answer Hide Answer
Correct Answer: D, E

Question No. 2

Table "t1" is defined as follows: CREATE TABLE t1 (value VARCHAR(5)); A set of SQL statements were executed in the following order. Select the number of rows that table "t1" has after execution. BEGIN; INSERT INTO t1 VALUES ('AA'); SAVEPOINT point1; INSERT INTO t1 VALUES ('BB'); SAVEPOINT point2; INSERT INTO t1 VALUES ('CC'); ROLLBACK TO point1; INSERT INTO t1 VALUES ('DD'); END;

Show Answer Hide Answer
Correct Answer: B

Question No. 3

A pg_hba.conf file is set up as follows. local all all md5 host all all 127.0.0.1/32 md5 host all all 172.16.1.0/24 md5 When user foo connects to database bar from host IP address 172.16.1.2, I would like password verification to not be performed. Select one appropriate line for the new pg_hba.conf file.

Show Answer Hide Answer
Correct Answer: B

Question No. 4

Select the most suitable statement regarding PostgreSQL's pg_hba.conf configuration file.

Show Answer Hide Answer
Correct Answer: D

Question No. 5

Select three SQL statements which return NULL.

Show Answer Hide Answer
Correct Answer: A, B, D