Giter Site home page Giter Site logo

varenty02 / databases-interview-questions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from devinterview-io/databases-interview-questions

0.0 0.0 0.0 3 KB

๐ŸŸฃ Databases Interview Questions Answered to help you get ready for your next Design Patterns & System Architecture interview.

databases-interview-questions's Introduction

Top 23 Databases interview questions and answers in 2021.

You can check all 23 Databases interview questions here ๐Ÿ‘‰ https://devinterview.io/design/databases-interview-questions


๐Ÿ”น 1. What is Normalization?

Answer:

It is the process of eliminating redundant data and maintaining data dependencies.

Source:ย github.com/dhaval1406ย  ย 


๐Ÿ”น 2. What are the advantages of NoSQL over traditional RDBMS?

Answer:

NoSQL is better than RDBMS because of the following reasons/properities of NoSQL:

  • It supports semi-structured data and volatile data
  • It does not have schema
  • Read/Write throughput is very high
  • Horizontal scalability can be achieved easily
  • Will support Bigdata in volumes of Terra Bytes & Peta Bytes
  • Provides good support for Analytic tools on top of Bigdata
  • Can be hosted in cheaper hardware machines
  • In-memory caching option is available to increase the performance of queries
  • Faster development life cycles for developers

Still, RDBMS is better than NoSQL for the following reasons/properties of RDBMS:

  • Transactions with ACID properties - Atomicity, Consistency, Isolation & Durability
  • Adherence to Strong Schema of data being written/read
  • Real time query management ( in case of data size < 10 Tera bytes )
  • Execution of complex queries involving join & group by clauses
Source:ย stackoverflow.comย  ย 


๐Ÿ”น 3. Define ACID Properties

Answer:

  • Atomicity: It ensures all-or-none rule for database modifications.
  • Consistency: Data values are consistent across the database.
  • Isolation: Two transactions are said to be independent of one another.
  • Durability: Data is not lost even at the time of server failure.
Source:ย github.com/chetansomaniย  ย 


๐Ÿ”น 4. What is Denormalization?

Answer:

It is the process of improving the performance of the database by adding redundant data.

Source:ย github.com/dhaval1406ย  ย 


๐Ÿ”น 5. What are the difference between clustered and a non-clustered index?

Answer:

  • A clustered index is a special type of index that reorders the way records in the table are physically stored. Therefore table can have only one clustered index. The leaf nodes of a clustered index contain the data pages.
  • A non clustered index is a special type of index in which the logical order of the index does not match the physical stored order of the rows on disk. The leaf node of a non clustered index does not consist of the data pages. Instead, the leaf nodes contain index rows.
Source:ย github.com/dhaval1406ย  ย 


๐Ÿ”น 6. How a database index can help performance?

๐Ÿ‘‰๐Ÿผ Check all 23 answers


๐Ÿ”น 7. When should I use a NoSQL database instead of a relational database?

๐Ÿ‘‰๐Ÿผ Check all 23 answers


๐Ÿ”น 8. What is Optimistic locking?

๐Ÿ‘‰๐Ÿผ Check all 23 answers


๐Ÿ”น 9. What Is ACID Property Of A System?

๐Ÿ‘‰๐Ÿผ Check all 23 answers


๐Ÿ”น 10. What is the cost of having a database index?

๐Ÿ‘‰๐Ÿผ Check all 23 answers


๐Ÿ”น 11. How does B-trees index work?

๐Ÿ‘‰๐Ÿผ Check all 23 answers


๐Ÿ”น 12. Explain the difference between exclusive lock and update lock

๐Ÿ‘‰๐Ÿผ Check all 23 answers


๐Ÿ”น 13. What's the difference between a primary key and a unique key?

๐Ÿ‘‰๐Ÿผ Check all 23 answers


๐Ÿ”น 14. What Is Sharding?

๐Ÿ‘‰๐Ÿผ Check all 23 answers


๐Ÿ”น 15. What Is BASE Property Of A System?

๐Ÿ‘‰๐Ÿผ Check all 23 answers



Thanks ๐Ÿ™Œ for reading and good luck on your next tech interview!
Explore 3800+ dev interview question here ๐Ÿ‘‰ Devinterview.io

databases-interview-questions's People

Contributors

devinterview-io avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.