Bird
0
0

Why does logical replication use replication slots on the publisher?

hard📝 Conceptual Q10 of 15
PostgreSQL - Advanced Features
Why does logical replication use replication slots on the publisher?
ATo store the full copy of subscriber data
BTo keep track of which WAL changes have been sent to subscribers
CTo encrypt data during replication
DTo automatically create publications
Step-by-Step Solution
Solution:
  1. Step 1: Understand replication slot purpose

    Replication slots track the progress of WAL data sent to subscribers to avoid data loss.
  2. Step 2: Eliminate incorrect options

    Slots do not store subscriber data, encrypt data, or create publications automatically.
  3. Final Answer:

    To keep track of which WAL changes have been sent to subscribers -> Option B
  4. Quick Check:

    Replication slots track WAL progress [OK]
Quick Trick: Replication slots track sent WAL data for subscribers [OK]
Common Mistakes:
  • Thinking slots store subscriber data
  • Assuming slots encrypt replication data
  • Believing slots create publications

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PostgreSQL Quizzes