Given a collection posts as shown below having a document array comments, which of the following command will create an index on the comment author descending?
Consider an orders collection that contains these documents:
{ _id: 1, product: " X-pad " , quantity: 950 }
{ _id: 2, product: " X-pad-pro " , quantity: 1000 }
{ _id: 3, product: " X-phone " , quantity: 850 }
{ _id: 4, product: " X-phone-pro " , quantity: 1350 }
Commands A and B are run at the same time. Assume that no other operations are running.
A MongoDB database administrator is asked to add the privilege find to a role named myRole.
What is the correct syntax for adding this privilege to the role in MongoDB?
What " stage " indicates that no indexes were available for a query pattern?
You have designed a web application with mongoD
B.
You have configured replication. The replica set is in place and function properly. What happens in case of failure?Which of the following needs to be performed prior to initiate backup on a sharded cluster?
In order to ensure that you can maintain high availability in the face of server failure, you should implement which of the following?
Consider a contacts collection that contains these documents:
{ " _id " : 1, " name " : " Poppy " , " birthday " : " 03-09-1984 " }
{ " _id " : 2, " name " : " Ashley " , " birthday " : " 08-12-1990 " }
{ " _id " : 3, " name " : " Cleo " , " birthday " : " 11-02-1976 " }
What query returns the document where the field name is " Poppy " ?
Write the command(s) are correct to enable sharding on a database " testdb " and shard a collection " testCollection " with _id as shard key.
