Which of the following MongoDB features can help you to minimize downtime due to the failure of a single server? Choose the best answer:
题目选项
- A.Sharding across multiple physical servers
- B.Indexes on every document
- C.Replication across multiple physical servers
- D.Store redundant copies of all documents in multiple databases on the same server instance
答案置信度:高
正确答案:C
解析语言:中文
副本集把同一份数据复制到多台物理服务器上,主节点故障时自动选举新主,从而把单台服务器故障造成的停机时间降到最低,所以选 C。A(分片)解决的是容量与吞吐扩展;B(索引)只加速查询,与服务器故障无关;D 在同一实例的多个数据库里存冗余副本,实例一挂全部丢失,不能提高可用性。