Explore topic-wise InterviewSolutions in .

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.

________ stores are used to store information about networks, such as social connections.(a) Key-value(b) Wide-column(c) Document(d) GraphI have been asked this question at a job interview.Query is from NoSQL Databases in section MongoDB and noSQL Concepts of MongoDB

Answer»

The CORRECT ANSWER is (d) GRAPH

Explanation: Graph STORES include Neo4J and HyperGraphDB.

2.

Most NoSQL databases support automatic __________ meaning that you get high availability and disaster recovery.(a) processing(b) scalability(c) replication(d) all of the mentionedThis question was posed to me in an online interview.Question is taken from NoSQL Databases in division MongoDB and noSQL Concepts of MongoDB

Answer»

The correct ANSWER is (c) replication

Easy EXPLANATION: The storage environment is ESSENTIALLY VIRTUALIZED from the developer’s perspective.

3.

Which of the following are the simplest NoSQL databases?(a) Key-value(b) Wide-column(c) Document(d) All of the mentionedThis question was posed to me during a job interview.This interesting question is from NoSQL Databases topic in section MongoDB and noSQL Concepts of MongoDB

Answer»

The CORRECT choice is (a) Key-VALUE

For explanation: Every single item in the DATABASE is stored as an attribute name (or “key”), together with its value in Key-value stores.

4.

“Sharding” a database across many server instances can be achieved with _______________(a) LAN(b) SAN(c) MAN(d) All of the mentionedI had been asked this question by my school principal while I was bunking the class.The query is from NoSQL Databases in portion MongoDB and noSQL Concepts of MongoDB

Answer»

Right ANSWER is (b) SAN

Explanation: “Sharding” a database across many server INSTANCES can be achieved with SQL databases, but usually is ACCOMPLISHED through SANs and other complex ARRANGEMENTS for making hardware ACT as a single server.

5.

Point out the wrong statement.(a) Non Relational databases require that schemas be defined before you can add data(b) NoSQL databases are built to allow the insertion of data without a predefined schema(c) NewSQL databases are built to allow the insertion of data without a predefined schema(d) All of the mentionedThis question was posed to me in a job interview.My enquiry is from NoSQL Databases topic in chapter MongoDB and noSQL Concepts of MongoDB

Answer»

Correct ANSWER is (a) NON Relational databases REQUIRE that schemas be defined before you can add DATA

Explanation: There’s ALSO no way, using a relational database, to effectively address data that’s completely unstructured or unknown in advance.

6.

Which of the following is a wide-column store?(a) Cassandra(b) Riak(c) MongoDB(d) RedisI got this question in an interview for internship.I would like to ask this question from NoSQL Databases in chapter MongoDB and noSQL Concepts of MongoDB

Answer»

The correct OPTION is (a) Cassandra

Explanation: Wide-column STORES such as Cassandra and HBase are optimized for QUERIES over large datasets, and store columns of data together, INSTEAD of rows.

7.

Point out the correct statement.(a) Documents can contain many different key-value pairs, or key-array pairs, or even nested documents(b) MongoDB has official drivers for a variety of popular programming languages and development environments(c) When compared to relational databases, NoSQL databases are more scalable and provide superior performance(d) All of the mentionedThis question was posed to me in exam.My enquiry is from NoSQL Databases topic in chapter MongoDB and noSQL Concepts of MongoDB

Answer»

Correct choice is (d) All of the mentioned

To explain: There are also a LARGE NUMBER of unofficial or community-supported drivers for other PROGRAMMING languages and FRAMEWORKS.

8.

Which of the following is a NoSQL Database Type?(a) SQL(b) Document databases(c) JSON(d) All of the mentionedThis question was addressed to me at a job interview.My question is based upon NoSQL Databases in section MongoDB and noSQL Concepts of MongoDB

Answer»

The CORRECT option is (B) Document databases

For EXPLANATION: Document databases pair each key with a complex data STRUCTURE known as a document.

9.

Which of the following is not a NoSQL database?(a) SQL Server(b) MongoDB(c) Cassandra(d) None of the mentionedThis question was addressed to me in unit test.Question is from NoSQL Databases in section MongoDB and noSQL Concepts of MongoDB

Answer»

Right CHOICE is (a) SQL Server

Explanation: Microsoft SQL Server is a RELATIONAL database management SYSTEM developed by Microsoft.

10.

_____________ can be used for batch processing of data and aggregation operations.(a) Hive(b) MapReduce(c) Oozie(d) None of the mentionedI had been asked this question by my college director while I was bunking the class.Origin of the question is Big data and MongoDB in portion MongoDB and noSQL Concepts of MongoDB

Answer»

Right answer is (b) MapReduce

Best explanation: The aggregation FRAMEWORK ENABLES users to obtain the KIND of results for which the SQL GROUP BY CLAUSE is used.

11.

MongoDB uses a ____________ lock that allows concurrent read access to a database but exclusive write access to a single write operation.(a) readers(b) readers-writer(c) writer(d) none of the mentionedI got this question in examination.The above asked question is from Big data and MongoDB topic in portion MongoDB and noSQL Concepts of MongoDB

Answer»

The correct answer is (B) readers-writer

To ELABORATE: Before version 2.2, this LOCK was implemented on a per-mongod BASIS. Since version 2.2, the lock has been implemented at the database LEVEL.

12.

MongoDB can be used as a ____________ taking advantage of load balancing and data replication features over multiple machines for storing files.(a) AMS(b) CMS(c) File system(d) None of the mentionedI had been asked this question during an internship interview.Question is from Big data and MongoDB topic in portion MongoDB and noSQL Concepts of MongoDB

Answer»

The CORRECT ANSWER is (a) AMS

Explanation: The data is split into RANGES (based on the shard key) and distributed across multiple shards.

13.

MongoDB supports fixed-size collections called ____________ collections.(a) primary(b) secondary(c) capped(d) all of the mentionedI have been asked this question in an online quiz.The question is from Big data and MongoDB topic in division MongoDB and noSQL Concepts of MongoDB

Answer»

Right choice is (c) capped

The best I can explain: This TYPE of COLLECTION maintains INSERTION order and, once the specified SIZE has been reached, behaves like a circular queue.

14.

MongoDB scales horizontally using _________ for load balancing purpose.(a) Replication(b) Partitioning(c) Sharding(d) None of the mentionedThe question was asked by my college professor while I was bunking the class.My doubt is from Big data and MongoDB in portion MongoDB and noSQL Concepts of MongoDB

Answer»

The CORRECT OPTION is (c) Sharding

The explanation is: The USER chooses a SHARD key, which DETERMINES how the data in a collection will be distributed.

15.

Point out the wrong statement.(a) Each replica set member will act in the role of primary replica only(b) The primary replica performs all writes and reads by default(c) Secondaries can also perform read operations, but the data is eventually consistent by default(d) None of the mentionedThe question was asked in a job interview.This question is from Big data and MongoDB topic in division MongoDB and noSQL Concepts of MongoDB

Answer»

The CORRECT answer is (a) Each replica set member will act in the role of primary replica only

Easy EXPLANATION: Each replica set member MAY act in the role of the primary or secondary replica at any TIME.

16.

___________ replicas maintain a copy of the data on the primary using built-in replication.(a) Primary(b) Secondary(c) Backup(d) All of the mentionedThe question was asked during an interview.The above asked question is from Big data and MongoDB in section MongoDB and noSQL Concepts of MongoDB

Answer»

The correct ANSWER is (b) Secondary

To explain I would say: When a PRIMARY REPLICA FAILS, the replica set automatically conducts an election process to determine which secondary should become the primary.

17.

Point out the correct statement.(a) MongoDB cannot be used as a file system(b) MongoDB can run over single servers only(c) Embedded documents and arrays reduce need for joins(d) None of the mentionedThis question was addressed to me in homework.Enquiry is from Big data and MongoDB in chapter MongoDB and noSQL Concepts of MongoDB

Answer»

Correct answer is (C) Embedded documents and arrays reduce NEED for joins

To explain I would say: MongoDB can run over multiple servers, balancing the load and/or duplicating DATA to keep the system up and RUNNING in CASE of hardware failure.

18.

MongoDB provides high ____________with replica sets.(a) performance(b) availability(c) scalability(d) none of the mentionedThis question was posed to me during an interview for a job.Query is from Big data and MongoDB in division MongoDB and noSQL Concepts of MongoDB

Answer» CORRECT option is (b) availability

The BEST I can explain: A replica set CONSISTS of two or more COPIES of the data.
19.

MongoDB is a _________ database that provides high performance, high availability, and easy scalability.(a) graph(b) key value(c) document(d) all of the mentionedI got this question during an online interview.My question is taken from Introduction to MongoDB in division MongoDB and noSQL Concepts of MongoDB

Answer»

The CORRECT answer is (c) document

Easiest explanation: DOCUMENTS (objects) map nicely to PROGRAMMING language DATA types.

20.

Dynamic schema in MongoDB makes ____________ easier for applications.(a) inheritance(b) polymorphism(c) encapsulation(d) none of the mentionedI had been asked this question during an interview.I want to ask this question from Introduction to MongoDB in portion MongoDB and noSQL Concepts of MongoDB

Answer»

The correct CHOICE is (B) polymorphism

Explanation: RELATIONAL databases REQUIRE that schemas be defined before you can add data.

21.

MongoDB has been adopted as ________ software by a number of major websites and services.(a) frontend(b) backend(c) proprietary(d) all of the mentionedI got this question by my school teacher while I was bunking the class.My doubt stems from Introduction to MongoDB in section MongoDB and noSQL Concepts of MongoDB

Answer»

Right OPTION is (b) backend

To explain I would SAY: MongoDB is the most popular NOSQL database SYSTEM.

22.

Initial release of MongoDB was in the year?(a) 2000(b) 2005(c) 2009(d) 2011I got this question in semester exam.Query is from Introduction to MongoDB topic in section MongoDB and noSQL Concepts of MongoDB

Answer»

Right option is (C) 2009

Explanation: MONGODB is DEVELOPED by the software company 10gen in October 2007 as a COMPONENT of a PLANNED platform as a service product.

23.

MongoDB Queries can return specific fields of documents which also include user-defined __________ functions.(a) Javascript(b) C(c) C++(d) All of the mentionedThe question was posed to me in quiz.The origin of the question is Introduction to MongoDB in portion MongoDB and noSQL Concepts of MongoDB

Answer» CORRECT option is (a) Javascript

Explanation: MongoDB SUPPORTS search by field, range QUERIES, REGULAR EXPRESSION searches.
24.

Point out the wrong statement.(a) Secondary indices are not available in MongoDB(b) MongoDB supports search by field, range queries, regular expression searches(c) MongoDB can store the business subject in the minimal number of documents(d) All of the mentionedI got this question in an internship interview.Question is taken from Introduction to MongoDB topic in chapter MongoDB and noSQL Concepts of MongoDB

Answer»

The correct option is (a) Secondary INDICES are not AVAILABLE in MongoDB

Easy explanation: Any FIELD in a MongoDB DOCUMENT can be INDEXED.

25.

Which of the following format is supported by MongoDB?(a) SQL(b) XML(c) BSON(d) All of the mentionedI had been asked this question during an interview.My enquiry is from Introduction to MongoDB in section MongoDB and noSQL Concepts of MongoDB

Answer»

The CORRECT answer is (c) BSON

The explanation: MongoDB ESCHEWS the traditional table-based relational database STRUCTURE in favor of JSON-like documents with dynamic SCHEMAS.

26.

Point out the correct statement.(a) MongoDB is classified as a NoSQL database(b) MongoDB favours XML format more than JSON(c) MongoDB is column oriented database store(d) All of the mentionedThis question was addressed to me during an online exam.Question is taken from Introduction to MongoDB in section MongoDB and noSQL Concepts of MongoDB

Answer»

Right OPTION is (a) MongoDB is classified as a NoSQL database

Explanation: MongoDB supports JSON format compared to XML.

27.

Which of the following language is MongoDB written in?(a) Javascript(b) C(c) C++(d) All of the mentionedI got this question during an interview.This key question is from Introduction to MongoDB topic in chapter MongoDB and noSQL Concepts of MongoDB

Answer»

Correct CHOICE is (d) All of the mentioned

The best explanation: MONGODB (from HUMONGOUS) is a cross-platform document-oriented DATABASE.