Spring Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: buysanta

Exact2Pass Menu

PostgreSQL Essentials Certification v13

Last Update 20 hours ago Total Questions : 116

The PostgreSQL Essentials Certification v13 content is now fully updated, with all current exam questions added 20 hours ago. Deciding to include PostgreSQL-Essentials practice exam questions in your study plan goes far beyond basic test preparation.

You'll find that our PostgreSQL-Essentials exam questions frequently feature detailed scenarios and practical problem-solving exercises that directly mirror industry challenges. Engaging with these PostgreSQL-Essentials sample sets allows you to effectively manage your time and pace yourself, giving you the ability to finish any PostgreSQL Essentials Certification v13 practice test comfortably within the allotted time.

Question # 11

PostgreSQL supports SQL dump backup. You have configured a nightly backup of a database in plain SQL dump format. Due to database corruption, you need to restore your database using the SQL dump backup. Which of the following commands can be used to restore a SQL dump?

A.

psql -f sqldumpfilename --all -d databasename -U username

B.

psql -f sqldumpfilename --tuples -d databasename -U username

C.

psql -f sqldumpfilename -1 -d databasename -U username

D.

psql -f sqldumpfilename -quiet -d databasename -U username

Question # 12

You want to export query results to a CSV file from psql. Which command should you use?

A.

\copy tablename TO ' filename.csv ' CSV

B.

EXPORT TO ' filename.csv '

C.

\export filename.csv

D.

SAVE AS ' filename.csv '

Question # 13

You are connected to a PostgreSQL database. After executing a complex query an error message is displayed. You want to edit and rerun the previously executed query. Which command can be used to edit the query buffer?

A.

\l

B.

\r

C.

\e

D.

e

Question # 14

In PostgreSQL 13, which parameter must be set to enable WAL archiving for Point-in-Time Recovery?

A.

wal_level must be set to replica or higher

B.

wal_archiving must be set to on

C.

archive_level must be set to full

D.

backup_mode must be set to archive

Question # 15

Examine the following SQL:

CREATE VIEW vw_emp_details AS SELECT ename, sal, sal*12 AS annsal FROM emp;

After creating the above view, what will be the result of the following query?

UPDATE vw_emp_details SET annsal = annsal + 100;

A.

Error: Views cannot be updated

B.

Error: Cannot update column annsal

C.

Statement executes successfully but none of the rows of emp table are modified

D.

Statement executes successfully and all the rows of emp table are modified

Question # 16

In PostgreSQL, which view provides information about currently running queries?

A.

pg_stat_activity

B.

pg_current_queries

C.

pg_running_queries

D.

pg_active_sessions

Question # 17

You are working as a Postgres DBA. Due to an increase in transactional load on your Postgres instance, the server is experiencing frequent checkpoints. You have decided to increase the WAL area size. You have also decided to upgrade your database instance to PostgreSQL 13. While initializing your database cluster in PostgreSQL 13, you have decided to increase the WAL segment size. Which of the following options can be used with the initdb command to set a custom WAL segment size?

A.

=- waldir

B.

--wal-segsize

C.

-x

D.

No such option is available in PostgreSQL

Question # 18

You are connected to a database in PostgreSQL using the psql tool. Which of the following commands can be used to view the cluster data directory?

A.

SELECT data_dir FROM pg_settings;

B.

SHOW DIRECTORY;

C.

SELECT server_dir FROM pg_settings;

D.

SHOW DATA_DIRECTORY;

Question # 19

You need to restore a database from a compressed format backup file created with pg_dump -Fc option. Which utility should you use?

A.

psql

B.

pg_restore

C.

pg_dump

D.

pg_basebackup

Question # 20

You want to configure your cluster to run in archive mode for Point-in-Time Recovery. Which parameter must you set in postgresql.conf?

A.

archive_mode = on

B.

wal_archive = on

C.

archiving = on

D.

backup_mode = on

Go to page: