MongoDB interview questions

MongoDB quiz questions

  • 1.

    Does MongoDB support primary-key, foreign-key relationship?

    Answer:

    No. By Default, MongoDB doesn't support primary key-foreign key relationship.

    View
  • 2.

    Why MongoDB is known as best NoSQL database?

    Answer:

    MongoDb is the best NoSQL database because, it is:

    Document Oriented

    Rich Query language

    High Performance

    Highly Available

    Easily Scalable

    View
  • 3.

    What is the difference between MongoDB and MySQL?

    Answer:

    Although MongoDB and MySQL both are free and open source databases, there is a lot of difference between them in the term of data representation, relationship, transaction, querying data, schema design and definition, performance speed, normalization and many more. To compare MySQL with MongoDB is like a comparison between Relational and Non-relational databases.

    View
  • 4.

    What type of DBMS is MongoDB?

    Answer:

    MongoDB is a document oriented DBMS

    View
  • 5.

    Is MongoDB better than other SQL databases? If yes then how?

    Answer:

    MongoDB is better than other SQL databases because it allows a highly flexible and scalable document structure.

    For example:

    • One data document in MongoDB can have five columns and the other one in the same collection can have ten columns.
    • MongoDB database are faster than SQL databases due to efficient indexing and storage techniques.
    View
  • 6.

    What are the different types of NoSQL databases? Give some example.

    Answer:

    NoSQL database can be classified as 4 basic types:

    1. Key value store NoSQL database
    2. Document store NoSQL database
    3. Column store NoSQL database
    4. Graph base NoSQL databse

    There are many NoSQL databases. MongoDB, Cassandra, CouchBD, Hypertable, Redis, Riak, Neo4j, HBASE, Couchbase, MemcacheDB, Voldemort, RevenDB etc. are the examples of NoSQL databases.

    View
  • 7.

    Which are the different languages supported by MongoDB?

    Answer:

    MonggoDB provides official driver support for C, C++, C#, Java, Node.js, Perl, PHP, Python, Ruby, Scala, Go and Erlang.

    You can use MongoDB with any of the above languages. There are some other community supported drivers too but the above mentioned ones are officially provided by MongoDB.

    View
  • 8.

    What do you understand by NoSQL databases? Is MongoDB a NoSQL database? explain.

    Answer:

    At the present time, the internet is loaded with big data, big users, big complexity etc. and also becoming more complex day by day. NoSQL is answer of all these problems, It is not a traditional database management system, not even a relational database management system (RDBMS). NoSQL stands for "Not Only SQL". NoSQL is a type of database that can handle and sort all type of unstructured, messy and complicated data. It is just a new way to think about the database.

    Yes. MongoDB is a NoSQL database.

    View

© 2017 QuizBucket.org