_________ deletes from a shard the orphaned documents whose shard

deletes-from-a-shard-the-orphaned-documents-whose-shard

_________ deletes from a shard the orphaned documents whose shard key values fall into a single continuous range.

A. listallshards

B. cleanup

C. cleanupOrphaned

D. SelectIndexes

The question was asked during an interview.

This interesting question is from Collection-Level Access Control in chapter Production Checklist, Security Concepts and Network Security of MongoDB

Correct choice is C. cleanupOrphaned

For explanation: If two contiguous ranges do not belong to the shard, the cleanupOrphaned examines both ranges for orphaned documents.