gs gs112 Data Models - Data Model Examples and Patterns - Quiz No.1
gs gs112 MongoDB Quiz
This quiz belongs to book/course code gs gs112 MongoDB of gs organization. We have 98 quizzes available related to the book/course MongoDB. This quiz has a total of 10 multiple choice questions (MCQs) to prepare and belongs to topic Data Models. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to prepare online MCQs and quizzes.
NVAEducation also facilitates users to contribute in online competitions with other students to make a challenging situation to learn in a creative way. You can create one to one, and group competition on an topic of a book/course code. Also on NVAEducation you can get certifications by passing the online quiz test.
Question 1: Which of the following relationship uses references to describe documents between connected data?
One-to-One Relationships with Embedded Documents
One-to-Many Relationships with Embedded Documents
One-to-Many Relationships with Document References
None of the mentioned
Question 2: Point out the correct statement.
One-to-One Relationships with embedded documents presents a data model that uses embedded documents to describe one-to-one relationships between connected data
One-to-One Relationships with document references presents a data model that uses embedded documents to describe one-to-one relationships between connected data
One-to-Many Relationships with embedded documents presents a data model that uses embedded documents to describe one-to-one relationships between connected data
All of the mentioned
Question 3: If the address data is frequently retrieved with the name information, how will you modify the following schema representing one to one relationship with referencing?
{ _id: "joe", name: "Joe Bookreader" } { patron_id: "joe", street: "123 Fake Street", city: "Faketon", state: "MA", zip: "12345" }
{ _id: "joe", name: "Joe Bookreader", address: { street: "123 Fake Street", city: "Faketon", state: "MA", zip: "12345" } }
{ _id: "joe", name: "Joe Bookreader", address-> { street: "123 Fake Street", city: "Faketon", state: "MA", zip: "12345" } }
{ _id: "joe", name: "Joe Bookreader", address:: { street: "123 Fake Street", city: "Faketon", state: "MA", zip: "12345" } }
All of the mentioned
Question 4: Which of the following is used to avoid the repetition of data in MongoDB schema?
DeReferences
References
Cursor
Collectors
Question 5: Point out the wrong statement.
Decisions that affect how you model data can affect application performance and database capacity
Collections do enforce document structure
Data in MongoDB has a flexible schema
None of the mentioned
Question 6: What would be the more optimal schema to embed the address data entities in the patron data for following schema representing one to many relationships?
{ _id: "joe", name: "Joe Bookreader" } { patron_id: "joe", street: "123 Fake Street", city: "Faketon", state: "MA", zip: "12345" } { patron_id: "joe", street: "1 Some Other Street", city: "Boston", state: "MA", zip: "12345" }
{ _id: "joe", name: "Joe Bookreader", addresses: [ { street: "123 Fake Street", city: "Faketon", state: "MA", zip: "12345" }, { street: "1 Some Other Street", city: "Boston", state: "MA", zip: "12345" } ] } ?
{ _id: "joe", name: "Joe Bookreader", addresses: [ { street: "123 Fake Street", city: "Faketon", state: "MA", zip: "12345" }, [ street: "1 Some Other Street", city: "Boston", state: "MA", zip: "12345" ] ] } ?
{ _id: "joe", name: "Joe Bookreader", addresses: [ [ street: "123 Fake Street", city: "Faketon", state: "MA", zip: "12345" ], { street: "1 Some Other Street", city: "Boston", state: "MA", zip: "12345" } ] } ?
None of the mentioned
Question 7: How will avoid mutable, growing arrays in the following schema?
{ name: "O'Reilly Media", founded: 1980, location: "CA", books: [12346789, 234567890, ...] } { _id: 123456789, title: "MongoDB: The Definitive Guide", author: [ "Kristina Chodorow", "Mike Dirolf" ], published_date: ISODate("2010-09-24"), pages: 216, language: "English" } { _id: 234567890, title: "50 Tips and Tricks for MongoDB Developer", author: "Kristina Chodorow", published_date: ISODate("2011-05-06"), pages: 68, language: "English" }
{ _id: "oreilly", name: "O'Reilly Media", founded: 1980, location: "CA" } [ _id: 123456789, title: "MongoDB: The Definitive Guide", author: [ "Kristina Chodorow", "Mike Dirolf" ], published_date: ISODate("2010-09-24"), pages: 216, language: "English", publisher_id: "oreilly" ] { _id: 234567890, title: "50 Tips and Tricks for MongoDB Developer", author: "Kristina Chodorow", published_date: ISODate("2011-05-06"), pages: 68, language: "English", publisher_id: "oreilly" }
{ _id: "oreilly", name: "O'Reilly Media", founded: 1980, location: "CA" } [ _id: 123456789, title: "MongoDB: The Definitive Guide", author: [ "Kristina Chodorow", "Mike Dirolf" ], published_date: ISODate("2010-09-24"), pages: 216, language: "English", publisher_id: "oreilly" ] [ _id: 234567890, title: "50 Tips and Tricks for MongoDB Developer", author: "Kristina Chodorow", published_date: ISODate("2011-05-06"), pages: 68, language: "English", publisher_id: "oreilly" ]
{ _id: "oreilly", name: "O'Reilly Media", founded: 1980, location: "CA" } { _id: 123456789, title: "MongoDB: The Definitive Guide", author: [ "Kristina Chodorow", "Mike Dirolf" ], published_date: ISODate("2010-09-24"), pages: 216, language: "English", publisher_id: "oreilly" } { _id: 234567890, title: "50 Tips and Tricks for MongoDB Developer", author: "Kristina Chodorow", published_date: ISODate("2011-05-06"), pages: 68, language: "English", publisher_id: "oreilly" }
None of the mentioned
Question 8: __________ define what records to select for read, update, and delete operations.
Query optimizer
Query selector
Update definitions
All of the mentioned
Question 9: The ___________ JavaScript shell and the MongoDB language drivers translate between BSON and the language-specific document representation.
mongod
mongo
json
none of the mentioned
Question 10: Which of the following statement is incorrect about documents in MongoDB?
The field names cannot start with the dollar sign ($) character
The field names cannot contain the dot (.) character
The field names cannot contain the null character
None of the mentioned
Online Quizzes of gs112 MongoDB
GridFS, BSON Datatype and Administration Concepts - BSON - Quiz No.1
gs gs112
MongoDB Online Quizzes