5. Data Warehousing Flashcards

1
Q

What is a data warehouse?

A

A data warehouse is a centralized repository for storing and managing large volumes of data from multiple sources.

It differs from a database in that it is optimized for analysis and reporting rather than transaction processing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How does a data warehouse differ from a database?

A

A data warehouse is designed for analytical queries and reporting, while a database is optimized for transaction processing.

Data warehouses typically support complex queries and large datasets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is star schema?

A

Star schema is a type of database schema that organizes data into fact and dimension tables, resembling a star shape.

It is used for simplifying complex queries.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is snowflake schema?

A

Snowflake schema is a more complex database schema that normalizes dimension tables into multiple related tables.

This can reduce data redundancy but may complicate queries.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you design a dimensional model for reporting?

A

Design a dimensional model by identifying the business processes, defining fact and dimension tables, and establishing relationships.

Focus on user requirements for reporting.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the role of fact tables in a warehouse?

A

Fact tables store quantitative data for analysis and are often denormalized for performance.

They typically contain metrics and foreign keys to dimension tables.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the role of dimension tables in a warehouse?

A

Dimension tables provide context to the data in fact tables, containing descriptive attributes for analysis.

They help in filtering and grouping data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are surrogate keys in a data warehouse?

A

Surrogate keys are unique identifiers for records in a data warehouse, often used instead of natural keys.

They help maintain data integrity and simplify joins.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do you handle slowly changing dimensions (SCD)?

A

Handle slowly changing dimensions by implementing strategies such as Type 1 (overwrite), Type 2 (historical), or Type 3 (limited history).

Choose the method based on business requirements.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is ETL testing in the context of a data warehouse?

A

ETL testing involves validating the Extract, Transform, Load processes to ensure data accuracy and integrity.

It ensures that data is correctly loaded into the warehouse.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How do you choose between Redshift, BigQuery, and Snowflake?

A

Choose based on factors like workload type, scalability, cost, and integration with existing tools.

Each platform has unique strengths and pricing models.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is query optimization in a data warehouse?

A

Query optimization is the process of improving the performance of database queries to reduce execution time and resource usage.

Techniques include indexing, partitioning, and rewriting queries.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How does columnar storage improve performance in a data warehouse?

A

Columnar storage improves performance by storing data in columns rather than rows, allowing for faster data retrieval and compression.

This is particularly beneficial for analytical queries.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly