<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>what is primary and secondary replica sets in mongodb atlas - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/what-is-primary-and-secondary-replica-sets-in-mongodb-atlas/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/what-is-primary-and-secondary-replica-sets-in-mongodb-atlas/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Sat, 16 Apr 2022 07:41:10 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>what is primary and secondary replica sets in mongodb atlas - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/what-is-primary-and-secondary-replica-sets-in-mongodb-atlas/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What is primary and secondary replica sets in MongoDB ?</title>
		<link>https://www.wikitechy.com/interview-questions/mongodb/what-is-primary-and-secondary-replica-sets-in-mongodb/</link>
					<comments>https://www.wikitechy.com/interview-questions/mongodb/what-is-primary-and-secondary-replica-sets-in-mongodb/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Sat, 16 Apr 2022 07:41:10 +0000</pubDate>
				<category><![CDATA[mongodb]]></category>
		<category><![CDATA[how to create replica set in mongodb]]></category>
		<category><![CDATA[how to create replica set in mongodb in windows]]></category>
		<category><![CDATA[mongodb 3 node replica set]]></category>
		<category><![CDATA[mongodb master slave]]></category>
		<category><![CDATA[mongodb replica set on same server]]></category>
		<category><![CDATA[mongodb replica set vs sharding]]></category>
		<category><![CDATA[mongodb single node replica set]]></category>
		<category><![CDATA[what is primary and secondary replica sets in mongodb atlas]]></category>
		<category><![CDATA[what is primary and secondary replica sets in mongodb compass]]></category>
		<category><![CDATA[what is primary and secondary replica sets in mongodb query]]></category>
		<category><![CDATA[what is replica set in mongodb]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4147</guid>

					<description><![CDATA[Replica Set Primary Member : In replica set Primary is the only member that receives write operations. In replica set secondary member is to log and apply the operations to their data. MongoDB applies write operations and records the operation on primary’s oplog. The primary member accepts all write operations in the following three-members replica [&#8230;]]]></description>
										<content:encoded><![CDATA[<h4 id="replica-set-primary-member">Replica Set Primary Member :</h4>
<ul>
<li>In replica set Primary is the only member that receives write operations.</li>
<li>In replica set secondary member is to log and apply the operations to their data.</li>
<li>MongoDB applies write operations and records the operation on primary’s oplog.</li>
<li>The primary member accepts all write operations in the following three-members replica set.</li>
<li>The secondary member replicates the primary’s oplog to apply their data sets.</li>
<li>In replica sets all members can accept to read captions.</li>
<li>In replica sets, read preference describes how MongoDB clients route read operations to the members.</li>
<li>An election determines the new primary, If the current primary becomes unavailable.</li>
<li>Replica setsuse elections to determine which set member will become primary.</li>
<li>The primary becomes unavailable, in the following 3-member replica set.</li>
<li>This triggers an election which selects one of the remaining secondaries as the new primary.</li>
</ul>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4149" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/what-is-primary-secandary-in-replica-sets.png" alt="" width="998" height="752" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/what-is-primary-secandary-in-replica-sets.png 998w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/what-is-primary-secandary-in-replica-sets-300x225.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/what-is-primary-secandary-in-replica-sets-768x579.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/what-is-primary-secandary-in-replica-sets-240x180.png 240w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/what-is-primary-secandary-in-replica-sets-390x294.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/what-is-primary-secandary-in-replica-sets-820x618.png 820w" sizes="(max-width: 998px) 100vw, 998px" /></p>
<h4 id="replica-set-secondary-member">Replica set Secondary Member:</h4>
<ul>
<li>In replica sets secondary maintains a copy of the primary&#8217;s data set.</li>
<li>A secondary applies operations from the primary&#8217;s oplog to its own data set in an asynchronous process, to replicate data.</li>
<li>A replica set can have one or more secondaries.</li>
<li>In replica sets, the following three-member has two secondary members.</li>
<li>The secondaries replicate the primary&#8217;s oplog and apply the operations to their data sets.</li>
<li>In replica set client cannot write data, but they can read data from secondary members.</li>
<li>A secondary can become a primary.</li>
<li>The replica set holds an election to choose which of the secondaries becomes the new primary, If the current primary becomes unavailable.</li>
</ul>
<p><img decoding="async" class="alignnone size-full wp-image-4148" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/secondary-replica-set.png" alt="" width="1277" height="459" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/secondary-replica-set.png 1277w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/secondary-replica-set-300x108.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/secondary-replica-set-1024x368.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/secondary-replica-set-768x276.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/secondary-replica-set-390x140.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/secondary-replica-set-820x295.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/04/secondary-replica-set-1180x424.png 1180w" sizes="(max-width: 1277px) 100vw, 1277px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/mongodb/what-is-primary-and-secondary-replica-sets-in-mongodb/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
