DWH INTERVIEW QUESTIONS

Data Warehousing Concepts - Questions & Answers

Data Warehousing Concepts - Detailed Q&A

Interview Questions and Answers

  1. What is Data Normalization and Denormalization? Normalization is the process of organizing data to eliminate redundancy and improve integrity. Denormalization introduces redundancy to improve read performance, often used in reporting systems for faster querying.
  2. Why would you like to Denormalize your design? Denormalization reduces the number of joins needed during query execution. It enhances performance in read-heavy operations like reporting, especially in analytical systems like data warehouses.
  3. What is Data Warehouse? A data warehouse is a centralized repository used to store integrated, historical data from multiple sources. It supports analytics and decision-making processes across the organization.
  4. Why do we need Data Warehouse? Data warehouses enable businesses to perform complex queries and analysis on large datasets, unify data from various systems, and generate valuable insights for strategic decisions.
  5. What is data Mart? A data mart is a smaller, subject-specific version of a data warehouse. It focuses on a particular business function like finance, marketing, or sales, and is faster and easier to implement.
  6. Difference between Bill Inmon and Ralph Kimball approaches? Inmon's approach is top-down, starting with a centralized, normalized enterprise data warehouse. Kimball's approach is bottom-up, using dimensional models and data marts that later combine to form a warehouse.
  7. What is Dimensional Model? A dimensional model organizes data into facts and dimensions to optimize querying and reporting. It's commonly used in data warehousing and supports star and snowflake schema structures.
  8. Difference between Dimensional and ER Model? Dimensional modeling focuses on ease of querying and reporting, while ER modeling is used for transaction processing. Dimensional models use star/snowflake schema; ER models use normalized relations.
  9. What is Fact table and types? Fact tables store numerical performance metrics (measures) and foreign keys to dimension tables. Types include Transactional, Snapshot, and Accumulating Fact Tables.
  10. What is FactLess Fact Table? A factless fact table stores only keys without measurable data. It is used to track events or conditions, such as student attendance or product availability.
  11. Steps in Designing a Fact Table? Identify the business process, define the grain, determine the facts (measures), and identify dimensions. Ensure consistency in the design for performance and accuracy.
  12. What is Measure and types? Measures are quantitative values used in analysis. Types include Additive (can be summed), Semi-additive (can be summed over some dimensions), and Non-additive (cannot be summed).
  13. What is Dimension table? A dimension table contains descriptive attributes (textual or categorical) to provide context to facts. Examples include customer, time, and product dimensions.
  14. Types of Dimension Tables? Types include Conformed, Junk, Role-playing, Degenerate, and Slowly Changing Dimensions (SCD), each designed to serve different analytical purposes.
  15. What is Slowly Changing Dimension? A Slowly Changing Dimension tracks changes to attribute values over time. This enables historical reporting, where changes in values are not lost.
  16. SCD1 vs SCD2? SCD1 overwrites existing data without preserving history. SCD2 creates new records to maintain historical changes, allowing accurate time-based reporting.
  17. Two columns in SCD2 for tracking? Common columns include EffectiveDate and ExpiryDate, or an IsCurrent flag to identify the latest version of the record.
  18. Preferred Dimension Type? SCD2 is widely preferred for tracking full history. SCD3 allows only limited history (previous and current), making it less versatile.
  19. SCD Type 0, 4, 6? Type 0 retains original data. Type 4 stores historical data in a separate table. Type 6 combines Types 1 and 2, showing current and historical info.
  20. What is Junk Dimension? A junk dimension combines unrelated flags or attributes with low cardinality into a single dimension to simplify schema design and improve performance.
  21. What is Conformed Dimension? A conformed dimension is shared across multiple fact tables or data marts, maintaining consistency in reporting across business processes.
  22. What is Date Dimension? A date dimension is a time-based lookup table with attributes like day, week, month, and fiscal periods. It's usually pre-loaded using scripts or tools.
  23. What is Star Schema? A star schema consists of a central fact table surrounded by denormalized dimension tables. It's simple and ideal for performance in BI tools.
  24. What is Snowflake Schema? A snowflake schema is a normalized version of a star schema, where dimension tables are split into sub-dimensions, making the model more complex but space efficient.
  25. Advantages/Disadvantages of Star Schema? Pros: Faster querying, simple joins, intuitive. Cons: Data redundancy and larger storage footprint.
  26. Advantages/Disadvantages of Snowflake? Pros: Less data redundancy, normalized. Cons: Complex joins, slower performance in queries compared to star schema.
  27. Steps to load DWH/Data Mart? Steps: Extract data → Cleanse → Transform → Stage → Load dimension tables → Load fact tables → Validate and audit.
  28. Which tables to load first? Load dimension tables first to resolve surrogate keys. Fact tables reference those keys, so loading them afterward ensures integrity.
  29. What is Early/Late Arriving Fact/Dimension? Early-arriving fact: fact arrives before dimension. Late-arriving dimension: dimension is delayed. Use dummy records or update processes to handle them.
  30. What is Natural Key? A natural key is a real-world identifier like Email, SSN, or CustomerID. It's used in source systems and often carries business meaning.
  31. What is Surrogate Key? A surrogate key is an artificial key, typically auto-incremented, used to uniquely identify rows in dimension tables and maintain consistency.
  32. What is Primary key? A primary key uniquely identifies a row in a table and ensures no duplicates. It enforces entity integrity.
  33. What is Foreign Key? A foreign key is a reference to the primary key in another table, establishing relationships between tables and enforcing referential integrity.
  34. Natural Key vs Surrogate Key? Surrogate keys are preferred in data warehouses to avoid issues from changes in natural keys and ensure consistency across systems.
  35. Approach for loading 300M records? Use staging tables, disable constraints and indexes temporarily, bulk load in batches, then rebuild indexes and update statistics.
  36. Best practices for big fact table? Yes, implement partitioning. Consider access patterns, update frequency, and data volume to improve query performance and manageability.
  37. Clustered/Non-clustered index on Surrogate Key? Use a clustered index on surrogate keys for faster joins. Consider non-clustered indexes on frequently queried attributes as needed.
  38. Indexes for frequently searched dimensions? Create non-clustered indexes on columns like name, category, or status that are used in WHERE or JOIN conditions frequently.
  39. Partitioning facts or dimensions? Partition large fact tables by date or region. Dimension tables are typically small and not partitioned unless extremely large.
  40. Ensure data integrity? Implement foreign keys, use constraints, regular audits, and ETL validation steps to ensure data accuracy and consistency.
  41. Recovery mode for 700M record load? Use SIMPLE or BULK_LOGGED mode for faster performance during initial load, and switch back to FULL for point-in-time recovery afterward.
  42. Deleting 100M wrong records? Use partition switching if supported, or delete in small batches using indexed filters. Ensure minimal logging and transaction logging overhead.
  43. Update statistics on fact tables? After major loads or weekly. Monitor query performance and execution plans to determine when to update statistics to maintain performance.
  44. What is Merge Statement? MERGE is a SQL operation that synchronizes two tables by performing INSERT, UPDATE, or DELETE based on a condition. It's used in upserts and delta processing.

12 comments:

  1. Would Be great if You add answers as well

    ReplyDelete
  2. Thanks for sharing these questions about data warehouse jobs, you almost covered everything. As a data warehouse consulting partner, we provide training and consulting about data warehouse so people can prepare for their job interview.

    ReplyDelete
  3. Would be great if you share the answers as well

    ReplyDelete
  4. Excellent article... Thank you for providing such valuable information; the contents are quite intriguing.
    Data Engineering Services 
    Data Analytics Solutions
    Data Modernization Solutions
    AI & ML Service Provider

    ReplyDelete
  5. Hello
    Helpful and Informative content Well, sewembroidry is one of the best embroidry machines in this technical era. Here you can find out best machines for your clothing brands. Moreover, it has many advantages.
    Thank you

    ReplyDelete
  6. Vocabulary is the inspiration of language Wordfeud helper
    In a nutshell, vocabulary is important as it’s the basis of all language. It’s the raw constructing blocks that we can use to explicit our mind and ideas, percentage information, understand others and develop private relationships

    ReplyDelete
  7. a good article. You did a great job of explaining the details of the Data Warehouse. I must mention that you're doing an excellent job. continue posting]

    https://hkrtrainings.com/google-cloud-training

    ReplyDelete
  8. This comment has been removed by the author.

    ReplyDelete
  9. Could you want to receive quick FREE money? i load bank accounts any amounts upto 100 millions dollars,  i can load also cash app,   any amounts,  
    i have also an ATM card that i give you, to withdrew unlimited amount of Free money.  email me awdhackd@gmail.com  

    other services are

    *University grades changing
    *Bank accounts hack
    *Twitters hack
    *email accounts hack
    *Grade Changes hack
    * load bank account any amounts,  i can load also cash app,   any amount,   even if its 100 million dollars onto a bank account.
    *Website crashed hack
    *server crashed hack
    *Retrieval of lost file/documents
    *Erase criminal records hack
    *Databases hack
    *Sales of Dumps cards of all kinds
    *Untraceable Ip
    *Individual computers hack
    *Websites hack
    *Facebook hack
    *Control devices remotely hack
    *Burner Numbers hack
    *Verified Paypal Accounts hack
    *Any social media account hack
    *Android & iPhone Hack
    *Word Press Blogs hack
    *Text message interception hack
    *email interception hack



    so tell me what services you want?       email me awdhackd@gmail.com      awdhackd  at g mail com  

    Could you want to receive quick FREE money? i load bank accounts any amounts upto 100 millions dollars,  i can load also cash app,   any amounts,  
    i have also an ATM card that i give you, to withdrew unlimited amount of Free money.  email me awdhackd@gmail.com  

    other services are

    *University grades changing
    *Bank accounts hack
    *Twitters hack
    *email accounts hack
    *Grade Changes hack
    * load bank account any amounts,  i can load also cash app,   any amount,   even if its 100 million dollars onto a bank account.
    *Website crashed hack
    *server crashed hack
    *Retrieval of lost file/documents
    *Erase criminal records hack
    *Databases hack
    *Sales of Dumps cards of all kinds
    *Untraceable Ip
    *Individual computers hack
    *Websites hack
    *Facebook hack
    *Control devices remotely hack
    *Burner Numbers hack
    *Verified Paypal Accounts hack
    *Any social media account hack
    *Android & iPhone Hack
    *Word Press Blogs hack
    *Text message interception hack
    *email interception hack



    so tell me what services you want?       email me awdhackd@gmail.com      awdhackd  at g mail com  



    Could you want to receive quick FREE money? i load bank accounts any amounts upto 100 millions dollars,  i can load also cash app,   any amounts,  
    i have also an ATM card that i give you, to withdrew unlimited amount of Free money.  email me awdhackd@gmail.com  

    other services are

    *University grades changing
    *Bank accounts hack
    *Twitters hack
    *email accounts hack
    *Grade Changes hack
    * load bank account any amounts,  i can load also cash app,   any amount,   even if its 100 million dollars onto a bank account.
    *Website crashed hack
    *server crashed hack
    *Retrieval of lost file/documents
    *Erase criminal records hack
    *Databases hack
    *Sales of Dumps cards of all kinds
    *Untraceable Ip
    *Individual computers hack
    *Websites hack
    *Facebook hack
    *Control devices remotely hack
    *Burner Numbers hack
    *Verified Paypal Accounts hack
    *Any social media account hack
    *Android & iPhone Hack
    *Word Press Blogs hack
    *Text message interception hack
    *email interception hack



    so tell me what services you want?       email me awdhackd@gmail.com      awdhackd  at g mail com  

    ReplyDelete