Data Warehousing

Chapter 3
Requirements Engineering and Warehouse Lifecycle

Post Graduate Program in IT Engineering
Data Warehousing   •   Post Graduate

Requirements Engineering and Warehouse Lifecycle

Introduction and Context

A data warehouse is not merely a large database. It is an organizational information system designed to provide consistent, historical, integrated, and decision-oriented data. Its value depends less on the volume of stored data than on whether it answers important business questions accurately, promptly, and in a form that decision-makers can trust.

Requirements engineering for data warehousing therefore differs from conventional application requirements engineering. An operational system is usually specified around transactions and user interactions: creating an order, registering a patient, or updating an account. A warehouse is specified around analysis: identifying profitable customers, measuring service-level compliance, explaining cost variation, detecting abnormal behavior, or forecasting demand. Requirements must consequently connect business strategy with measurable information needs, source-system realities, dimensional models, architecture, governance, delivery sequencing, and acceptance criteria.

The warehouse lifecycle is iterative. It begins with a business problem, proceeds through discovery and dimensional requirements, evaluates source and technical feasibility, delivers an increment, and continues through operation, improvement, and eventual retirement. Treating the warehouse as a one-time construction project commonly produces technically elegant systems that do not answer the questions users actually ask.

Learning Objectives

By the end of this chapter, students should be able to:

1. Translate business strategy and stakeholder questions into dimensional requirements.

2. Define business processes, grain, facts, dimensions, measures, and KPI rules.

3. Evaluate source-system constraints, data quality, latency, security, and service expectations.

4. Compare lifecycle and architecture choices for warehouse delivery.

5. Construct a phased roadmap and define testable acceptance criteria.

6. Critically assess governance, ethical, regulatory, and AI-related implications.

1. Requirements Engineering as an Information-Systems Discipline

Requirements engineering is the systematic elicitation, analysis, specification, validation, prioritization, and management of requirements. In warehousing, requirements exist at several related levels:

  • Strategic requirements express organizational objectives, such as reducing customer churn or improving inventory availability.
  • Analytical requirements state the questions users must answer, such as “Which product categories cause late deliveries by region and month?”
  • Information requirements identify dimensions, measures, history, granularity, and relationships needed to answer those questions.
  • Quality-of-service requirements define freshness, availability, response time, scalability, recoverability, and security.
  • Technical and operational requirements address ingestion, transformation, metadata, monitoring, lineage, deployment, and support.
  • Governance requirements address definitions, ownership, access, retention, privacy, and regulatory compliance.

A useful distinction is between a requirement and a proposed solution. “Managers need daily visibility of margin by channel” is a requirement. “Build a star schema in a particular cloud platform” is a solution decision. Prematurely fixing the solution can conceal alternative designs and make it difficult to test whether the underlying business need has been met.

Stakeholder perspectives

Different stakeholders describe the same need differently. Executives emphasize strategic outcomes; analysts emphasize flexibility and definitions; operational managers emphasize freshness; engineers emphasize source feasibility; auditors emphasize traceability; and customers or citizens may be concerned with privacy and fairness. Requirements work must reconcile these perspectives rather than allowing the most technically influential stakeholder to define the warehouse alone.

A stakeholder register should identify each stakeholder’s role, decisions supported, authority, data interests, risks, and preferred communication mechanism. A responsibility assignment matrix can clarify who is accountable for definitions, who supplies source data, who approves access, and who accepts delivered capabilities.

2. From Strategy to Dimensional Requirements

Strategy maps and decision chains

The translation process should move through a traceable chain:

Strategic objective → decision → analytical question → KPI or measure → dimensional context → source evidence → acceptance test.

For example:

  • Strategic objective: improve on-time delivery.
  • Decision: determine where to revise carrier allocation.
  • Analytical question: which carriers and distribution centers produce late deliveries for priority customers?
  • KPI: on-time delivery rate.
  • Dimensional context: carrier, distribution center, customer segment, product, geography, and delivery date.
  • Source evidence: order, shipment, promised date, actual delivery date, and customer master data.
  • Acceptance test: an authorized user can reproduce the approved rate for a specified period and explain excluded records.

This chain prevents the common error of collecting data simply because it is available.

Business questions and use cases

Requirements should be expressed using realistic decision scenarios. A use case normally records the user, decision, frequency, dimensions for analysis, measures, filters, required history, latency, security classification, and expected action. Interviews should be complemented by observation, document analysis, workshop exercises, report inventory, data profiling, and review of regulatory obligations.

Stakeholders frequently describe outputs rather than needs: “We need a dashboard.” The analyst should ask what decision the dashboard enables, what action follows an exception, how often the information is needed, and what would count as a correct result.

The dimensional modeling contract

A dimensional requirement should explicitly define:

1. Business process: the event or process being measured, such as a sale, payment, claim, or inventory snapshot.

2. Grain: what one fact row represents. Examples include one order line, one service interaction, or one product-location-day snapshot.

3. Dimensions: descriptive perspectives used to filter, group, and compare facts.

4. Facts: numeric or otherwise measurable observations associated with the grain.

5. Time: event time, posting time, effective time, and loading time where relevant.

6. History: whether changes to descriptive attributes must be preserved.

7. Null and exception behavior: how unknown, missing, cancelled, or invalid events are represented.

Grain must be declared before selecting facts. If a fact table mixes order-line and shipment-event grains, totals can be duplicated when users join or aggregate it. Separate fact tables, conformed dimensions, or an explicitly designed accumulating snapshot may be required.

Measures and KPI definitions

A measure is an observation stored or derived from facts. Measures may be additive, semi-additive, or non-additive. Revenue is often additive across products and time, whereas an account balance may be additive across accounts but not across time. Ratios and percentages are generally non-additive and should be recalculated from their component numerators and denominators rather than summed or averaged indiscriminately.

For example, an on-time delivery rate can be defined as:

On-time delivery rate = number of qualifying deliveries meeting the approved time rule ÷ number of qualifying deliveries.

The definition must specify the population, treatment of cancelled orders, time-zone rule, tolerance window, and denominator exclusions. If 90 of 100 qualifying deliveries meet the rule, the rate is 90%. If regional rates are combined, the enterprise rate should normally be calculated from total qualifying on-time deliveries divided by total qualifying deliveries, not by taking an unweighted average of regional percentages.

A KPI specification should include its name, business purpose, formula, unit, grain, dimensions, owner, refresh frequency, target, threshold, source fields, exclusions, version history, and reconciliation method. KPI definitions are governance assets, not merely dashboard labels.

3. Source-System and Data Requirements

Source assessment

Source-system analysis determines whether requirements are feasible and what engineering effort is necessary. Important questions include:

  • What systems create or modify the data?
  • Are identifiers stable and shared across systems?
  • Are timestamps reliable and consistently time-zoned?
  • Can historical changes be reconstructed?
  • Is extraction supported through logs, APIs, files, queries, or events?
  • What are the volume, velocity, and peak-load characteristics?
  • Are source systems available during extraction windows?
  • Who owns the data and resolves defects?

Profiling should examine completeness, uniqueness, validity, consistency, conformity, timeliness, and referential integrity. A source may be technically accessible yet unsuitable for a KPI because its fields do not capture the required business event or because historical corrections are overwritten.

Constraints and data debt

Legacy systems may lack reliable change timestamps, stable keys, documentation, or access interfaces. A warehouse may therefore need reconciliation logic, source-side extracts, change-data-capture tooling, or a staging history that preserves successive observations. These decisions should be documented as risks rather than hidden in transformation code.

Data quality is not solely an engineering problem. If customer addresses are incomplete because a business process permits them to be omitted, a technical cleansing rule cannot establish the missing truth. Ownership, prevention at capture, exception workflows, and agreed tolerances are required.

Metadata and lineage

Metadata should describe technical structures, business meanings, ownership, sensitivity, transformations, quality rules, and lineage. Lineage allows an analyst to determine which source fields contribute to a KPI and allows an auditor to assess the impact of a source change. A data catalog, glossary, schema registry, and automated profiling tools can support this work, but tools do not replace accountable stewardship.

4. Service Expectations and Non-Functional Requirements

A warehouse requirement is incomplete if it specifies only subject areas and reports. Service expectations should be measurable:

  • Freshness: the maximum acceptable age of data when presented to users.
  • Availability: the proportion of agreed service time during which the service is usable.
  • Performance: response-time targets for representative query classes.
  • Scalability: behavior as users, data volume, and concurrency grow.
  • Recoverability: recovery point and recovery time objectives.
  • Security: authentication, authorization, encryption, masking, and monitoring.
  • Maintainability: ease of changing mappings, rules, schemas, and deployments.
  • Usability: accessibility, understandable terminology, and appropriate visualization.

Freshness is not the same as latency. A pipeline may load data quickly after extraction begins but still fail a daily freshness requirement if the source is not available until late in the day. Requirements should identify the start point and measurement method.

Security requirements should follow data classification and least privilege. Row-level or column-level controls may be necessary where users are permitted to see only their region, legal entity, or role-relevant attributes. Test data must be protected; production data should not be copied into development without appropriate masking and authorization.

5. Warehouse Architectures and Lifecycle Models

Architectural layers

A typical architecture may contain:

1. Source systems.

2. Ingestion and landing area.

3. Staging or raw historical layer.

4. Integrated warehouse or lakehouse storage.

5. Curated dimensional marts or semantic models.

6. Analytical and reporting tools.

7. Cross-cutting governance, security, metadata, orchestration, quality, and monitoring.

The exact implementation may be on-premises, cloud-based, lakehouse-oriented, or hybrid. Architecture should follow requirements concerning latency, workload, governance, cost, skills, and integration rather than fashionable terminology.

Lifecycle approaches

A top-down enterprise approach establishes an integrated warehouse and conformed dimensions before delivering many departmental views. It can support strong consistency but may require substantial initial investment.

A bottom-up dimensional approach delivers focused marts around high-value business processes and integrates them through conformed dimensions. It can produce early value, but isolated marts create inconsistency if integration standards are weak.

An iterative or agile approach delivers vertical slices: a complete, usable capability from source ingestion through semantic presentation. It reduces feedback risk and makes value visible, but requires disciplined architecture and a product owner able to prioritize.

A data mesh approach distributes domain ownership and treats data products as products. It may improve domain accountability, but it does not eliminate the need for global definitions, interoperability, governance, and platform capabilities.

A robust program commonly combines enterprise standards with incremental delivery: shared principles and conformed dimensions are established early, while business capabilities are delivered in prioritized slices.

6. Prioritization, Roadmaps, and Acceptance Criteria

Prioritization

Prioritization should consider business value, regulatory urgency, risk reduction, feasibility, dependency, and learning value. A simple scoring model can rank candidates, but scores are aids to judgment rather than objective truth. The program should explicitly identify mandatory compliance capabilities, foundational work, quick wins, and deferred enhancements.

Dependencies matter. A customer profitability dashboard may depend on a governed customer identity model, product hierarchy, cost allocation rules, and secure access design. Delivering the visual interface first can create false progress.

Roadmap structure

A practical roadmap may contain these stages:

  • Discovery: strategy, stakeholders, questions, source inventory, and risks.
  • Foundation: governance, environments, security, metadata, ingestion patterns, and quality framework.
  • First vertical slice: one high-value process with an agreed grain, KPI set, and usable presentation.
  • Expansion: additional processes, conformed dimensions, history, and performance optimization.
  • Industrialization: automated testing, monitoring, release management, cost control, and operating procedures.
  • Continuous improvement: new questions, changed regulations, source evolution, and retirement of obsolete products.

Each increment should have an explicit definition of ready and definition of done. “Done” should include data reconciliation, metadata, security testing, operational monitoring, documentation, user validation, and support ownership—not merely code deployment.

Acceptance criteria

Acceptance criteria must be observable and testable. Examples include:

  • For every approved sales transaction in the source extract, the warehouse contains one fact row at the declared grain, except for documented rejects.
  • The monthly revenue KPI reconciles to the approved financial control total within the agreed tolerance.
  • A manager can filter the metric by product, region, and month and obtain results within the stated response target under representative load.
  • Users outside an authorized region cannot view restricted customer attributes.
  • A failed load generates an alert within the specified operational interval and does not publish incomplete data as final.

Criteria should identify test data, expected results, tolerances, responsible approver, and evidence to retain. Reconciliation is stronger when performed at multiple levels: record counts, control totals, key distributions, and business-rule exceptions.

7. Worked Application: Illustrative Retail Delivery Warehouse

Background and problem

The following is an illustrative case. A national retailer has rising complaints about late deliveries. Its order-management system records promised dates, the transport system records carrier events, and the customer system records segments. Executives currently receive a weekly spreadsheet assembled manually, with inconsistent definitions of “on time.”

Analysis

Workshops identify two decisions: reallocating carrier volume and prioritizing distribution-center improvement. The required business process is delivery performance. The selected grain is one delivered order line, because partial shipments and product-level service analysis are required. A separate shipment-event fact is retained for operational event analysis.

Dimensions include date, customer, product, carrier, distribution center, geography, and service level. Facts include ordered quantity, delivered quantity, promised delivery timestamp, actual delivery timestamp, freight cost, and an on-time indicator. The specification states that a delivery is on time when the actual timestamp is no later than the promised timestamp plus an approved tolerance; cancelled orders are excluded, while returned products remain included for the original delivery assessment.

Profiling reveals that one carrier supplies local time without a time-zone indicator and that customer identifiers differ between systems. The team therefore requires a carrier-specific time interpretation rule, an enterprise customer cross-reference, and an “unknown” member for unresolved identities. Unknown records are reported rather than silently discarded.

Approach and solution

The first release loads the previous 13 months and refreshes daily. It provides a governed semantic model with the approved KPI, drill-down to order line, data-quality exception reporting, and role-based access. The roadmap later adds near-real-time shipment events only if a demonstrated operational decision justifies the additional cost and complexity.

Acceptance tests compare the warehouse with independently approved samples and financial or operational control totals. Business users validate that the result supports carrier and distribution-center decisions, while engineers test restartability, late-arriving records, duplicate events, and access restrictions.

Outcome and learning points

The case demonstrates that the central design decisions were not dashboard layout or platform selection. They were the business-process boundary, grain, KPI rule, identity resolution, time interpretation, history, and acceptance evidence. It also shows why requirements engineering is iterative: profiling changed the design, and user validation refined the required dimensions and exception workflow.

8. Governance, Ethics, and Regulatory Responsibilities

Warehouse programs aggregate data and can make organizational behavior more measurable. This creates responsibilities beyond technical correctness. Data minimization asks whether each attribute is necessary. Purpose limitation asks whether data collected for one purpose is being reused appropriately. Retention policies should reflect legal, contractual, and operational needs rather than indefinite accumulation.

Access should be based on role and legitimate need. Sensitive attributes may require masking, tokenization, aggregation, or exclusion. Audit logs should record access to high-risk data. Data subjects may have rights concerning access, correction, deletion, or explanation, depending on applicable law. Requirements must involve legal, privacy, security, and records-management specialists where relevant.

Analytics can reproduce historical discrimination if dimensions such as geography or demographic proxies are used without scrutiny. A KPI may be mathematically correct but ethically inappropriate if it rewards harmful behavior or penalizes groups for conditions outside their control. Governance should therefore consider fairness, explainability, contestability, and human oversight.

AI and machine learning may assist profiling, anomaly detection, metadata classification, semantic search, and demand forecasting. However, generated mappings or definitions must be reviewed by accountable experts. AI systems can infer sensitive information, propagate source bias, or produce plausible but unsupported explanations. AI use in warehouse delivery should be governed by provenance, validation, access control, model monitoring, and clear responsibility.

9. Challenges, Trade-offs, and Best Practices

Common challenges include ambiguous KPI definitions, competing versions of truth, changing source schemas, late-arriving facts, poor historical data, unrealistic freshness expectations, uncontrolled self-service extracts, and underfunded operations. There is no universal architecture that removes these trade-offs.

Best practices include:

  • Start with decisions and business processes, not available tables.
  • Declare and review grain before designing facts.
  • Maintain a business glossary and KPI register.
  • Use conformed dimensions where cross-process analysis is required.
  • Separate raw preservation, transformation, and presentation responsibilities.
  • Automate data-quality, schema, reconciliation, and security tests.
  • Deliver vertical slices while protecting enterprise standards.
  • Treat metadata, lineage, and ownership as deliverables.
  • Measure operational service, adoption, accuracy, and business outcomes.
  • Design for change: source evolution, regulatory change, new questions, and retirement.
  • Make exceptions visible and assign them owners.

A mature warehouse program is measured not only by terabytes stored or pipelines deployed, but by whether decisions improve, definitions remain trusted, controls operate, and the cost of information is justified by its value.

Chapter Summary

Requirements engineering connects business strategy to implementable and testable warehouse capabilities. The essential chain is strategic objective, decision, analytical question, KPI, dimensional context, source evidence, and acceptance test. Dimensional requirements must declare the business process, grain, facts, dimensions, time, history, and exception behavior. KPI specifications require precise populations, formulas, units, owners, exclusions, and reconciliation rules.

Source profiling, metadata, lineage, security, freshness, availability, performance, and recoverability are integral requirements rather than later technical additions. Architecture and lifecycle choices should reflect business value, integration needs, governance, feasibility, and delivery risk. Iterative vertical slices can provide early value when supported by enterprise standards and conformed dimensions. Acceptance criteria must be observable, measurable, and supported by evidence.

Finally, warehouses operate within ethical, legal, and organizational contexts. Privacy, fairness, access control, retention, explainability, and accountable AI use must be considered throughout the lifecycle. The most successful warehouse programs treat data as a governed product that continuously supports decisions rather than as a static repository.

Key Terms

Requirements engineering: The disciplined process of eliciting, analyzing, specifying, validating, and managing requirements.

Business process: An organizational activity or event measured by the warehouse.

Grain: The precise meaning represented by one fact-table row.

Fact: A measurable observation associated with a declared grain.

Dimension: A descriptive perspective used to analyze facts.

Conformed dimension: A shared dimension with consistent meaning across fact tables or marts.

Measure: A numeric or otherwise measurable value used in analysis.

KPI: A defined indicator used to evaluate performance against an objective.

Additive measure: A measure that can be summed across relevant dimensions, including time where appropriate.

Semi-additive measure: A measure that can be summed across some dimensions but not others.

Data freshness: The age of data when it becomes available to users.

Data lineage: Traceability from a reported result through transformations to source data.

Metadata: Data describing structures, meanings, ownership, quality, and processing.

Data quality: The degree to which data is fit for an intended use.

Vertical slice: An increment spanning source ingestion, processing, semantic presentation, and user validation.

Acceptance criteria: Testable conditions that a delivered capability must satisfy.

Recovery point objective: The maximum acceptable amount of data loss measured in time.

Recovery time objective: The target time to restore a service after disruption.

Data steward: An accountable person or role responsible for data meaning, quality, and use.

Semantic model: A governed analytical representation exposing business concepts and relationships to users.

Review Questions

Short Answer Questions

1. Why must grain be declared before selecting facts?

2. Distinguish a strategic requirement from a solution decision.

3. What is the difference between data freshness and pipeline latency?

4. Define a conformed dimension and explain its purpose.

5. Why are ratios generally not additive?

Long Answer Questions

1. Explain how a strategic objective can be translated into dimensional requirements using the decision chain.

2. Compare top-down, bottom-up, and iterative warehouse lifecycle approaches, including their risks and appropriate contexts.

3. Discuss the role of source profiling, metadata, and lineage in requirements validation.

4. Design a complete KPI specification for a business performance measure of your choice.

5. Explain how privacy, security, fairness, and regulatory obligations should influence warehouse design.

Analytical / Application Questions

1. A company wants a single fact table containing order lines, shipments, and payment events. Analyze the grain risks and propose a dimensional design.

2. Regional on-time delivery rates are 80% for 50 deliveries, 90% for 200 deliveries, and 95% for 750 deliveries. Calculate the enterprise on-time rate using the correct aggregation method and explain why an unweighted average is inappropriate.

3. A warehouse is required to provide data by 08:00, but the source system is not available until 07:30 and extraction takes 45 minutes. Analyze whether the requirement is feasible and propose alternatives.

Multiple Choice Questions with Answers

Question 1

What should be declared before selecting facts in a dimensional model?

A. Dashboard color scheme

B. Fact-table grain

C. Cloud provider

D. Number of report pages

Correct Answer: B. Fact-table grain

Question 2

Which measure is usually non-additive?

A. Units sold

B. Revenue

C. Delivery percentage

D. Freight cost

Correct Answer: C. Delivery percentage

Question 3

What is the main purpose of a conformed dimension?

A. To encrypt source data

B. To provide consistent analysis across processes

C. To replace all fact tables

D. To eliminate data profiling

Correct Answer: B. To provide consistent analysis across processes

Question 4

Which item is a non-functional warehouse requirement?

A. Customer dimension

B. Product category

C. Data freshness target

D. Order-line grain

Correct Answer: C. Data freshness target

Question 5

What does data lineage primarily provide?

A. A record of source-to-result traceability

B. Automatic business strategy

C. A replacement for access control

D. A guarantee of complete data

Correct Answer: A. A record of source-to-result traceability

Question 6

In the illustrative retail case, why was an unknown dimension member useful?

A. It silently removed invalid records

B. It represented unresolved identities while preserving visibility

C. It converted facts into dimensions

D. It increased source-system availability

Correct Answer: B. It represented unresolved identities while preserving visibility

Question 7

Which acceptance criterion is most testable?

A. The dashboard should look modern

B. Users should like the warehouse

C. The KPI must reconcile to an approved control total within a stated tolerance

D. The system should use advanced technology

Correct Answer: C. The KPI must reconcile to an approved control total within a stated tolerance

Question 8

If 90 of 100 qualifying deliveries are on time, what is the on-time delivery rate?

A. 0.09

B. 0.90

C. 1.11

D. 90.10

Correct Answer: B. 0.90

Question 9

Which lifecycle approach delivers a complete capability from ingestion through presentation in increments?

A. Vertical-slice iterative delivery

B. Uncontrolled report duplication

C. Source-only archiving

D. Spreadsheet consolidation

Correct Answer: A. Vertical-slice iterative delivery

Question 10

Why should AI-generated warehouse mappings be reviewed by accountable experts?

A. AI cannot store metadata

B. Generated mappings may be plausible but incorrect or biased

C. Review eliminates the need for testing

D. AI always changes the declared grain

Correct Answer: B. Generated mappings may be plausible but incorrect or biased

Data Warehousing
Chapter 3 of 15