Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Top mongo db interview question and answer

439 views

Published on

Mongo-DB is a document database which provides high performance, high availability and easy scalability.
MongoDB stores BSON (Binary Interchange and Structure Object Notation) objects in the collection. The concatenation of the collection name and database name is called a namespace

Published in: Technology
  • Be the first to comment

Top mongo db interview question and answer

  1. 1. Hub4Tech Top MongoDB Interview Question and Answer
  2. 2. Answer: • Mongo-DB is a document database which provides high performance, high availability and easy scalability. Question: 1 Explain what is MongoDB?
  3. 3. Answer: • MongoDB stores BSON (Binary Interchange and Structure Object Notation) objects in the collection. The concatenation of the collection name and database name is called a namespace Question: 2 What is “Namespace” in MongoDB?
  4. 4. 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. Question: 3 What do you understand by NoSQL databases? Is MongoDB a NoSQL database? explain.
  5. 5. 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. Question: 4 What is the difference between MongoDB and MySQL?
  6. 6. Answer: • MongoDB and CouchDB both are the great example of open source NoSQL database. both are document oriented databases. Although both stores data but there is a lot of difference between them in terms of implementation of their data models, interfaces, object storage and replication methods etc. Question: 5 What is the difference b/w MongoDB and CouchDB?
  7. 7. Answer: • MongoDB uses a database profiler to perform characteristics of each operation against the database. You can use a profiler to find queries and write operations Question: 6 Why does Profiler use in MongoDB?
  8. 8. Answer: • The procedure of storing data records across multiple machines is referred as Sharding. It is a MongoDB approach to meet the demands of data growth. It is the horizontal partition of data in a database or search engine. Each partition is referred as shard or database shard. Question:7 What is sharding in MongoDB?
  9. 9. Answer: • Syntax to create collection in MongoDB is • db.createCollection(name,options) • Syntax to drop collection in MongoDB is db.collection.drop() Question: 8 What is the syntax to create a collection and to drop a collection in MongoDB?
  10. 10. MongoDB Online Free Interview Question https://goo.gl/4RTUZv MongoDB Online Free Tutorials https://goo.gl/4RTUZv MongoDB Online Free Quiz https://goo.gl/4RTUZv On demand Training and Talent Assessment Platform

×