
Updated Apr 10, 2026 Verified Pass PostgreSQL-Essentials Exam in First Attempt Guaranteed
Free PostgreSQL-Essentials Sample Questions and 100% Cover Real Exam Questions (Updated 90 Questions)
EnterpriseDB PostgreSQL-Essentials Exam Syllabus Topics:
| Topic | Details |
|---|---|
| Topic 1 |
|
| Topic 2 |
|
| Topic 3 |
|
| Topic 4 |
|
| Topic 5 |
|
| Topic 6 |
|
| Topic 7 |
|
| Topic 8 |
|
NEW QUESTION # 44
Which pg_restore option allows you to drop database objects before recreating them?
- A. --drop-all
- B. -c or --clean
- C. -r
- D. -d
Answer: B
NEW QUESTION # 45
You want to take a data-only dump of the edbstore database, disable all triggers for faster restore, and use the INSERT command instead of COPY. Which pg_dump command options should you use?
- A. -a --copy --disable-triggers
- B. -d --inserts --disable-triggers
- C. --data-only --inserts
- D. -a --inserts --disable-triggers
Answer: D
NEW QUESTION # 46
You need to restore only the schema from a custom format backup file. Which pg_restore option should you use?
- A. -s
- B. Both B and C
- C. --data-only
- D. --schema-only
Answer: B
NEW QUESTION # 47
Which command rebuilds an index that is performing slowly for better performance?
- A. REBUILD INDEX indexname;
- B. REINDEX INDEX indexname;
- C. VACUUM INDEX indexname;
- D. ANALYZE INDEX indexname;
Answer: B
NEW QUESTION # 48
You want to export the emp table to a CSV file with column headers using the COPY command. Which command should you use?
- A. COPY emp TO '/path/emp.csv' DELIMITER ',' HEADER;
- B. COPY emp TO '/path/emp.csv' WITH CSV HEADER;
- C. COPY emp TO '/path/emp.csv' WITH CSV;
- D. EXPORT emp TO '/path/emp.csv' CSV HEADER;
Answer: B
NEW QUESTION # 49
Which parameter sets the number of autovacuum worker processes?
- A. autovacuum_workers
- B. autovacuum_max_workers
- C. vacuum_workers
- D. max_autovacuum_workers
Answer: B
NEW QUESTION # 50
You are writing an initialization script to help your team in creating a new database cluster. You want to ensure that a new database cluster is initialized with md5 as the default authentication method. Which of the following options of the initdb command can be used to specify the default authentication method?
- A. -db-auth
- B. -A
- C. -U
- D. -authenticate
Answer: B
NEW QUESTION # 51
Autocommit occurs in which of the following situations?
- A. None of the above
- B. On DML and DDL statements
- C. All DDL statements
- D. All DML statements
Answer: C
NEW QUESTION # 52
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. e
- B. \r
- C. \e
- D. \l
Answer: C
NEW QUESTION # 53
In PostgreSQL 13, what is the difference between GENERATED ALWAYS AS IDENTITY and GENERATED BY DEFAULT AS IDENTITY?
- A. ALWAYS uses UUID, BY DEFAULT uses serial
- B. BY DEFAULT prevents manual insertion
- C. ALWAYS prevents manual value insertion, BY DEFAULT allows it
- D. They are identical
Answer: C
NEW QUESTION # 54
Which psql command quits the psql interface?
- A. \q
- B. \quit
- C. All of the above
- D. \exit
Answer: C
NEW QUESTION # 55
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 -quiet -d databasename -U username
- B. psql -f sqldumpfilename -1 -d databasename -U username
- C. psql -f sqldumpfilename --all -d databasename -U username
- D. psql -f sqldumpfilename --tuples -d databasename -U username
Answer: B
NEW QUESTION # 56
You want to gracefully terminate a user's connection to the database. Which function should you use?
- A. pg_disconnect_backend(pid)
- B. pg_kill_backend(pid)
- C. pg_cancel_backend(pid)
- D. pg_terminate_backend(pid)
Answer: D
NEW QUESTION # 57
Which query displays the name and size of all databases in your cluster using a meaningful unit?
- A. SHOW DATABASE SIZE;
- B. SELECT datname, pg_database_size(datname) FROM pg_database;
- C. SELECT name, size FROM pg_database;
- D. SELECT datname, pg_size_pretty(pg_database_size(datname)) AS size FROM pg_database;
Answer: D
NEW QUESTION # 58
What is the purpose of the checkpoint_timeout configuration parameter in PostgreSQL?
- A. To set backup timeout interval
- B. To set the time limit for query execution
- C. To control the maximum time between automatic WAL checkpoints
- D. To define connection timeout
Answer: C
NEW QUESTION # 59
In PostgreSQL 13, which command is used to switch your connection to a different database in psql?
- A. SET DATABASE dbname;
- B. SWITCH dbname;
- C. USE dbname;
- D. \connect dbname
Answer: D
NEW QUESTION # 60
Which psql meta-command is used to describe a table including its structure, columns, and constraints?
- A. \dt tablename
- B. \describe tablename
- C. \show tablename
- D. \d tablename
Answer: D
NEW QUESTION # 61
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. No such option is available in PostgreSQL
- B. -x
- C. --waldir
- D. --wal-segsize
Answer: D
NEW QUESTION # 62
You want to execute SQL commands from a file using psql. Which command should you use?
- A. \i filename
- B. \f filename
- C. \e filename
- D. \run filename
Answer: A
NEW QUESTION # 63
Which parameter controls the amount of memory allocated for maintenance operations like VACUUM and CREATE INDEX?
- A. work_mem
- B. maintenance_work_mem
- C. vacuum_mem
- D. temp_buffers
Answer: B
NEW QUESTION # 64
Which psql meta-command lists all schemas in the current database?
- A. \dn
- B. \schemas
- C. \ls
- D. \ds
Answer: A
NEW QUESTION # 65
In PostgreSQL, archiving can be enabled for hot backups. During recovery, all the archive logs can be played on the restored backup and Point-in-Time Recovery can be performed. Which of the following parameters directly influences Mean Time to Recovery and is also used to control the size of the WAL area?
- A. max_wal_size
- B. wal_size
- C. checkpoint_timeout
- D. wal_level
Answer: A
NEW QUESTION # 66
Which utility is used to take a backup of all databases in a PostgreSQL cluster including roles and tablespaces?
- A. pg_dumpall
- B. pg_clusterbackup
- C. pg_backup
- D. pg_dump
Answer: A
NEW QUESTION # 67
......
Download Real EnterpriseDB PostgreSQL-Essentials Exam Dumps Test Engine Exam Questions: https://braindumps.actual4exams.com/PostgreSQL-Essentials-real-braindumps.html