CISSP practice question · Software Development Security
A web application connects to its database using the database owner account.
A web application connects to its database using the database owner account. A code review is under way, but the security manager wants to limit the damage if a SQL injection flaw is ever exploited. Which change helps MOST?
- AEncrypt the connection between the application and the database
- BMove the database to a separate, dedicated server
- CRename the tables to names that are hard to guess
- DUse an account limited to the procedures the app needs
Show the answer and explanation
Correct answer: D) Use an account limited to the procedures the app needs
Applications should connect to databases with least-privilege accounts, ideally allowed only to run the specific stored procedures or statements they need, which limits what a successful injection can do.
Why each option is right or wrong
- A) Incorrect. TLS on the connection protects data in transit but injected SQL travels inside the legitimate encrypted session and runs with the same rights.
- B) Incorrect. Separate servers are good architecture, but the application still connects with owner rights, so an injection can do just as much damage.
- C) Incorrect. Obscure names slow attackers slightly, but injection can list the schema from system catalogs. It is security through obscurity.
- D) Correct. With a least-privilege account, an injected statement runs with very limited rights: it cannot drop tables, read unrelated data or run administrative commands. It complements parameterized queries.
- Exam domain
- Software Development Security · 10% of CISSP
- Question type
- Multiple choice (one answer)
Related CISSP questions
- A team has written a parser for a proprietary binary file format received from external partners.Software Development Security
- A DevSecOps pipeline runs SAST and SCA on every build, but the results only appear on a dashboard, and critical findings…Software Development Security
- Before a new system goes live, security testing identified several residual risks that cannot be fully fixed before…Software Development Security
- Which statement BEST distinguishes BSIMM from OWASP SAMM?Software Development Security
All 110 free CISSP questions by domain · 15 sample questions on one page
Practise the full CISSP exam
This question is one of a small free sample from the CertRidge CISSP bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.
Original question written from the official exam guide. Not affiliated with ISC2; never copied from the real exam.