Bird
0
0

Which of the following is the best reason to create an index on a column in PostgreSQL?

easy📝 Conceptual Q11 of 15
PostgreSQL - Performance Tuning
Which of the following is the best reason to create an index on a column in PostgreSQL?
ATo speed up searches on that column
BTo reduce the size of the database
CTo automatically backup the data
DTo encrypt the data in that column
Step-by-Step Solution
Solution:
  1. Step 1: Understand what an index does

    An index helps the database find rows faster by creating a quick lookup structure.
  2. Step 2: Match the purpose to the options

    Only speeding up searches matches the purpose of an index; other options are unrelated.
  3. Final Answer:

    To speed up searches on that column -> Option A
  4. Quick Check:

    Index = Speed up search [OK]
Quick Trick: Indexes speed up searches, not storage or encryption [OK]
Common Mistakes:
  • Thinking indexes reduce database size
  • Confusing indexes with backups
  • Assuming indexes encrypt data

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PostgreSQL Quizzes