Most Common Data Modelling Interview Questions

Last updated on Nov 07, 2022
  • Share
Data Modelling Interview Questions

Data modeling is a process of creating models for the data to store in a database. Technically, it comprises of a conceptual presentation of data objects, the association of different data objects, and its rules. It involves normalization, enforcing data integrity, and describing business entities along with relations. Read our list of Data Modelling Interview Questions to easily understand this subject on a deeper level and crack that job interview.

Most Frequently Asked Data Modelling Interview Questions

Here in this article, we will be listing frequently asked Data Modelling Interview Questions and Answers with the belief that they will be helpful for you to gain higher marks. Also, to let you know that this article has been written under the guidance of industry professionals and covered all the current competencies.

Q1. Write down the difference between OLTP and OLAP?
Answer
OLTP OLAP
This is an Online Transactional System. This is an online analysis and data retrieving process.
It comprises of a large number of short online transactions. It comprises of a large volume of data.
This uses a traditional DBMS. This uses a Data Warehouse.
Here the tables are normalized Here, the tables are not normalized.
It is designed for real-time business operations due to its fast response rate. It is designed for the analysis of business measures via attributes and categories.
Q2. Explain the various types of data models?
Answer

There are three types of data models, in general:

1. Conceptual Model: This data model defines what’s contained in the system. The theoretical model is typically created and used by business stakeholders and data architects. Its purpose is the organization, scoping, and the definition of business concepts and rules.

2. Logical Model: The logical model defines the implementation of the system regardless of the DBMS. It is usually created by business analysts and data architects. Its primary purpose is the development of a technical map for the rules and data structures. It shows the entity names, relationships, attributes, primary keys, and the foreign keys in each entity.

3. Physical Model: The Physical data model is responsible for the implementation of the system with regard to a specific DBMS. This model is usually created by DBAs and developers. Its purpose is the actual execution of the database. It displays the primary, foreign keys, table, column names, and column data types.

Q3. List the various design schema in data modeling?
Answer

There are two types of data modeling schemas:

1. Star Schema: It is the purest form of schema consisting of a fact table in the center referencing multiple dimension tables around it. In this, all the dimension tables are connected to the fact table, and in the fact table, the primary key acts as a foreign key.

2. Snowflake Schema: This is a bit of a complicated schema with an increased level of the normalization process. The fact table remains the same as in the star schema, but the dimension tables are normalized. Due to the presence of multiple levels of dimension tables, it is named as a snowflake.

Q4. What is Denormalization, and when should you use it?
Answer

Denormalization is the process used for constructing a data warehouse. It should be used when there is frequent involvement of the table while retrieving data.

Q5. Explain dimension and attribute.
Answer

Dimensions represent qualitative data. For example, product, class, plan, etc. A dimension table has textual or descriptive attributes. For example, the product category and product name are two attributes of the product dimension table.

Q6. What are the various types of measures?
Answer

There are three types of measures; they are:

1. Non- additive measures: These are the ones on which no aggregation function can be applied. Example: Ratio or Percentage Column.

2. Semi- additive measures: These are the ones on which some of the aggregation functions can be applied. Example: Account Balance or Fee Rate.

3. Additive measures: These are the ones on which all the aggregation functions can be applied. Example: Number of Units Purchased.

Q7. What is the primary key?
Answer

The primary key is an individual or group of columns that unequally identify each and every row inside the table. The value of a primary key cannot be null. Each table must contain at least one primary key.

Q8. What do you mean by a foreign key?
Answer

A foreign key is a group of attributes that are used for linking a parent and the child table. In this, the value of the foreign key column is available in the child table and referred to the value of the primary key corresponding to the parent table.

Reviewed and verified by Best Interview Question
Best Interview Question

With our 10+ experience in PHP, MySQL, React, Python & more our technical consulting firm has received the privilege of working with top projects, 100 and still counting. Our team of 25+ is skilled in...