Docsity

EDB Postgres Advanced Server 10 Professional Practice Exam, Exams of Technology

Toggle sidebar
bg1
EDB Postgres Advanced Server 10 Professional Practice
Exam
**Question 1. Which background process in EPAS is responsible for writing dirty
buffers to the data files?**
A) Checkpointer
B) Writer
C) WAL Writer
D) Autovacuum Launcher
Answer: B
Explanation: The Writer process periodically flushes dirty shared buffers to the
underlying data files, reducing the amount of work the Checkpointer must do.
**Question 2. In EPAS, which configuration file defines client authentication
methods?**
A) postgresql.conf
B) pg_hba.conf
C) edb.conf
D) pg_ident.conf
Answer: B
Explanation: pg_hba.conf contains host‑based authentication rules that specify
the method (trust, md5, scram‑sha‑256, etc.) for each connection.
**Question 3. Which EPAS data type is an exact Oracle‑compatible equivalent of
NUMBER(10,2)?**
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download EDB Postgres Advanced Server 10 Professional Practice Exam and more Exams Technology in PDF only on Docsity!

Exam

Question 1. Which background process in EPAS is responsible for writing dirty buffers to the data files? A) Checkpointer B) Writer C) WAL Writer D) Autovacuum Launcher Answer: B Explanation: The Writer process periodically flushes dirty shared buffers to the underlying data files, reducing the amount of work the Checkpointer must do. Question 2. In EPAS, which configuration file defines client authentication methods? A) postgresql.conf B) pg_hba.conf C) edb.conf D) pg_ident.conf Answer: B Explanation: pg_hba.conf contains host‑based authentication rules that specify the method (trust, md5, scram‑sha‑256, etc.) for each connection. Question 3. Which EPAS data type is an exact Oracle‑compatible equivalent of NUMBER(10,2)?

Exam

A) NUMERIC(10,2)

B) DECIMAL(10,2)

C) INTEGER

D) MONEY

Answer: A Explanation: NUMERIC(p,s) in EPAS matches Oracle’s NUMBER(p,s) semantics, preserving precision and scale. Question 4. The initdb utility is used to: A) Upgrade an existing cluster B) Create a new database cluster C) Perform a logical backup D) Start the EPAS service Answer: B Explanation: initdb initializes a new PostgreSQL/EPAS data directory, creating system catalogs and default configuration files. Question 5. Which parameter controls the amount of memory used for shared buffers? A) work_mem B) maintenance_work_mem

Exam

Answer: C Explanation: CREATE ROLE … LOGIN (or CREATE USER) creates a login role; without additional GRANTs it has no privileges. Question 8. What does the pg_stat_activity view show? A) Table statistics B) Current queries and session state C) Disk I/O counters D) WAL archive status Answer: B Explanation: pg_stat_activity lists each backend’s PID, current query, state, and other session‑level information. Question 9. Which index type is most suitable for full‑text search in EPAS? A) B‑tree B) Hash C) GIN D) GiST Answer: C Explanation: GIN indexes efficiently handle array and full‑text search operators, making them ideal for tsvector columns.

Exam

Question 10. In EPAS, the parameter checkpoint_timeout defines: A) Maximum time between WAL checkpoints B) Time to wait for a client connection C) Interval for autovacuum runs D) Duration of a transaction lock Answer: A Explanation: checkpoint_timeout specifies the maximum elapsed time before the server forces a checkpoint, writing dirty buffers and WAL. Question 11. Which of the following statements about replication slots is true? A) They are only used for logical replication. B) They prevent the primary from removing WAL files needed by a standby. C) They automatically increase max_wal_size. D) They replace the need for pg_basebackup. Answer: B Explanation: Physical replication slots retain WAL segments on the primary until all standbys have consumed them, avoiding data loss. Question 12. To grant SELECT privilege on all tables in schema public to role analyst, which command is correct?

Exam

C) Stronger password hashing using SCRAM D) Kerberos ticket verification Answer: C Explanation: scram‑sha‑256 implements the SCRAM authentication mechanism, providing salted hashing and protection against replay attacks. Question 15. Which command performs a logical backup of a single schema named sales? A) pg_dump - Fc - n sales - f sales.dump mydb B) pg_basebackup - D /backup - n sales C) pg_dumpall - s - n sales > sales.sql D) pg_dump - t sales.* - f sales.sql mydb Answer: A Explanation: pg_dump with - n sales exports only the specified schema; - Fc creates a custom-format dump. Question 16. In EPAS, the “effective_cache_size” parameter is used by the planner to: A) Allocate shared memory B) Estimate how much OS cache is available for PostgreSQL data C) Limit the size of autovacuum workers D) Set the maximum size of a single query plan node

Exam

Answer: B Explanation: effective_cache_size is a rough estimate of the total memory the OS will use for caching the database, influencing cost estimates. Question 17. Which view provides statistics about index usage and bloat? A) pg_stat_user_indexes B) pg_stat_all_tables C) pg_stat_activity D) pg_statio_user_tables Answer: A Explanation: pg_stat_user_indexes reports per‑index statistics such as scans, tuples read, and can be used to detect unused or bloated indexes. Question 18. To create a declarative range partitioned table “orders” partitioned by month, which clause is required? A) PARTITION BY RANGE (order_date) B) PARTITION BY LIST (order_month) C) PARTITION BY HASH (order_id) D) PARTITION BY INTERVAL (order_date) Answer: A Explanation: Declarative partitioning uses PARTITION BY RANGE (column) to split data into monthly ranges.

Exam

A) trust B) peer C) ident D) ldap Answer: B Explanation: peer authentication checks that the client’s operating‑system user matches the requested PostgreSQL role. Question 22. In EPAS, setting “max_connections” to a high value without adjusting “shared_buffers” may cause: A) Faster query execution B) Excessive memory consumption and possible OOM C) Reduced WAL archiving time D) Automatic load balancing across nodes Answer: B Explanation: Each connection consumes memory; if max_connections is high but shared_buffers is low, the server may exhaust RAM. Question 23. Which command disables a specific replication slot named “slot1”? A) SELECT pg_drop_replication_slot('slot1'); B) ALTER REPLICATION SLOT slot1 DISABLE;

Exam

C) DROP REPLICATION SLOT slot1; D) SELECT pg_disable_replication_slot('slot1'); Answer: A Explanation: pg_drop_replication_slot removes the slot, stopping its retention of WAL files. Question 24. To allow a user to create databases, which privilege must be granted? A) CREATEDB B) CREATEUSER C) SUPERUSER D) CREATEROLE Answer: A Explanation: The CREATEDB attribute (or GRANT CREATEDB) permits a role to run CREATE DATABASE. Question 25. Which of the following is a correct way to enable the plsql extension in a database? A) CREATE EXTENSION plsql; B) LOAD 'plsql'; C) SET plsql.enabled = true; D) ALTER DATABASE mydb SET plsql = on;

Exam

Question 28. What does the “autovacuum_naptime” parameter control? A) Frequency of checkpoint operations B) Delay between autovacuum daemon cycles C) Minimum time a table must be idle before vacuum D) Interval for statistics collector runs Answer: B Explanation: autovacuum_naptime sets the sleep time between autovacuum launcher cycles. Question 29. Which command creates a database link to a remote EPAS server named “remote_srv”? A) CREATE SERVER remote_srv FOREIGN DATA WRAPPER postgres_fdw OPTIONS (host 'remoteserver'); B) CREATE DATABASE LINK remote_srv CONNECT TO user IDENTIFIED BY pwd USING 'remoteserver'; C) SELECT dblink_connect('remote_srv', 'host=remoteserver dbname=remotedb user=app password=secret'); D) CREATE EXTENSION dblink; Answer: C Explanation: dblink_connect establishes a connection to a remote database; the other statements are for FDW or Oracle syntax.

Exam

Question 30. Which of the following is NOT a valid EPAS background process? A) Archiver B) Background Writer C) Checkpointer D) Query Optimizer Answer: D Explanation: Query optimization occurs in the frontend process handling a query, not as a separate background daemon. Question 31. To limit the amount of WAL retained for a standby, which setting should be adjusted on the primary? A) wal_keep_segments B) max_wal_size C) archive_mode D) checkpoint_completion_target Answer: A Explanation: wal_keep_segments (or wal_keep_size in newer versions) defines how many WAL files to keep for standby servers that may fall behind. Question 32. Which command changes the default tablespace for a newly created database to “fast_ts”? A) ALTER DATABASE mydb SET default_tablespace = fast_ts;

Exam

Answer: B Explanation: GSSAPI (often Kerberos) validates client tickets for authentication. Question 35. In EPAS, which parameter controls the size of the WAL buffer allocated in shared memory? A) wal_buffers B) wal_writer_delay C) checkpoint_timeout D) max_wal_size Answer: A Explanation: wal_buffers determines the amount of shared memory dedicated to buffering WAL data before it is written to disk. Question 36. Which command forces a full checkpoint and writes all dirty buffers to disk? A) SELECT pg_switch_wal(); B) CHECKPOINT; C) SELECT pg_reload_conf(); D) SELECT pg_rotate_logfile(); Answer: B Explanation: The SQL command CHECKPOINT triggers an immediate checkpoint, flushing buffers and updating the checkpoint record.

Exam

Question 37. Which view provides information about replication lag on a standby? A) pg_stat_replication B) pg_stat_activity C) pg_stat_wal_receiver D) pg_replication_status Answer: C Explanation: pg_stat_wal_receiver reports the state and receive lag of the WAL receiver process on a standby. Question 38. To enable synchronous replication with a standby named “standby1”, which parameter must include its name? A) synchronous_standby_names B) primary_conninfo C) hot_standby D) max_wal_senders Answer: A Explanation: synchronous_standby_names lists standby servers that must confirm receipt of WAL before the transaction is considered committed.

Exam

B) Dump the entire cluster, including roles and tablespaces C) Perform a physical backup D) Export data in CSV format only Answer: B Explanation: pg_dumpall creates a logical dump of all databases, plus global objects such as roles and tablespaces. Question 42. Which command creates a stored procedure named “calc_tax” using PL/SQL syntax? A) CREATE FUNCTION calc_tax() RETURNS numeric AS $$ BEGIN … END; $$ LANGUAGE plpgsql; B) CREATE PROCEDURE calc_tax() LANGUAGE plsql AS $$ BEGIN … END; $$; C) CREATE PROCEDURE calc_tax() AS $$ BEGIN … END; $$ LANGUAGE sql; D) CREATE OR REPLACE FUNCTION calc_tax() LANGUAGE plsql; Answer: B Explanation: In EDB, CREATE PROCEDURE … LANGUAGE plsql defines an Oracle‑compatible PL/SQL stored procedure. Question 43. What is the effect of setting “log_min_duration_statement = 0”? A) No statements are logged B) Only statements longer than 0 ms are logged (i.e., all)

Exam

C) Only statements that cause errors are logged D) Only statements shorter than 0 ms are logged Answer: B Explanation: log_min_duration_statement = 0 logs the execution time of every completed statement. Question 44. Which of the following is true about the “pg_hba.conf” rule order? A) Rules are evaluated randomly B) The first matching rule is applied and later rules are ignored C) All matching rules are applied cumulatively D) Order does not matter if method is the same Answer: B Explanation: pg_hba.conf is processed top‑down; the first rule that matches the connection parameters determines the authentication method. Question 45. To reduce the impact of long‑running transactions on vacuum, which parameter can be lowered? A) vacuum_cost_delay B) vacuum_freeze_min_age C) autovacuum_vacuum_cost_limit D) deadlock_timeout