# Replica Set

*noun*

say it: **“REP-lih-kuh SET”** **/ˈrɛplɪkə sɛt/**

A group of MongoDB servers that each keep a copy of the same data, so another one takes over if the main one fails.

## What is **Replica Set**?

A **replica set** is a group of MongoDB servers holding the same data: one primary takes writes, secondaries copy it, and a secondary takes over if the primary fails.

## In a sentence

- “Atlas's free cluster is a three-server **replica set**.”
- “Transactions in MongoDB need a **replica set**.”

Level: Freelancer · [More MongoDB terms at this level](https://www.ask-codey.com/glossary?category=mongodb&level=4)

Updated: November 19, 2026

Source: https://www.ask-codey.com/glossary/replica-set
