DBS-C01 Database Security Practice Question
A company is using Amazon RDS for MySQL. They want to audit all database logins and failed login attempts. Which option should they enable?
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
✓
Set the parameter audit_log = 'ON' in the DB parameter group.
Setting the parameter audit_log = 'ON' enables audit logging for MySQL, which logs connections and disconnections, including failed login attempts. Option A is wrong because log_queries_not_using_indexes logs queries that do not use indexes, not login attempts. Option C is wrong because general_log logs all queries, not just logins. Option D is wrong because slow_query_log logs only slow queries.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Set the parameter log_queries_not_using_indexes = 'ON' in the DB parameter group.
Why it's wrong here
This logs queries that do not use indexes, not login events.
- ✓
Set the parameter audit_log = 'ON' in the DB parameter group.
Why this is correct
The audit log captures connection events, including successful and failed logins.
- ✗
Set the parameter general_log = 'ON' in the DB parameter group.
Why it's wrong here
The general log logs all SQL statements, not just login events.
- ✗
Set the parameter slow_query_log = 'ON' in the DB parameter group.
Why it's wrong here
The slow query log logs queries that exceed a certain execution time, not login attempts.
Go deeper
Related to this question
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 →
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.