seniorMongoDB

What is the Oplog and why is it important?

Updated May 1, 2026

Short answer

The Oplog (Operations Log) is a capped collection that stores a rolling record of all changes to data.

Deep explanation

It is used by Secondaries to replicate data from the Primary. It's also the backbone of Change Streams and point-in-time recovery.

Unlock with a Pro subscription to view this section.

View pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More MongoDB interview questions

View all →