DBS-C01 Database Security Practice Question
Which TWO actions will help protect an Amazon RDS for MySQL database from a SQL injection attack? (Select TWO.)
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
✓
Use parameterized queries in the application code.
Using parameterized queries (prepared statements) prevents SQL injection. Also, restricting database user permissions to only necessary operations limits damage. Enabling encryption at rest does not prevent injection. Using a VPC does not prevent injection. Enabling auto minor version upgrade does not prevent injection.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Use parameterized queries in the application code.
Why this is correct
Parameterized queries prevent injection.
- ✗
Enable encryption at rest for the RDS instance.
Why it's wrong here
Encryption at rest does not prevent injection.
- ✗
Place the RDS instance in a private VPC subnet.
Why it's wrong here
Network isolation does not prevent injection.
- ✓
Restrict database user permissions to only required operations.
Why this is correct
Limiting permissions reduces impact of injection.
- ✗
Enable auto minor version upgrade on the RDS instance.
Why it's wrong here
Version upgrades do not prevent injection.
Go deeper
Related to this question
About these practice questions
This DBS-C01 question is part of Courseiva's 1,663-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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.