PGCES 02 S
PGCES 02 S
PGCES 02 S
We guarantee you can pass any IT certification exam at your first attempt with just 10-12
hours study of our guides.
Our study guides contain actual exam questions, you will get word to word same on your
actual test; accurate answers with detailed explanation verified by experts and all graphics
and drag-n-drop exhibits shown just as on the real test.
To test the quality of our guides, you can download the one-fourth portion of any guide from
http://www.certificationking.com absolutely free.
Besides, we also offer complete version of following exams absolutely free. You can start
your certification from these free guides and if you are satisfied you can buy the rest
♦ Microsoft: 70-270, 70-305 ♦ Cisco: 642-901 ♦ Oracle: 1Z0-007, 200 ♦ CompTIA: 220-601
♦ SUN: 310-014, 310-044 ♦ Citrix: 1Y0-A01, 1Y0-256 ♦ CIW: 1D0-420 ♦ Novell: 50-686
♦ Adobe: 9A0-029 ♦ Apple: 9L0-005, 9L0-505 ♦ Avaya: 132-S-100 ♦ Cognos: COG-105
♦ CWNP: PW0-100 ♦ EMC: E20-001 ♦ Hyperion: 4H0-002 ♦ HP: HP0-771, HP0-J24
♦ IBM: 000-253, 000-700 ♦ Juniper: JN0-100, JN0-201 ♦ Lotus: LOT-739
♦ Nortel: 920-803 ♦ SAS: A00-201 ♦ SNIA: S10-100 ♦ Sybase: 510-015
♦ Symantec: 250-101 ♦ TeraData: NR0-011
For other payment options and any further query, feel free to mail us at
[email protected]
PostgreSQL CE PGCES-02: Practice Exam
QUESTION NO: 1
Answer: A,E
QUESTION NO: 2
A. DIRTY READ
B. READ COMMITTED
C. REPEATABLE READ
D. PHANTOM READ
E. SERIALIZABLE
Answer: B,E
QUESTION NO: 3
PostgreSQL can use an index to access a table. Select two incorrect statements about indexes.
Answer: D,E
QUESTION NO: 4
2
PostgreSQL CE PGCES-02: Practice Exam
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.
Answer: B,E
QUESTION NO: 5
Answer: A,D
QUESTION NO: 6
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;
A. 1 row
B. 2 rows
C. 3 rows
D. 4 rows
E. 5 rows
3
PostgreSQL CE PGCES-02: Practice Exam
Answer: C
QUESTION NO: 7
SAVEPOINT point1;
INSERT INTO t1 VALUES ('BB');
SAVEPOINT point2;
INSERT INTO t1 VALUES ('CC');
ROLLBACK TO point1;
INSERT INTO t1 VALUES ('DD');
END;
A. 1 row
B. 2 rows
C. 3 rows
D. 4 rows
E. 0 rows
Answer: B
QUESTION NO: 8
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.
4
PostgreSQL CE PGCES-02: Practice Exam
Answer: B,E
QUESTION NO: 9
A. 2 rows
B. 3 rows
C. 4 rows D. 5 rows
E. 6 rows
Answer: B
QUESTION NO: 10
LISTEN sign_v;
BEGIN;
NOTIFY sign_v;
COMMIT;
LISTEN sign_v;
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.
Answer: B
5
PostgreSQL CE PGCES-02: Practice Exam
QUESTION NO: 11
Select the correct SQL statement which concatenates strings 'ABC' and 'abc' to form 'ABCabc'.
A. SELECT'ABC' . 'abc';
B. SELECTcat('ABC', 'abc') FROM pg_operator;
C. SELECT 'ABC' + 'abc';
D. SELECT 'ABC' + 'abc' FROM pg_operator;
E. SELECT 'ABC' || 'abc';
Answer: E
QUESTION NO: 12
Answer: B,C
QUESTION NO: 13
t1:
The following SQL is executed while client "A" is connected. BEGIN;
SELECT * FROM t1 WHERE id = 2 FOR UPDATE;
SELECT * FROM t1 WHERE id = 1 FOR UPDATE; -- (*)
While the second 'SELECT' statement, shown with (*), is being executed, a separate client "B"
connects and executes the following SQL.
Select the correct statement about the execution results.
A. The update process for client "B" is blocked until the current connection for client "A" is
finished.
6
PostgreSQL CE PGCES-02: Practice Exam
B. The update process for client "B" is blocked until the current transaction for client "A" is
finished.
C. The 'UPDATE' process for client "B" proceeds regardless of the condition of client "A".
D. The process of client "B" immediately generates an error.
E. The processes for both clients are blocked, and an error stating that a deadlock has been
detected is generated.
Answer: B
QUESTION NO: 14
Answer: A,C
QUESTION NO: 15
A. SELECT 0 = NULL;
B. SELECTNULL != NULL;
C. SELECT NULL IS NULL;
D. SELECT NULL;
E. SELECT 'null'::TEXT;
Answer: A,B,D
7
PostgreSQL CE PGCES-02: Practice Exam
QUESTION NO: 16
id | email | introducer
----+-----------------+------------
2 | [email protected] | 1
3 | [email protected] | 2
4 | [email protected] | 2
Three SQL statements were executed in the following order: INSERT INTO custom
SELECT max(id) + 1, '[email protected]', 4 FROM custom;
A. 0 rows
B. 1 row
C. 2 rows
D. 3 rows
E. 4 rows
Answer: C
QUESTION NO: 17
A. 0 rows
B. 1 row
8
PostgreSQL CE PGCES-02: Practice Exam
C. 2 rows
D. 3 rows
E. 4 rows
Answer: C
QUESTION NO: 18
Select an incorrect statement regarding the following SQL statement. Note that "user_view" is a
view.
CREATE OR REPLACE RULE rule_1 AS ON UPDATE TO user_view DO INSTEAD NOTHING;
Answer: D
QUESTION NO: 19
Answer: A
QUESTION NO: 20
Four SQL statements were executed in the following order. CREATE TABLE foo (bar INT);
ALTER TABLE foo ALTER bar TYPE BIGINT;
Answer: B,D
QUESTION NO: 21
A table named "sample" is defined as below. Select two statements which will generate a
constraint error.
CREATE TABLE sample (
j INTEGER,
CHECK ( i > 0 AND j < 0 )
);
Answer: A,D
QUESTION NO: 22
The following is the result of executing the createlang command which is installed with
PostgreSQL.
$ createlang -U postgres --list mydb
Procedural Languages
Name | Trusted?
---------+----------
plpgsql | yes
Select two correct statements from below.
10
PostgreSQL CE PGCES-02: Practice Exam
A. The procedural languageplpgsql is installed in the database mydb using the above command.
B. The procedural languageplpgsql can be used in the database mydb.
C. plpgsql is a trusted language, so it can execute the OS commands on the server side.
D. plpgsql is a trusted language, so it can read/write OS files on the server side.
E. plpgsql is a safe language with restricted operations.
Answer: B,E
QUESTION NO: 23
Given the following two table definitions, select one SQL statement which will cause an error.
CREATE TABLE sample1 (id INTEGER, data TEXT);
CREATE TABLE sample2 (id INTEGER);
Answer: E
QUESTION NO: 24
Answer: B,E
QUESTION NO: 25
A. 2 rows
B. 3 rows
C. 4 rows
D. 5 rows
E. 6 rows
Answer: D
QUESTION NO: 26
Select two suitable statements about major version upgrades of PostgreSQL from below.
Answer: C,D
QUESTION NO: 27
Answer: D
QUESTION NO: 28
12
PostgreSQL CE PGCES-02: Practice Exam
C. It can be freely redistributed.
D. Developers are responsible for its maintenance support.
E. Developers are only responsible for handling its crucial faults.
Answer: D,E
QUESTION NO: 29
Answer: E
QUESTION NO: 30
Select the most suitable statement about the PostgreSQL license from below.
Answer: D
QUESTION NO: 31
Answer: B
13
PostgreSQL CE PGCES-02: Practice Exam
QUESTION NO: 32
I would like to insert the contents of the text file users.dat into the table t1 using psql. Contents of
text file users.dat:
Definition of table t1:
CREATE TABLE t1 (uname TEXT, pass TEXT, id INTEGER); Select the most appropriate input
from those below.
Answer: A
QUESTION NO: 33
Answer: B
QUESTION NO: 34
What does the following command do? Select two correct descriptions regarding this SQL
statement.
SELECT * FROM information_schema.tables;
14
PostgreSQL CE PGCES-02: Practice Exam
Answer: A,D
QUESTION NO: 35
Select two correct statements that describe what occurs on the client side when the following
command is executed.
pg_ctl -m smart stop
Answer: A,D
QUESTION NO: 36
Select two correct statements about the command shown below. Note: $ is the command prompt.
$ pg_ctl reload
A. The command forces the content of pg_hba.conf to be re-read into PostgreSQL server
process.
B. The command temporarily stops the PostgreSQL server process and restart it.
C. The command re-reads the postgresql.conf details into the PostgreSQL server process and
changes the values of any configuration parameters that can be changed.
D. The command forces the content of the database cluster to be re-read into PostgreSQL
server process.
E. The command causes a recovery to be performed from a standard backup file in the
PostgreSQLserver process.
Answer: A,C
QUESTION NO: 37
I would like to set the default character encoding for the client to Unicode.
Select the most appropriate configuration parameter in postgresql.conf from those below.
A. backend_encoding = UNICODE
B. frontend_encoding = UNICODE
15