問題1
Can you perform the following operation?
db.users.insertOne({})
Can you perform the following operation?
db.users.insertOne({})
正確答案: B
問題2
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 } )
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 } )
正確答案: A
說明:(僅 NewDumps 成員可見)
問題3
Select all true statements regarding to Aggregation Framework.
Select all true statements regarding to Aggregation Framework.
正確答案: A
說明:(僅 NewDumps 成員可見)
問題4
Which collection method do you need to use to drop a specific collection?
Which collection method do you need to use to drop a specific collection?
正確答案: D
說明:(僅 NewDumps 成員可見)
問題5
Select true statements about data modeling in MongoDB.
Select true statements about data modeling in MongoDB.
正確答案: B,C
說明:(僅 NewDumps 成員可見)
問題6
Suppose you have a companies collection in your database. Only the following documents are stored in this collection: { _id: ObjectId("52cdef7c4bab8bd675297da4"), name: 'Powerset', category_code: 'search', founded_year: 2006 }, { _id: ObjectId("52cdef7c4bab8bd675297da5"), name: 'Technorati', category_code: 'advertising', founded_year: 2002 }, { _id: ObjectId("52cdef7c4bab8bd675297da7"), name: 'AddThis', category_code: 'advertising', founded_year: 2004 }, { _id: ObjectId("52cdef7c4bab8bd675297da8"), name: 'OpenX', category_code: 'advertising', founded_year: 2008 }, { _id: ObjectId("52cdef7c4bab8bd675297daa"), name: 'Sparter', category_code: 'games_video', founded_year: 2007 }, { _id: ObjectId("52cdef7c4bab8bd675297dac"), name: 'Veoh', category_code: 'games_video', founded_year: 2004 }, { _id: ObjectId("52cdef7c4bab8bd675297dae"), name: 'Thoof', category_code: 'web', founded_year: 2006 } What is the default sort order in the result set returned in response to the following query?
Suppose you have a companies collection in your database. Only the following documents are stored in this collection: { _id: ObjectId("52cdef7c4bab8bd675297da4"), name: 'Powerset', category_code: 'search', founded_year: 2006 }, { _id: ObjectId("52cdef7c4bab8bd675297da5"), name: 'Technorati', category_code: 'advertising', founded_year: 2002 }, { _id: ObjectId("52cdef7c4bab8bd675297da7"), name: 'AddThis', category_code: 'advertising', founded_year: 2004 }, { _id: ObjectId("52cdef7c4bab8bd675297da8"), name: 'OpenX', category_code: 'advertising', founded_year: 2008 }, { _id: ObjectId("52cdef7c4bab8bd675297daa"), name: 'Sparter', category_code: 'games_video', founded_year: 2007 }, { _id: ObjectId("52cdef7c4bab8bd675297dac"), name: 'Veoh', category_code: 'games_video', founded_year: 2004 }, { _id: ObjectId("52cdef7c4bab8bd675297dae"), name: 'Thoof', category_code: 'web', founded_year: 2006 } What is the default sort order in the result set returned in response to the following query?
正確答案: C
說明:(僅 NewDumps 成員可見)
問題7
What does IOPS stand for in database terminology?
What does IOPS stand for in database terminology?
正確答案: B
問題8
What is the best practice in using the $match operator?
What is the best practice in using the $match operator?
正確答案: A
說明:(僅 NewDumps 成員可見)
問題9
In your database there is a movies collection with the following document structure: { _id: ObjectId("573a1390f29313caabcd42e8"), genres: [ 'Short', 'Western' ], title: 'The Great Train Robbery', rated: 'TV-G', year: 1903, imdb: { rating: 7.4, votes: 9847, id: 439 }, countries: [ 'USA' ] }, { _id: ObjectId("573a1390f29313caabcd4323"), genres: [ 'Short', 'Drama', 'Fantasy' ], rated: 'UNRATED', title: 'The Land Beyond the Sunset', year: 1912, imdb: { rating: 7.1, votes: 448, id: 488 }, countries: [ 'USA' ] }, { _id: ObjectId("573a1390f29313caabcd446f"), genres: [ 'Short', 'Drama' ], title: 'A Corner in Wheat', rated: 'G', year: 1909, imdb: { rating: 6.6, votes: 1375, id: 832 }, countries: [ 'USA' ] } How can you group these documents to extract the distribution of rated field?
In your database there is a movies collection with the following document structure: { _id: ObjectId("573a1390f29313caabcd42e8"), genres: [ 'Short', 'Western' ], title: 'The Great Train Robbery', rated: 'TV-G', year: 1903, imdb: { rating: 7.4, votes: 9847, id: 439 }, countries: [ 'USA' ] }, { _id: ObjectId("573a1390f29313caabcd4323"), genres: [ 'Short', 'Drama', 'Fantasy' ], rated: 'UNRATED', title: 'The Land Beyond the Sunset', year: 1912, imdb: { rating: 7.1, votes: 448, id: 488 }, countries: [ 'USA' ] }, { _id: ObjectId("573a1390f29313caabcd446f"), genres: [ 'Short', 'Drama' ], title: 'A Corner in Wheat', rated: 'G', year: 1909, imdb: { rating: 6.6, votes: 1375, id: 832 }, countries: [ 'USA' ] } How can you group these documents to extract the distribution of rated field?
正確答案: C
說明:(僅 NewDumps 成員可見)
問題10
Suppose you have a developers collection with the following document structure: { _id: 1, fname: 'Bob', lname: 'Smith', tech_stack: [ 'git', 'c++', 'sqlite', 'linux' ] } Select a query that can be executed without errors.
Suppose you have a developers collection with the following document structure: { _id: 1, fname: 'Bob', lname: 'Smith', tech_stack: [ 'git', 'c++', 'sqlite', 'linux' ] } Select a query that can be executed without errors.
正確答案: B
說明:(僅 NewDumps 成員可見)
問題11
We have an accounts collection with the following document structure:
{ _id: ObjectId("61af47c6e29861661d063714"), account_id: 1010, type: 'investment', limit: 1000000 }
And the following query:
db.accounts.find({ "$or": [ { "type": { "$in": [ "investment", "derivatives" ] } }, { "limit": { "$gt": 500000 } } ] })
Which of the documents below will be retrieved by this query?
We have an accounts collection with the following document structure:
{ _id: ObjectId("61af47c6e29861661d063714"), account_id: 1010, type: 'investment', limit: 1000000 }
And the following query:
db.accounts.find({ "$or": [ { "type": { "$in": [ "investment", "derivatives" ] } }, { "limit": { "$gt": 500000 } } ] })
Which of the documents below will be retrieved by this query?
正確答案: A,D