Skip to content
Sharp

SQL for Java Devs · interview question

When should you avoid using indexes in a database table?

Multiple choiceMediumchapter-8-curatedpremiumsql-for-java-devsindexes
Choose one answer
Answer and explanation

Correct answer

A. When the table has a lot of write operations.

Why

Indexes can slow down write operations due to the overhead of maintaining the index. If a table experiences frequent writes, it may be better to avoid indexes to improve overall performance.

Test yourself on SQL for Java Devs

A free test with instant, explained results. No account needed.

Start free test
All SQL for Java Devs questions →