Question 26
Suppose you insert the following documents into companies collection: db.companies.insertMany([ {"_id": 1, "name": "Facebook"}, {"_id": 1, "name": "Twitter"}, {"_id": 2, "name": "Tesla"}, {"_id": 3, "name": "Amazon"} ], {"ordered": false}) Select all true statements about this operation. (select 3)
Question 27
Select all true statements about the $merge stage.
Question 28
You have the following replica set configuration: conf = { "_id": "replset", "version": 1, "protocolVersion": 1, "members": [ { "_id": 0, "host": "192.168.120.24:27017", "priority": 2, "votes": 1 }, { "_id": 1, "host": "192.168.120.24:27018", "priority": 1, "votes": 1 }, { "_id": 2, "host": "192.168.120.24:27018", "priority": 1, "votes": 1 } ] } Select all true statements about this configuration.
Question 29
Suppose you have a books collection with title field. Which of the following queries will return all books with a title ending in 'ian'?
Question 30
Which command do you use to display all indexes in routes collection?
