Courseiva
Database SecurityeasyMultiple ChoiceObjective-mapped

DBS-C01 pgaudit Practice Question

A company wants to audit all SQL statements executed on their RDS for PostgreSQL database. Which AWS service should they use?

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

CloudWatch Logs with PostgreSQL audit logs

For auditing SQL statements on Amazon RDS for PostgreSQL, you enable the PostgreSQL Audit Extension (pgaudit) and configure it to send logs to Amazon CloudWatch Logs. CloudWatch Logs can then be used to monitor, store, and access the SQL audit logs. Option A (AWS Database Migration Service) is used for migrating databases, not auditing. Option B (VPC Flow Logs) captures IP traffic metadata, not SQL statements. Option C (Amazon RDS Performance Insights) monitors database performance metrics, not individual SQL statements.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • AWS Database Migration Service (DMS)

    Why it's wrong here

    DMS is for data migration, not auditing.

  • VPC Flow Logs

    Why it's wrong here

    VPC Flow Logs capture network traffic, not SQL statements.

  • Amazon RDS Performance Insights

    Why it's wrong here

    Performance Insights shows performance metrics, not SQL audit logs.

  • CloudWatch Logs with PostgreSQL audit logs

    Why this is correct

    Enable pgaudit extension and publish logs to CloudWatch Logs.

About these practice questions

Courseiva writes every DBS-C01 question from scratch — 1,663 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.