Docsity

EDB Postgres Advanced Server 12 Associate Practice Exam, Exams of Technology

Toggle sidebar
bg1
EDB Postgres Advanced Server 12 Associate Practice
Exam
**Question 1.** Which EPAS process is responsible for writing dirty shared buffers
to the WAL (Write‑Ahead Log) on a regular interval?
A) Background Writer
B) WAL Writer
C) Checkpointer
D) Autovacuum Daemon
Answer: B
Explanation: The WAL Writer process periodically flushes WAL buffers to disk,
ensuring durability of committed transactions.
**Question 2.** In EPAS, what is the primary purpose of the “freeze” operation
on transaction IDs (XIDs)?
A) To reduce the size of the transaction log
B) To prevent XID wraparound which could corrupt data
C) To speed up query planning
D) To enable parallel query execution
Answer: B
Explanation: Freezing marks old XIDs as permanently committed, preventing
wraparound that would otherwise cause transaction ID collisions.
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 12 Associate Practice Exam and more Exams Technology in PDF only on Docsity!

Exam

Question 1. Which EPAS process is responsible for writing dirty shared buffers to the WAL (Write‑Ahead Log) on a regular interval? A) Background Writer B) WAL Writer C) Checkpointer D) Autovacuum Daemon Answer: B Explanation: The WAL Writer process periodically flushes WAL buffers to disk, ensuring durability of committed transactions. Question 2. In EPAS, what is the primary purpose of the “freeze” operation on transaction IDs (XIDs)? A) To reduce the size of the transaction log B) To prevent XID wraparound which could corrupt data C) To speed up query planning D) To enable parallel query execution Answer: B Explanation: Freezing marks old XIDs as permanently committed, preventing wraparound that would otherwise cause transaction ID collisions.

Exam

Question 3. Which of the following is a feature that distinguishes EPAS from vanilla PostgreSQL? A) Support for JSONB data type B) Built‑in Oracle compatibility package C) Logical replication D) Table partitioning Answer: B Explanation: EPAS includes the EDB Compatibility Package that provides Oracle‑compatible data types, functions, and syntax. Question 4. The EPAS configuration file that corresponds to PostgreSQL’s postgresql.conf is named: A) epas.conf B) edb.conf C) postgresql.conf (same name) D) epas_server.conf Answer: C Explanation: EPAS uses the same postgresql.conf file; the file name is not changed.

Exam

Question 7. In pg_hba.conf, which authentication method stores passwords using a salted SHA‑256 hash? A) trust B) md C) scram‑sha‑ 256 D) password Answer: C Explanation: scram-sha-256 provides stronger password hashing than MD5, using salted SHA‑256. Question 8. Which pg_hba.conf entry would allow any user from the host 10.0.0.5 to connect to database sales using MD5 authentication? A) host sales all 10.0.0.5/32 md B) host all sales 10.0.0.5/32 md C) host sales all 10.0.0.5 md D) host all all 10.0.0.5/32 md Answer: A Explanation: The format is host <database> <user> <address> <method>. “all” for user means any user.

Exam

Question 9. Which parameter controls the maximum number of simultaneous client connections EPAS will accept? A) max_connections B) shared_buffers C) work_mem D) max_worker_processes Answer: A Explanation: max_connections sets the limit on concurrent client sessions. Question 10. To increase the amount of memory allocated for each sort operation, which setting should be raised? A) shared_buffers B) maintenance_work_mem C) work_mem D) effective_cache_size Answer: C Explanation: work_mem defines per‑operation memory for sorts, hash tables, etc.

Exam

Question 13. The PostgreSQL search_path determines: A) The order of tablespace usage B) The default schema(s) searched for unqualified object names C) The order of index scans D) The default authentication method Answer: B Explanation: search_path is a list of schemas that PostgreSQL checks when an object name is not schema‑qualified. Question 14. Which command creates a new tablespace named fastspace located at /data/fast? A) CREATE TABLESPACE fastspace LOCATION '/data/fast'; B) CREATE TABLE fastspace LOCATION '/data/fast'; C) ALTER TABLESPACE fastspace SET LOCATION '/data/fast'; D) CREATE SCHEMA fastspace LOCATION '/data/fast'; Answer: A Explanation: CREATE TABLESPACE with LOCATION specifies the directory for the tablespace.

Exam

Question 15. In psql, which meta‑command lists all functions in the current database? A) \df B) \dF C) \list functions D) \show functions Answer: A Explanation: \df displays functions; \dF does not exist. Question 16. Which pg_ctl subcommand starts the server in the background and writes its PID to a file? A) start - l logfile B) start - D datadir - s C) start - w - D datadir D) start - l logfile - D datadir Answer: D Explanation: pg_ctl start - l logfile - D datadir starts EPAS in the background and logs to the specified file.

Exam

Question 19. Which role attribute makes a role able to log in to the database? A) SUPERUSER B) LOGIN C) CREATEDB D) CREATEROLE Answer: B Explanation: The LOGIN attribute (or NOLOGIN) determines whether a role can initiate a session. Question 20. In EPAS, role inheritance means: A) A role automatically receives privileges of roles it is a member of B) A role can inherit the password of its parent role C) A role inherits the default schema of its creator D) Inheritance is not supported in EPAS Answer: A Explanation: When a role is a member of another role, it inherits that role’s privileges unless NOINHERIT is set.

Exam

Question 21. Which clause allows a role to grant a privilege it received to other roles? A) WITH ADMIN OPTION B) WITH GRANT OPTION C) WITH DELEGATE D) WITH REVOKE OPTION Answer: B Explanation: WITH GRANT OPTION permits the grantee to further grant the same privilege. Question 22. The PUBLIC role in EPAS: A) Represents all users, including future ones B) Is a superuser role C) Has no privileges by default D) Can only be used for schema ownership Answer: A Explanation: PUBLIC is a pseudo‑role that includes every database user; privileges granted to PUBLIC apply to all.

Exam

Question 25. Which isolation level guarantees that a transaction sees a snapshot of the database as of the start of the transaction, preventing non‑repeatable reads? A) Read Committed B) Repeatable Read C) Serializable D) Read Uncommitted Answer: B Explanation: Repeatable Read provides a consistent snapshot for the whole transaction, avoiding non‑repeatable reads. Question 26. A deadlock in EPAS is typically resolved by: A) Automatically rolling back the entire database B) Killing the session that holds the oldest lock C) Rolling back one of the involved transactions to break the cycle D) Restarting the server Answer: C Explanation: PostgreSQL detects deadlocks and aborts one of the transactions to release its locks.

Exam

Question 27. Which constraint ensures that a column’s value must be unique across the table and also not NULL? A) PRIMARY KEY B) UNIQUE C) CHECK D) EXCLUDE Answer: A Explanation: A PRIMARY KEY enforces uniqueness and implicitly adds a NOT NULL constraint. Question 28. 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 are optimized for array and full‑text search operations. Question 29. The VACUUM command in EPAS primarily:

Exam

A) After a major version upgrade only B) When an index becomes corrupted or bloated C) After every VACUUM operation D) Only for hash indexes Answer: B Explanation: REINDEX rebuilds an index to fix corruption or reduce bloat. Question 32. The ANALYZE command collects statistics used by the planner. Which of the following is NOT a statistic collected? A) Most common values (MCV) B) Histogram of column values C) Table row count D) Index block size Answer: D Explanation: ANALYZE does not gather physical index block size; it gathers column value distributions and row estimates. Question 33. Which tool creates a physical base backup of an EPAS cluster suitable for PITR?

Exam

A) pg_dump B) pg_basebackup C) pg_restore D) pg_dumpall Answer: B Explanation: pg_basebackup copies the data directory and required WAL files for a physical backup. Question 34. In a logical backup using pg_dump, which option includes the schema definitions as well as data? A) - s B) - a C) - Fc D) - c Answer: C Explanation: -Fc creates a custom-format dump that contains both schema and data; -s is schema‑only, -a data‑only. Question 35. For Point‑In‑Time Recovery, which file(s) must be retained?

Exam

A) VARCHAR(200)

B) VARCHAR2(200)

C) TEXT

D) CHAR(200)

Answer: B Explanation: EPAS supports the Oracle‑compatible VARCHAR2 type directly. Question 38. The EPAS built‑in DUAL table is primarily used for: A) Storing temporary data B) Selecting constant expressions without referencing a real table C) Managing database links D) Holding audit logs Answer: B Explanation: DUAL provides a single row table that allows SELECT of expressions like SELECT SYSDATE FROM DUAL;. Question 39. Which function provided by the EDB Compatibility Package returns the current Oracle‑style date and time? A) CURRENT_TIMESTAMP()

Exam

B) SYSDATE()

C) NOW()

D) GETDATE()

Answer: B Explanation: SYSDATE is an Oracle‑compatible function that returns the session’s current date and time. Question 40. In EPAS PL/SQL compatibility, which keyword begins a block of executable statements? A) BEGIN B) START C) DECLARE D) EXECUTE Answer: A Explanation: PL/SQL blocks start with BEGIN and end with END;. Question 41. Which statement correctly creates a stored procedure named calc_tax that takes an input p_amount and returns a numeric result using EPAS PL/SQL syntax?