{"id":22742,"date":"2021-07-24T20:23:45","date_gmt":"2021-07-24T20:23:45","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=22742"},"modified":"2021-07-24T20:23:47","modified_gmt":"2021-07-24T20:23:47","slug":"interview-questions-answer-for-mongodb","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/interview-questions-answer-for-mongodb\/","title":{"rendered":"Interview Questions &#038; Answer for MongoDB"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">What are the advantages of MongoDB? Or in other words, why choosing MongoDB and not other implementation of NoSQL?<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">What is the difference between SQL and NoSQL?<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">In what scenarios would you prefer to use NoSQL\/Mongo over SQL?<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">What is a document? What is a collection?<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">What is an aggregator?<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">What is better? Embedded documents or referenced?<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">Have you performed data retrieval optimizations in Mongo? If not, can you think about ways to optimize a slow data retrieval?<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">Queries<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Explain this query: db.books.find({&#8220;name&#8221;: \/abc\/})<\/li><li>Explain this query: db.books.find().sort({x:1})<\/li><li>What is the difference between find() and find_one()?<\/li><li>How can you export data from Mongo DB?<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>What are the advantages of MongoDB? Or in other words, why choosing MongoDB and not other implementation of NoSQL? What is the difference between SQL and NoSQL? In what scenarios&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[2],"tags":[],"class_list":["post-22742","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/22742","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=22742"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/22742\/revisions"}],"predecessor-version":[{"id":22743,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/22742\/revisions\/22743"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=22742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=22742"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=22742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}