

InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
1. |
The ______ factor is a constant and known property of the currency.(a) rank(b) scale(c) high(d) none of the mentionedThis question was addressed to me in an online interview.I want to ask this question from Model Monetary and Time Data in portion Data Models of MongoDB |
Answer» The correct answer is (b) SCALE |
|
2. |
Use of the approximation field for the query and sort operations requires that applications perform _______ side post-processing.(a) client(b) server(c) application(d) none of the mentionedI had been asked this question during an online interview.My enquiry is from Model Monetary and Time Data in division Data Models of MongoDB |
Answer» CORRECT answer is (a) client To explain I would say: Client side processing is USED to DECODE the non-numeric representation of the exact value and then FILTER out the returned documents based on the exact monetary value. |
|
3. |
Which of the following is used to handle arbitrary or unforeseen number of precision?(a) Exact(b) Accurate(c) Ambiguity(d) None of the mentionedI have been asked this question during a job interview.This key question is from Model Monetary and Time Data in portion Data Models of MongoDB |
Answer» Correct OPTION is (c) Ambiguity |
|
4. |
MongoDB stores times in _____ by default, and will convert any local time representations into this form.(a) UTC(b) GMT(c) IST(d) None of the mentionedThis question was addressed to me during an interview.My question is taken from Model Monetary and Time Data in section Data Models of MongoDB |
Answer» Right answer is (a) UTC |
|
5. |
Point out the wrong statement.(a) If you need to query the database for exact, mathematically valid matches, use Exact Precision(b) If you regularly need to perform server-side arithmetic on monetary data, the exact precision model may be appropriate(c) If you need to query the database for exact, mathematically valid matches, use Ambiguity Precision(d) None of the mentionedThis question was posed to me in an interview for job.I'd like to ask this question from Model Monetary and Time Data topic in division Data Models of MongoDB |
Answer» The CORRECT option is (c) If you need to query the database for EXACT, mathematically VALID matches, use Ambiguity PRECISION |
|
6. |
__________ precision multiplies the monetary value by a power of 10.(a) Exact(b) Accurate(c) Ambiguity(d) None of the mentionedI got this question in an online quiz.I want to ask this question from Model Monetary and Time Data topic in portion Data Models of MongoDB |
Answer» The correct option is (a) Exact |
|
7. |
Which of the following precision uses two values for the field?(a) Exact(b) Accurate(c) Ambiguity(d) None of the mentionedThe question was asked in unit test.My doubt stems from Model Monetary and Time Data in section Data Models of MongoDB |
Answer» The correct ANSWER is (c) Ambiguity |
|
8. |
Point out the correct statement.(a) Applications that handle monetary data often require capturing fractional units of currency(b) Applications that handle time data often require capturing fractional units of currency(c) Applications that handle temporal and spatial data often require capturing fractional units of currency(d) All of the mentionedI have been asked this question in a job interview.Query is from Model Monetary and Time Data topic in section Data Models of MongoDB |
Answer» The correct OPTION is (a) Applications that handle monetary data often require capturing FRACTIONAL units of currency |
|
9. |
Which of the following is related to the parsing of document for root?(a) Stemming(b) Synonyms(c) Ranking(d) None of the mentionedThe question was posed to me in an online quiz.This question is from Model Data for Atomic operations topic in division Data Models of MongoDB |
Answer» The CORRECT answer is (a) Stemming |
|
10. |
________ indexes can include any field whose value is a string or an array of string elements.(a) text(b) string(c) char(d) none of the mentionedI had been asked this question in quiz.My question comes from Model Data for Atomic operations in chapter Data Models of MongoDB |
Answer» The correct OPTION is (a) text |
|
11. |
Which of the following is related to document that do not provide a way to weight results?(a) Stemming(b) Synonyms(c) Ranking(d) None of the mentionedThe question was asked in an international level competition.The above asked question is from Model Data for Atomic operations topic in section Data Models of MongoDB |
Answer» The CORRECT option is (C) Ranking |
|
12. |
Which of the following is related to document that provide support for synonym or related queries in the application layer?(a) Stemming(b) Synonyms(c) Ranking(d) None of the mentionedI had been asked this question in a national level competition.Enquiry is from Model Data for Atomic operations topic in portion Data Models of MongoDB |
Answer» Right OPTION is (b) Synonyms |
|
13. |
Point out the correct statement.(a) An array with a large number of elements will incur greater indexing costs on insertion(b) An array with a large number of elements will incur smaller indexing costs on updates(c) An array with a small number of elements will incur greater indexing costs on insertion(d) None of the mentionedI got this question in an interview for job.Question is taken from Model Data for Atomic operations in section Data Models of MongoDB |
Answer» Correct ANSWER is (a) An ARRAY with a large number of elements will INCUR greater indexing costs on insertion |
|
14. |
___________ bulk indexes may be more efficient for some kinds of content and workloads in real time.(a) Synchronous(b) Asynchronous(c) Unique(d) None of the mentionedI have been asked this question in semester exam.Origin of the question is Model Data for Atomic operations topic in division Data Models of MongoDB |
Answer» Correct answer is (b) Asynchronous |
|
15. |
Which of the following operations are atomic on document level?(a) update(b) remove(c) findAndModify(d) all of the mentionedThis question was posed to me in unit test.Asked question is from Model Data for Atomic operations topic in portion Data Models of MongoDB |
Answer» Right ANSWER is (d) all of the mentioned |
|
16. |
Point out the correct statement.(a) $regex is used for regular expression pattern matches(b) $like is used for regular expression pattern matches(c) $reg is used for regular expression pattern matches(d) All of the mentionedI had been asked this question during an interview.Query is from Model Data for Atomic operations in division Data Models of MongoDB |
Answer» Correct answer is (a) $regex is USED for REGULAR expression PATTERN matches |
|
17. |
Which of the following pattern is best for static trees that do not change?(a) Child(b) Parent(c) Root(d) None of the mentionedThe question was asked in my homework.Asked question is from Model Data for Atomic operations topic in division Data Models of MongoDB |
Answer» CORRECT answer is (d) None of the mentioned The BEST I can explain: The Nested Sets PATTERN provides a fast and efficient solution for finding subtrees but is inefficient for modifying the tree STRUCTURE. |
|
18. |
The Array of Ancestors pattern is slightly slower than the ________________ pattern.(a) Materialized Paths(b) Array of Ancestors(c) Nested Sets(d) None of the mentionedThis question was posed to me in quiz.My doubt stems from Model Tree Structures in portion Data Models of MongoDB |
Answer» The CORRECT answer is (a) Materialized Paths |
|
19. |
The ____________ pattern identifies each node in the tree as stops in a round-trip traversal of the tree.(a) Materialized Paths(b) Array of Ancestors(c) Nested Sets(d) None of the mentionedThis question was addressed to me by my college director while I was bunking the class.My question is from Model Tree Structures in portion Data Models of MongoDB |
Answer» The correct choice is (C) NESTED Sets |
|
20. |
Which of the following pattern is more straightforward to use?(a) Materialized Paths(b) Array of Ancestors(c) Nested Sets(d) None of the mentionedI got this question in unit test.I'm obligated to ask this question of Model Tree Structures topic in portion Data Models of MongoDB |
Answer» The CORRECT answer is (b) Array of Ancestors |
|
21. |
Which of the following pattern may provide a suitable solution for storing graphs?(a) Child(b) Parent(c) Root(d) None of the mentionedI got this question in an interview for job.Asked question is from Model Tree Structures in portion Data Models of MongoDB |
Answer» The CORRECT OPTION is (a) Child |
|
22. |
Point out the wrong statement.(a) You cannot query for a node in the children field to find its parent node only(b) You can query for a node in the children field to find its parent node as well as its siblings(c) You can query for a node in the children field to find its siblings only(d) None of the mentionedI got this question in my homework.My question is from Model Tree Structures in section Data Models of MongoDB |
Answer» CORRECT option is (b) You can query for a NODE in the children field to find its parent node as WELL as its siblings The explanation is: The Child References pattern PROVIDES a suitable solution to tree storage as long as no operations on subtrees are NECESSARY. |
|
23. |
The _________ References pattern stores each tree node in array the id(s) of the node’s children.(a) Child(b) Parent(c) Root(d) None of the mentionedI got this question during an online interview.This intriguing question originated from Model Tree Structures topic in chapter Data Models of MongoDB |
Answer» The correct answer is (a) Child |
|
24. |
The ________ Links pattern provides a simple solution to tree storage but requires multiple queries to retrieve subtrees.(a) Child(b) Parent(c) Root(d) All of the mentionedThis question was addressed to me in class test.This question is from Model Tree Structures in chapter Data Models of MongoDB |
Answer» Right answer is (b) Parent |
|
25. |
Point out the correct statement.(a) The query to retrieve the parent of a node is fast and straightforward(b) The query to retrieve the parent of a node is slow and straightforward(c) The query to retrieve the parent of a node is slow and complex(d) All of the mentionedThe question was posed to me during an interview.I'd like to ask this question from Model Tree Structures topic in section Data Models of MongoDB |
Answer» RIGHT option is (a) The query to RETRIEVE the parent of a node is fast and straightforward The best I can explain: You can CREATE an INDEX on the field to enable fast SEARCH by the parent node. |
|
26. |
The ________ References pattern stores each tree node in a document; in addition to the tree node, the document stores the id of the node’s parent.(a) Child(b) Parent(c) Root(d) None of the mentionedThe question was asked in an interview for internship.This interesting question is from Model Tree Structures in division Data Models of MongoDB |
Answer» The correct choice is (b) Parent |
|
27. |
The ___________ JavaScript shell and the MongoDB language drivers translate between BSON and the language-specific document representation.(a) mongod(b) mongo(c) json(d) none of the mentionedThis question was addressed to me by my school principal while I was bunking the class.My query is from Data Model Examples and Patterns topic in division Data Models of MongoDB |
Answer» Correct CHOICE is (b) mongo |
|
28. |
The files_id field contains the _id of the chunk’s __________ document.(a) parent(b) child(c) top(d) none of the mentionedThe question was asked in final exam.My question is from Data Modeling Concepts topic in chapter Data Models of MongoDB |
Answer» RIGHT ANSWER is (a) parent To explain: GRIDFS uses a UNIQUE, compound index on the chunks collection for the files_id and n FIELDS. |
|
29. |
Which of the following checks and repairs errors and inconsistencies in data storage?(a) repairDatabase(b) repairedDatabase(c) recoverDatabase(d) all of the mentionedThis question was addressed to me in quiz.Origin of the question is Data Modeling Concepts in portion Data Models of MongoDB |
Answer» The correct ANSWER is (a) repairDatabase |
|
30. |
___________is the _id is of the data type chosen for the original document in files collections.(a) files._id(b) file._id(c) fileobj._id(d) none of the mentionedThis question was addressed to me in exam.My question is from Data Modeling Concepts topic in portion Data Models of MongoDB |
Answer» RIGHT answer is (a) files._id Easy explanation: The DEFAULT type for MONGODB documents is BSON ObjectId. |
|
31. |
Point out the wrong statement.(a) Client libraries provide a convenient, injection free, process to build these objects(b) MongoDB represents queries as BSON objects(c) Field names in MongoDB’s query language have semantic meaning(d) All of the mentionedThe question was posed to me in quiz.This intriguing question comes from Data Modeling Concepts topic in section Data Models of MongoDB |
Answer» Correct answer is (d) All of the mentioned |
|
32. |
Which of the collection in GridFS stores the binary chunks?(a) chunks(b) files(c) data(d) logThe question was asked in an interview for internship.Question is taken from Data Modeling Concepts in division Data Models of MongoDB |
Answer» The correct CHOICE is (a) chunks |
|
33. |
The default chunk size is changed from 256k to 255k in which version?(a) 3.0(b) 2.4.9(c) 2.4.10(d) None of the mentionedThis question was posed to me by my school teacher while I was bunking the class.The doubt is from Data Modeling Concepts in chapter Data Models of MongoDB |
Answer» RIGHT choice is (B) 2.4.9 Explanation: The use of the term chunks in the CONTEXT of GRIDFS is not related to the use of the term chunks in the context of SHARDING. |
|
34. |
Point out the wrong statement.(a) By default GridFS limits chunk size to 255k(b) GridFS is useful only for storing files that exceed 16MB(c) When you query a GridFS store for a file, the driver or client will reassemble the chunks as needed(d) All of the mentionedI have been asked this question in exam.The doubt is from Data Modeling Concepts topic in section Data Models of MongoDB |
Answer» RIGHT answer is (b) GridFS is useful only for storing files that exceed 16MB To EXPLAIN I would SAY: GridFS is useful not only for storing files that exceed 16MB but also for storing any files for which you want to access without having to LOAD the ENTIRE file into memory. |
|
35. |
How many does collections GridFS use to store files?(a) 1(b) 2(c) 3(d) 4I had been asked this question in an internship interview.Asked question is from Data Modeling Concepts in portion Data Models of MongoDB |
Answer» Right answer is (B) 2 |
|
36. |
_______________ is a specification for storing and retrieving files that exceed the BSON-document size limit of 16MB.(a) DataFS(b) GridFS(c) ReadFS(d) None of the mentionedI have been asked this question in my homework.I'd like to ask this question from Data Modeling Concepts topic in portion Data Models of MongoDB |
Answer» Right answer is (b) GridFS |
|
37. |
To get the current number of namespaces in the mongo shell, use ________________(a) db.system.namespaces.countc()(b) db.system.namespaces.count(*)(c) db.system.namespaces.count()(d) all of the mentionedI got this question during an interview for a job.My question is from Data Modeling Concepts in portion Data Models of MongoDB |
Answer» Correct choice is (c) db.system.namespaces.count() |
|
38. |
The __________ feature of collections expires documents after a period of time.(a) TEL(b) TTL(c) TPL(d) None of the mentionedI have been asked this question in an interview for job.Enquiry is from Data Modeling Concepts topic in portion Data Models of MongoDB |
Answer» Correct option is (b) TTL |
|
39. |
MongoDB using the mmapv1 storage engine has limits on the number of __________(a) namespaces(b) collections(c) documents(d) none of the mentionedI had been asked this question in an international level competition.I'm obligated to ask this question of Data Modeling Concepts in portion Data Models of MongoDB |
Answer» Right OPTION is (a) namespaces |
|
40. |
To interact with embedded documents, use ___________ notation to “reach into” embedded documents.(a) period(b) dot(c) comma(d) colonI got this question by my school teacher while I was bunking the class.My query is from Data Modeling Concepts in division Data Models of MongoDB |
Answer» RIGHT CHOICE is (b) dot To explain: References PROVIDES more FLEXIBILITY than embedding. |
|
41. |
Normalized data models describe relationships using ___________ between documents.(a) relativeness(b) references(c) evaluation(d) none of the mentionedThis question was addressed to me in class test.The query is from Data Modeling Concepts topic in portion Data Models of MongoDB |
Answer» The CORRECT choice is (B) references |
|
42. |
Point out the wrong statement.(a) Embedded data models make it possible to update related data in a single atomic write operation(b) Embedding related data in documents may lead to situations where documents grow after creation(c) With the MMAPv1 storage engine, document growth can impact write performance and lead to data fragmentation(d) All of the mentionedI have been asked this question in an online interview.This key question is from Data Modeling Concepts in chapter Data Models of MongoDB |
Answer» RIGHT answer is (d) All of the mentioned Easiest explanation: In version 3.0.0, MongoDB USES Power of 2 SIZED Allocations as the default allocation strategy for MMAPV1 in order to account for document growth, minimizing the likelihood of data FRAGMENTATION. |
|
43. |
Embedded data model is used when you have _________ relationships between entities.(a) contains(b) isa(c) inheritance(d) all of the mentionedI had been asked this question in unit test.Enquiry is from Data Modeling Concepts in portion Data Models of MongoDB |
Answer» Right OPTION is (a) contains |
|
44. |
With MongoDB 3.0.0, the default use of the Power of _________ Allocations minimizes the occurrences of re-allocations as well as allows for the effective reuse of the freed record space.(a) 2 Sized(b) 3 Sized(c) 4 Sized(d) 5 SizedThe question was posed to me by my school teacher while I was bunking the class.My question is from Data Modeling Introduction topic in portion Data Models of MongoDB |
Answer» RIGHT answer is (a) 2 Sized Explanation: When USING MMAPv1, if your APPLICATIONS require updates that will frequently cause document growth to exceeds the current power of 2 ALLOCATION, you may want to refactor your data model to USE references between data in distinct documents rather than a denormalized data model. |
|
45. |
Point out the correct statement.(a) With MongoDB, you cannot embed related data in a single structure or document(b) The key consideration for the structure of your documents is the decision to embed or to use references(c) Reference schema is generally known as “denormalized” models(d) None of the mentionedThe question was posed to me in an interview for job.My question is taken from Data Modeling Concepts topic in division Data Models of MongoDB |
Answer» Correct ANSWER is (b) The KEY consideration for the structure of your documents is the decision to embed or to use references |
|
46. |
___________ strategy is used to explicitly avoid document growth.(a) deallocation(b) allocation(c) pre-allocation(d) none of the mentionedThe question was posed to me in semester exam.I need to ask this question from Data Modeling Introduction topic in division Data Models of MongoDB |
Answer» Correct answer is (C) pre-allocation |
|
47. |
___________ data models allow applications to store related pieces of information in the same database record.(a) Reference(b) Embedded(c) External(d) None of the mentionedThis question was addressed to me in an online interview.The query is from Data Modeling Concepts in portion Data Models of MongoDB |
Answer» Right choice is (B) Embedded |
|
48. |
For the __________ storage engine, if the document size exceeds the allocated space for that document, MongoDB relocates the document on disk.(a) MAPv1(b) MAPv2(c) MAPv3(d) MAPv4I have been asked this question in an online quiz.The question is from Data Modeling Introduction topic in portion Data Models of MongoDB |
Answer» CORRECT ANSWER is (C) MAPv3 To explain I WOULD say: Normalizing the data would split the data across multiple collections and would require multiple write operations that are not ATOMIC collectively. |
|
49. |
A ____________ data model with embedded data combines all related data for a represented entity in a single document.(a) normalized(b) denormalized(c) non relational(d) relationalI have been asked this question by my school teacher while I was bunking the class.My question comes from Data Modeling Introduction in portion Data Models of MongoDB |
Answer» Right choice is (b) denormalized |
|
50. |
______________ documents capture relationships between data by storing related data in a single document structure.(a) Capped(b) Embedded(c) External(d) InternalThis question was posed to me in exam.Enquiry is from Data Modeling Introduction topic in division Data Models of MongoDB |
Answer» Correct ANSWER is (b) Embedded |
|