5/5 - (1 vote)

C100DEV Practice Exams and Training Solutions for Certifications

Dumps Free Test Engine Player Verified Answers

Q19. Which of the following commands are valid to start a mongod?

 
 
 
 

Q20. Select all true statements about the differences between mongoexport and mongodump.

 
 
 
 
 

Q21. Select all true statements regarding to the role of fields and values in a MongoDB document. (select 2)

 
 
 
 

Q22. Select all true statements about setting up a replica set in MongoDB.

 
 
 

Q23. Is MongoDB a NoSQL database?

 
 

Q24. We have a movies collection with the following document structure: { _id: ObjectId(“573a1390f29313caabcd6223”), genres: [ ‘Comedy’, ‘Drama’, ‘Family’ ], title: ‘The Poor Little Rich Girl’, released: ISODate(“1917-03-05T00:00:00.000Z”), year: 1917, imdb: { rating: 6.9, votes: 884, id: 8443 } } We need to use Aggregation Framework to fetch all movies from this collection where ‘Drama’ is in genres list and the minimum ‘imdb.votes’ is at least 100. Additionally, in the projection stage, we want to leave only the following fields: -> title -> genres -> imdb.votes We also want to sort the result set by decreasing imdb votes. Example output: [ { imdb: { votes: 1521105 }, genres: [ ‘Crime’, ‘Drama’ ], title: ‘The Shawshank Redemption’ }, { imdb: { votes: 1513145 }, genres: [ ‘Crime’, ‘Drama’ ], title: ‘The Shawshank Redemption’ }, { imdb: { votes: 1495351 }, genres: [ ‘Action’, ‘Crime’, ‘Drama’ ], title: ‘The Dark Knight’ }, … Which pipeline should you use?

 
 
 

Q25. You have the following index in a movies collection: { “title”: 1, “imdb.rating”: -1, “imdb.votes”: -1, “type”: 1 } Can the following query use the given index for both filtering and sorting?
db.movies.find( { “imdb.rating”: 8, “title”: “James Bond” } ).sort( { “imdb.votes”: -1 } )

 
 

Q26. We have the following index in a movies collection: { title: 1, genres: 1 } We want to insert the following document: { “title”: “The Immigrant”, “year”: 1917, “genres”: [ “Short”, “Comedy”, “Drama” ] } Select proper index entries.

 
 
 
 
 
 
 

Q27. Select all options where you should use sharding.

 
 
 
 

Q28. How to shutdown the server? (Mongo shell)

 
 
 
 
 
 

Q29. What is data modeling in MongoDB world?

 
 
 
 

Q30. Suppose you are connected to mongod instance that is already running on port 27000 as admin user. You have to create a new user for an application that has the readWrite role. Use the db.createUser() command to create a user for a CRUD application. The requirements for this user are: -> role: readWrite on esmartdata database -> username: esmart -> password: esmart123 Which command should you use?

 
 
 
 

Q31. Which of the following commands will successfully insert exactly two new documents into an empty companies collection?

 
 
 
 
 

Q32. We have an accounts collection with the following document structure: { _id: ObjectId(“5ca4bbc7a2dd94ee5816239d”), account_id: 864905, limit: 10000, products: [ ‘Commodity’, ‘InvestmentStock’ ] }, { _id: ObjectId(“5ca4bbc7a2dd94ee5816239e”), account_id: 299072, limit: 10000, products: [ ‘InvestmentFund’, ‘InvestmentStock’ ] }, { _id: ObjectId(“5ca4bbc7a2dd94ee5816239f”), account_id: 137994, limit: 10000, products: [ ‘CurrencyService’, ‘InvestmentStock’ ] } We need to use Aggregation Framework to find the distribution of products field. Sort the result set by decreasing total number of products. Expected output: [ { _id: ‘InvestmentStock’, total: 1746 }, { _id: ‘CurrencyService’, total: 742 }, { _id: ‘Brokerage’, total: 741 }, { _id: ‘InvestmentFund’, total: 728 }, { _id: ‘Commodity’, total: 720 }, { _id: ‘Derivatives’, total: 706 } ] Which pipeline should you use?

 
 
 

Q33. Select all true statement regarding to the MongoDB (BSON, JSON). (select 3)

 
 
 
 
 

Q&As with Explanations Verified & Correct Answers: https://www.braindumpstudy.com/C100DEV_braindumps.html

         

Related Links: www.stes.tyc.edu.tw www.stes.tyc.edu.tw www.stes.tyc.edu.tw www.stes.tyc.edu.tw buyerseller.xyz www.stes.tyc.edu.tw