Question 66
Suppose you are connected to mongod instance that is already running on port 27000 as admin user. You have to export reviews collection from the restaurants database to JSON file named reviews.json. Which command should you use?
Question 67
How to connect to MongoDB with mongod to localhost running on port 27017?
Question 68
Given the following example document from an artists collection: { _id: 5, last_name: 'Maurer', first_name: 'Alfred', year_born: 1868, year_died: 1932, nationality: 'USA' } and the following index: db.artists.createIndex( { "last_name": 1, "nationality": 1 } ) How MongoDB will handle the query below?
db.artists.find( { "last_name": /^O./ } )
Question 69
Select all true statements about differences between using aggregate() and find() methods?
Question 70
You have the following configuration file: net: bindIp: localhost port: 27000 security: authorization: enabled.
You have to edit this file to use new directory as the dbPath: /var/mongodb/db Select correct Answer .
