DBS-C01 Database Security Practice Question
A company uses Amazon RDS for PostgreSQL to store customer data. The security team wants to audit all SQL queries executed against the database, including SELECT statements. Which TWO actions should be taken to achieve this?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Install the pgaudit extension in the DB instance.
To audit SQL queries on Amazon RDS for PostgreSQL, the pgaudit extension must be installed (Option A). Then, the 'pgaudit.log' parameter must be set to include 'read' and 'write' statements to capture SELECT and DML operations (Option C). Option B enables connection logging but not query auditing. Option D ('audit_log_enabled') is for MySQL, not PostgreSQL. Option E (Database Activity Streams) provides a different auditing mechanism that may not capture all SQL queries and requires additional setup.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Install the pgaudit extension in the DB instance.
Why this is correct
pgaudit is the standard extension for PostgreSQL audit logging.
- ✗
Enable the 'log_connections' and 'log_disconnections' parameters.
Why it's wrong here
These log connection events, not SQL queries.
- ✓
Set the 'pgaudit.log' parameter to include 'read' and 'write' statements.
Why this is correct
This enables logging of SELECT and DML statements.
- ✗
Set the 'audit_log_enabled' parameter to 1 in the DB parameter group.
Why it's wrong here
This parameter is for MySQL, not PostgreSQL.
- ✗
Enable Database Activity Streams on the DB instance.
Why it's wrong here
Activity Streams provide a stream of database activities, but they are not the primary method for SQL auditing and require additional setup.
Go deeper
Related to this question
About these practice questions
One of 1,663 original DBS-C01 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This DBS-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DBS-C01 exam.