Quick Answer
Scale analytics without impacting OLTP: use secondary reads with readPreference: secondary for analytics queries (doesn't hit the primary), use Atlas Data Lake to run analytics on archived data, pre-aggregate with scheduled pipelines that write to separate summary collections, use change streams to maintain real-time aggregates, or replicate data to a separate analytics system (Redshift, BigQuery) via Kafka/Debezium.
Answer
Use dedicated analytics secondaries, hidden nodes, or offload data to OLAP systems via CDC. Use $merge pipelines for incremental materialization.
S
SugharaIQ Editorial Team
Verified Answer
This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.
MongoDB interview questions and answers for beginner, junior, mid-level, senior, and expert developers. Perfect for freshers and experienced candidates.