20:00

Free Test
/ 10

Quiz

1/10
Select two suitable statements regarding the following SQL statement: CREATE TRIGGER trigger_1 AFTER UPDATE ON sales FOR EACH ROW EXECUTE PROCEDURE write_log();
Select the answer
2 correct answers
A.
It is defining a trigger "trigger_1".
B.
Every time 'UPDATE' is executed on the "sales" table, the "write_log" function is called once.
C.
The "write_log" function is called before 'UPDATE' takes place.
D.
'UPDATE' is not executed if "write_log" returns NULL.
E.
'DROP TRIGGER trigger_1 ON sales;' deletes the defined trigger.

Quiz

2/10
Select two transaction isolation levels supported in PostgreSQL.
Select the answer
2 correct answers
A.
DIRTY READ
B.
READ COMMITTED
C.
REPEATABLE READ
D.
PHANTOM READ
E.
SERIALIZABLE

Quiz

3/10
PostgreSQL can use an index to access a table. Select two incorrect statements about indexes.
Select the answer
2 correct answers
A.
An index is created by 'CREATE INDEX', and deleted by 'DROP INDEX'.
B.
By using an index effectively, searching and sorting performs faster.
C.
There are B-tree, Hash, R-tree and GiST index types.
D.
By creating an index,performance always improves.
E.
Creating an unused index does not affect the performance of a database at all.

Quiz

4/10
Select two incorrect statements regarding 'DOMAIN'.
Select the answer
2 correct answers
A.
When defining a domain, you can add a default value and constraints to the original data.
B.
Domain is a namespace existing between databases and objects such as tables.
C.
A domain is created by 'CREATE DOMAIN'.
D.
A domain can be used as a column type when defining a table.
E.
To define a domain, both input and output functions are required.

Quiz

5/10
Select two suitable statements regarding the data types of PostgreSQL.
Select the answer
2 correct answers
A.
One field can handle up to 1GB of data.
B.
'n'in CHARACTER(n) represents the number of bytes.
C.
Only the INTEGER type can be declared as an array.
D.
There is a non-standard PostgreSQL data type, called Geometric data type, which handles 2dimensional data.
E.
A large object data type can be used to store data of unlimited size.

Quiz

6/10
The table "score" is defined as follows: gid | score + 1 | 70 1 | 60 2 | 100 3 | 80 3 | 50 The following query was executed. Select the number of rows in the result. SELECT gid, max(score) FROM score GROUP BY gid HAVING max(score) > 60;
Select the answer
1 correct answer
A.
1 row
B.
2 rows
C.
3 rows
D.
4 rows
E.
5 rows

Quiz

7/10
Table "t1" is defined as follows: CREATE TABLE t1 (value VARCHAR(5)); A set of SQL statements were executed in the following order.Select thenumber 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;
Select the answer
1 correct answer
A.
1 row
B.
2 rows
C.
3 rows
D.
4 rows
E.
0 rows

Quiz

8/10
Select two suitable statements about sequences.
Select the answer
2 correct answers
A.
A sequence always returns a 4-byte INTEGER type value, so the maximum value is 2147483647.
B.
A sequence is defined by 'CREATE SEQUENCE', and deleted by 'DROP SEQUENCE'.
C.
Although the "nextval" function is called during a transaction, it will have no effect if that transaction is rolled back.
D.
A sequence always generates 0 or consecutive positive numbers.
E.
A sequence number can be set by calling the "setval" function.

Quiz

9/10
The "sample" table consists of the following data: How many rows are returned by executing the following SQL statement? SELECT DISTINCT ON (data) * FROM sample;
Select the answer
1 correct answer
A.
2 rows
B.
3 rows
C.
4 rows D. 5 rows
D.
6 rows

Quiz

10/10
The following SQL statements were executed using psql. Select the appropriate statement about the result. LISTEN sign_v; BEGIN; NOTIFY sign_v; COMMIT; LISTEN sign_v;
Select the answer
1 correct answer
A.
At the point that 'NOTIFY sign_v' is executed, a message that starts with "Asynchronous notification 'sign_v' received" is output.
B.
At the point that 'COMMIT' is executed, a message that starts with "Asynchronous notification 'sign_v' received" is output.
C.
At the point that 'SELECT * FROM pg_user;" is executed, a message that starts with "Asynchronous notification 'sign_v' received" is output.
D.
When 'LISTEN sign_v' is executed for the second time, a message that starts with "Asynchronous notification 'sign_v' received" is output.
E.
The message "Asynchronous notification 'sign_v' received" is not received while in this connection.
Looking for more questions?Buy now

PostgreSQL-PGCES-02 Practice test unlocks all online simulator questions

Thank you for choosing the free version of the PostgreSQL-PGCES-02 practice test! Further deepen your knowledge on PostgreSQL Simulator; by unlocking the full version of our PostgreSQL-PGCES-02 Simulator you will be able to take tests with over 141 constantly updated questions and easily pass your exam. 98% of people pass the exam in the first attempt after preparing with our 141 questions.

BUY NOW

What to expect from our PostgreSQL-PGCES-02 practice tests and how to prepare for any exam?

The PostgreSQL-PGCES-02 Simulator Practice Tests are part of the PostgreSQL Database and are the best way to prepare for any PostgreSQL-PGCES-02 exam. The PostgreSQL-PGCES-02 practice tests consist of 141 questions and are written by experts to help you and prepare you to pass the exam on the first attempt. The PostgreSQL-PGCES-02 database includes questions from previous and other exams, which means you will be able to practice simulating past and future questions. Preparation with PostgreSQL-PGCES-02 Simulator will also give you an idea of the time it will take to complete each section of the PostgreSQL-PGCES-02 practice test . It is important to note that the PostgreSQL-PGCES-02 Simulator does not replace the classic PostgreSQL-PGCES-02 study guides; however, the Simulator provides valuable insights into what to expect and how much work needs to be done to prepare for the PostgreSQL-PGCES-02 exam.

BUY NOW

PostgreSQL-PGCES-02 Practice test therefore represents an excellent tool to prepare for the actual exam together with our PostgreSQL practice test . Our PostgreSQL-PGCES-02 Simulator will help you assess your level of preparation and understand your strengths and weaknesses. Below you can read all the quizzes you will find in our PostgreSQL-PGCES-02 Simulator and how our unique PostgreSQL-PGCES-02 Database made up of real questions:

Info quiz:

  • Quiz name:PostgreSQL-PGCES-02
  • Total number of questions:141
  • Number of questions for the test:50
  • Pass score:80%

You can prepare for the PostgreSQL-PGCES-02 exams with our mobile app. It is very easy to use and even works offline in case of network failure, with all the functions you need to study and practice with our PostgreSQL-PGCES-02 Simulator.

Use our Mobile App, available for both Android and iOS devices, with our PostgreSQL-PGCES-02 Simulator . You can use it anywhere and always remember that our mobile app is free and available on all stores.

Our Mobile App contains all PostgreSQL-PGCES-02 practice tests which consist of 141 questions and also provide study material to pass the final PostgreSQL-PGCES-02 exam with guaranteed success. Our PostgreSQL-PGCES-02 database contain hundreds of questions and PostgreSQL Tests related to PostgreSQL-PGCES-02 Exam. This way you can practice anywhere you want, even offline without the internet.

BUY NOW