This lesson does not add new material: it puts it in order. Over seven modules we have made eighteen decisions for DataCorp, and behind each one there was a criterion that is useful for any other organization. Those criteria are gathered here as actionable practices, each with its reason and the lesson where it was developed, alongside the typical mistakes that are worth knowing how to recognize in time.

We will also move the clock forward. The whole course has taken place at design time; now we will go to December 2027, when DataCorp closes its roadmap and holds a retrospective: what worked, what did not and what it would do differently. A plan is only truly evaluated against reality. The lesson ends with two tools to take away: the complete architecture decision log and a checklist for reviewing any data architecture.

Best practices, by area

A "best practice" is not a universal rule: it is what usually works, and it always has a reason. Knowing the reason lets you know when it does not apply.

Planning and design

Practice Why Lesson
Start from the business questions and translate them into use cases and requirements with figures Without measurable requirements, any architecture "will do" and none can be evaluated 01-04
Draw the current situation before the desired one The plan is the distance between the two 01-03, 07-01
Justify the investment with a business case The architecture competes for budget with other projects 01-02
Document every relevant decision in an ADR, with alternatives and review conditions A year from now nobody will remember why it was decided 01-04
Choose the simplest thing that meets the requirements Every component added has to be operated, paid for and explained 01-04, 06-01

Technology selection

Practice Why Lesson
Decide the type of solution first and the product afterward Products change; patterns remain 02-01, 06-04
Separate storage and compute Each one grows and is paid for at its own pace 01-04, 07-03
Use open formats and languages for the data and the logic That is where leaving is most expensive 02-06, 06-04
Prefer managed services if the team is small The largest cost item is people 02-03, 07-04
Validate with a proof of concept whose criteria are written in advance It avoids choosing by preference or by fashion 07-01

Implementation

Practice Why Lesson
Deliver in vertical slices, one use case at a time Early value and mistakes detected soon 07-01
Keep a raw, immutable copy It makes it possible to reprocess, audit and correct 01-04, 04-02
Make every process idempotent and parameterized by date Repeating a load must always be safe 03-05, 04-01
Treat everything as code: infrastructure, transformations, policies, metrics Review, history and repeatable deployments 03-01, 04-02, 07-01
Migrate with a parallel run and reconciliation, and put a date on the retirement Without reconciling there is no trust; without a date, the old system never dies 07-01

Maintenance and monitoring

Practice Why Lesson
Watch the data, not just the processes The typical failure is silent: everything green and the figure wrong 07-02
Define SLOs with an error budget It turns "it should work well" into something measurable and negotiable 07-02
Alert only on what demands an action, with its runbook Noise causes the important alert to be ignored 04-05, 07-02
Analyze incidents without looking for someone to blame What is punished gets hidden, and what is hidden gets repeated 07-02
Plan preventive maintenance and test the restores What is not on the calendar does not get done 07-02
Measure before optimizing People tend to optimize what was not the bottleneck 04-06, 07-03

Security and privacy

Practice Why Lesson
Design security in from the start Adding it later means redoing access, models and copies 01-04, 03-04
Individual identities, roles and least privilege Without identity there is no accountability and no auditing 03-04
Mask personal data by default Most analyses do not need to know who is who 03-04
Provide for erasure and retention in every layer, including copies and snapshots "Deleted" data that survives in another layer is a breach 03-04, 06-04

Warning. The security and privacy practices described in the course are for training purposes. Their application to a real case must be reviewed by a data protection professional or by the organization's compliance department.

Governance and quality

Practice Why Lesson
Assign every piece of data a business owner and a steward Without an owner, problems have nobody to go to 03-01
Start with minimal governance that can actually be carried out A manual that nobody applies governs nothing 03-01
Define each metric only once, in one place only It is the only way to avoid contradictory figures 05-03
Automate the quality rules inside the pipeline, with severities Quality checked by hand does not get checked 03-03, 04-02
Formalize in contracts what you expect from each source Unannounced changes are the leading cause of incidents 03-02, 07-02

People and organization

Practice Why Lesson
Get a visible sponsor in management The change of habits does not happen without one 07-01
Treat data as a product with users A correct table that nobody can find or understand is useless 06-06
Train by profile and measure adoption Success means that it is used, not that it is deployed 05-02, 07-01
Fit the organization to its real size Decentralized models require people you may not have 06-06
Spread the knowledge With small teams, every absence is a risk 07-01, 07-02

Common anti-patterns and how to recognize them

An anti-pattern is a solution that looks reasonable, is repeated in many organizations and produces bad results. Recognizing them early is more useful than memorizing best practices.

Anti-pattern How to recognize it What to do
Technology before requirements The first sentence of the project names a product Go back to the use cases and the requirements
Data swamp Everything is stored "just in case"; nobody knows what is there or whether it is reliable Catalog, owners and quality from the first dataset (lesson 06-02)
Résumé-driven architecture The tools chosen are the ones the team wants to learn, not the ones the problem calls for Write down the requirement that justifies each component
Big bang Twelve months of work without a delivery; "it's almost there" Vertical slices
Duplicate metrics Two dashboards give different figures for "sales" Semantic layer; certified metrics
Paper governance Policies and committees exist, but nothing checks them Policies as code; fewer rules, all of them verified
Real time without a need Continuous streaming for reports that are read once a day Ask which decision changes with the freshness (lesson 04-03)
Platform without users Impeccable infrastructure and the same old spreadsheets Start with one user and their problem; change management

They all share one root: losing sight of what the architecture is for. And DataCorp was not immune: it started out with duplicate metrics, and it had offers to fall into three others (the cluster "to be prepared" of lesson 06-01 was résumé-driven architecture with a vendor's signature on it).

DataCorp's twelve-month retrospective

December 2027. Marta gathers Íñigo, Laura and Sergio to review the year. A retrospective answers three questions and, like the postmortem, does not look for someone to blame.

Result versus plan

Milestone Planned Actual Comment
M0 Engine and environments Jan 29 Jan 29 ADR-017
M1 Reports off production Mar 31 Mar 31 Cron job switched off; a single net sales figure
Retirement of the old tools Apr 30 May 31 Marketing kept its own for one more month
M2 Three official dashboards Jun 30 Jun 30 campaign_code arrived two weeks late
M3 Five official dashboards Sep 30 Sep 30, with one caveat Stock with 30 minutes of freshness, not 15
UC-03 with 15-minute freshness Sep 30 Nov 8 The ERP API did not exist
M4 Forecast and maturity assessment Dec 17 Dec 17 Forecast by category only

The service objectives for the year, measured from April: timeliness of 96.9% (8 delays in 261 days), availability of 99.7%, p95 of 3.4 s and a quality index of 98.6%. There were 11 incidents, one of them SEV-1. Active users per month: 46.

What worked

  • The vertical slice of UC-01. After three months, management could see a single net sales figure and the store had stopped going down because of the reports. That result sustained the support for the project when the problems arrived.
  • The parallel reconciliation. It detected the time zone difference between the two systems before a user did. Carmen Ruiz signed off the retirement on data, not on faith.
  • The blocking quality rules. They stopped 14 publications. In none of them was wrong data ever shown.
  • The ADRs. When a vendor proposed a cluster again in June, the answer was to send them ADR-011 and its threshold.
  • The cost. €2,140 a month on average, 54% of the cap.

What did not work

  • The ERP stock API did not exist. ADR-007 noted it as "to be confirmed"... and nobody confirmed it until March. The ERP vendor asked for €4,500 and six months to develop it. As an interim solution, CSV exports were received every 30 minutes from July onward: UC-03 started out in breach of RQ-04, with the explicit acceptance of Tomás Herrero. The API arrived in October.
  • The resistance to giving up spreadsheets. Marketing kept using its own, with gross sales, until June. It was not stubbornness: its annual targets were set in gross terms. It was resolved by showing gross_sales next to net_sales in the official dashboard (both were already certified metrics) and when Nuria Vidal started opening her meetings with it.
  • Alert fatigue. In February, #data-alerts was receiving 140 messages a week and nobody read it anymore. After the alerts were redesigned, 12 were left.
  • A cost spike in July: €2,950. The limit of 20 GB per query had been raised "temporarily" for a historical load and was not restored; a test dashboard for the funnel queried the detail for three weeks.
  • The only SEV-1, in September. A redelivery by the messaging service duplicated events and the funnel was inflated for two days. Dani detected it, not the platform: the uniqueness rule on event_id was missing.
  • August with only one person. With Íñigo on vacation, a marketing incident took two days to resolve: the runbook existed, but it was incomplete.
  • UC-06 fell short. The forecast is useful by category; by product, the error is too high for making purchasing decisions.

What they would do differently

  1. Confirm external dependencies in phase 0, before committing to dates. "To be confirmed" must have an owner and a deadline.
  2. Start change management with whoever has the most to lose. Asking Marketing from the start why it used gross sales would have saved three months.
  3. Not put two cases with external dependencies in the same phase. Phase 3 was the most strained.
  4. Give every exception an automatic expiry: a raised limit must go back to its value on its own.
  5. Test the runbooks with the person who did not write them, before the vacation period.
  6. Apply to alerts the same review as to code, from day one.

None of these stumbles was a failure of the architecture. They were unverified assumptions, people's habits and operational discipline: what weighs most in the rollout and shows up least in the diagrams.

Evolution of the maturity and of the business case

DataCorp started out between levels 1 and 2 of the model in lesson 01-02 and set out to reach level 3 "on a solid footing".

Trait November 2026 December 2027
Common platform No: scripts and spreadsheets per department Yes: a single lakehouse; zero analytical queries on production
Agreed definitions Two contradictory "sales" figures 9 official metrics defined as code
Owners Nobody 5 domains with an owner and a steward; monthly committee
Quality Not measured 12 automatic rules; index of 98.6%
Security Shared credentials Individual identities, roles and masking
Operation Action was taken after each outage SLOs, on-call, postmortems, maintenance calendar

The assessment of December 17 concludes that level 3 has been reached. Still pending are 85 possible duplicate customers out of the initial 600, the lineage does not yet have an exploration tool and the demand forecast is in its infancy. Level 4 is not the goal for 2028: consolidating level 3 is.

As for the business case, it can now be calculated with real data instead of assumptions:

# Annual savings foreseen in lesson 01-02 and the part actually achieved in 2027:
# (foreseen amount, degree of achievement, months of the year in which it was active)
savings = {
    "Reconciliation hours": (44160, 0.75, 9),    # from 6 h to 1.5 h a week, since April
    "Store outages":        (18000, 1.00, 10),   # 5 of 6 outages avoided
    "Duplicate tools":      (15000, 1.00, 7),    # retired at the end of May
    "Stockouts":            (45000, 0.60, 3),    # useful alerts since October
}
INVESTMENT, MONTHLY_COST = 64500.0, 2140.0       # 4,500 EUR extra for the ERP API

year_1       = sum(amount * achieved * months / 12 for amount, achieved, months in savings.values())
steady_state = sum(amount * achieved for amount, achieved, _ in savings.values())   # annual pace once stabilized

balance = -INVESTMENT + year_1 - MONTHLY_COST * 12   # situation at the close of 2027
monthly_net = steady_state / 12 - MONTHLY_COST
month = 12
while balance < 0:                                   # additional months until payback
    month += 1
    balance += monthly_net

print(f"Savings achieved in 2027:    {year_1:>9,.0f} EUR")
print(f"Platform cost in 2027:       {MONTHLY_COST * 12:>9,.0f} EUR")
print(f"Steady-state annual savings: {steady_state:>9,.0f} EUR")
print(f"Payback of the investment: month {month}")
Savings achieved in 2027:       55,340 EUR
Platform cost in 2027:          25,680 EUR
Steady-state annual savings:    93,120 EUR
Payback of the investment: month 19

Each saving is weighted by its degree of achievement and by the months in which it was active. The result: payback in month 19 (July 2028), compared with the 9.7 of the original business case and the 14 of the phased plan of lesson 07-04. Curiously, it matches the cautious scenario of the exercise in lesson 01-02 (savings at 70%: 19.2 months). Three takeaways: savings arrive in phases and rarely in full; the pessimistic scenario of a business case is usually the realistic one, and even so the project is profitable, with €93,120 of annual savings against €25,680 of cost and without counting the benefits that were never quantified, such as the reduction in regulatory risk.

The memory of the architecture: the ADR log

The eighteen ADRs, read in order, tell the complete story of the architecture. They are its memory: whoever joins the team two years from now will be able to understand not only what is there, but why.

ADR Decision Lesson
001 Separate the analytical workload from the transactional database; extract from a read replica 01-04
002 Keep a raw, immutable copy of everything ingested 01-04, 02-03
003 Public cloud, one provider, one EU region, object storage, preference for managed services 02-03
004 Raw in the original format; cleansed and consumption in Parquet with zstd, partitioned 02-06
005 Hybrid, minimal governance expressed as code 03-01
006 Role-based access with individual identities and masking by default 03-04
007 One integration pattern per source; CDC deferred, federation rejected 03-05
008 Master data by consolidation in the cleansed zone; attribution of orders to campaigns 03-06
009 ELT with versioned SQL (dbt) and tests as the implementation of the quality rules 04-02
010 Batch and micro-batches; continuous streaming deferred 04-03
011 SQL on the engine with dbt, Python and DuckDB; no Spark or Hadoop below 50 GB a day 04-04
012 Orchestration with Apache Airflow as a managed service 04-05
013 A single corporate BI tool with live queries against the consumption zone 05-02
014 Metrics as code, materialized in certified tables 05-03
015 Lakehouse with Apache Iceberg tables and a managed serverless SQL engine 06-04
016 Centralized platform with data product practices; neither mesh nor fabric 06-06
017 Analytical engine: the provider's serverless SQL service, after the proof of concept 07-01
018 Cost policy: budgets, tagging, per-query limits and monthly review 07-04

A healthy log has three traits: it is consecutive (nothing is deleted; an obsolete ADR is marked as superseded by another), each decision states when to review it (lesson 07-03) and it is short: eighteen decisions in a year, not a hundred and eighty. Only what is costly to reverse is recorded.

Checklist for reviewing a data architecture

These 36 questions can be used to review your own architecture or someone else's. A "yes" is not needed for all of them, but every "no" must be a conscious decision and not an oversight.

Business and requirements

  1. Are the use cases written down, with their priority and the decision they support?
  2. Are there non-functional requirements with figures (volume, freshness, speed, availability, retention)?
  3. Is there a business case with estimated costs and benefits?
  4. Is there a diagram of the current situation and another of the target architecture?
  5. Are the key decisions documented, with alternatives and review conditions?

Sources and ingestion

  1. Is every source inventoried with its format, volume and owner?
  2. Does every source have an ingestion pattern justified by the freshness required?
  3. Is loading the operational systems with analytical queries avoided?
  4. Are the loads idempotent, and incremental where appropriate?
  5. Are there data contracts with the critical sources?

Storage and modeling

  1. Is each type of storage justified by a requirement?
  2. Are there distinct zones, with a recoverable raw copy?
  3. Are the data formats open, and is their partitioning appropriate?
  4. Is the consumption model designed for those who query it (grain and shared dimensions)?
  5. Are retention and the lifecycle defined and automated?

Processing

  1. Is the transformation logic versioned, tested and readable by those who are accountable for it?
  2. Is there an orchestrator with dependencies, retries and the ability to rerun periods?
  3. Is the choice between batch, micro-batches and continuous streaming justified by a real need?
  4. Is the processing tool proportionate to the volume?

Governance, quality and metadata

  1. Does every dataset have an owner and a classification?
  2. Is there a glossary, and is each metric defined in one place only?
  3. Are there automatic quality rules, with severities and quarantine?
  4. Can you tell where a piece of data comes from and what it affects (lineage)?
  5. Can users find and understand the data without asking the team?

Security and privacy

  1. Is access through individual identities and least-privilege roles?
  2. Is personal data identified and protected (masking, encryption)?
  3. Is there an erasure procedure that reaches every layer and copy?
  4. Are there backups, with an RPO and an RTO that are defined and tested?

Consumption

  1. Does every user profile have a suitable, governed tool?
  2. Does every official dashboard have an owner and state when its data was last updated?
  3. Is the actual usage of tables and dashboards measured?

Operation, costs and evolution

  1. Are there service objectives, actionable alerts and an incident process?
  2. Can the team that actually exists operate it?
  3. Is there a cost model, budgets with alerts and limits on variable spend?
  4. Is it known which dimension of growth would break it first, and at what threshold?
  5. Is there a phased rollout plan, with value delivered from the first phase?

Continuous learning

The tools in this course will change; some will already have done so by the time you read it. To keep up to date without chasing every novelty:

  • Tell principles apart from products. The separation of storage and compute, idempotency or dimensional modeling are decades old; products, months. When faced with something new, ask which principle it applies and which problem it solves.
  • Read the primary sources: the official documentation of the open projects you use, their release notes and the original technical papers behind the important ideas, rather than the summaries.
  • Learn from other people's failures. The postmortems and retrospectives published by engineering teams teach more than the success stories.
  • Practice on a small scale. A laptop with public data, DuckDB, dbt and an orchestrator reproduces almost everything seen here.
  • Take part in a professional community, local or online, and compare what you do with people who have a different context.
  • Go back to your own decisions. Rereading an ADR a year later is the best learning exercise there is.
  • Be wary of fashions. If a technology "changes everything", look for the requirement of yours that you cannot meet today without it.

Common Mistakes and Tips

  • Applying best practices as dogma. They all depend on context: a mesh is a best practice with 200 engineers and a mistake with 2.
  • Copying the architecture of a company you admire. Its requirements, its scale and its team are not yours. Copy the reasoning, not the result.
  • Holding a retrospective only when something goes wrong. What worked also has to be understood, so that it can be repeated.
  • Turning the checklist into a formality. Ticking 36 boxes without evidence reviews nothing. Ask for the proof behind every "yes".
  • Considering an architecture finished. It is a hypothesis that is revised with every new piece of data.
  • Tip: when in doubt between two options, choose the one that is easier to undo and write down what would make you change.

Exercises

Exercise 1: Recognizing anti-patterns

Identify the anti-patterns present in this case and propose a first action: "A chain of clinics contracts a streaming platform and a distributed cluster because 'that's what the big players use'. After ten months of project, without a single delivery, they have dumped every table from their twelve systems into the lake. There is an 80-page data policy document. The managers still ask for the report in a spreadsheet every Monday, and billing and the medical directorate disagree about the number of visits in the month."

Exercise 2: Applying the checklist

A company describes its architecture like this: "Every night we copy all the ERP tables to an analytical store in the cloud. The analysts write their queries in the BI tool, where each one defines their own metrics. We use a shared read-only user. It works well and it's cheap; we haven't had to document anything". Point out at least six questions from the checklist whose answer is "no" and order them by urgency.

Solutions

Exercise 1

Anti-pattern Evidence
Technology before requirements It starts from products, not from use cases
Résumé-driven architecture "What the big players use"
Real time without a need Streaming for weekly reports
Big bang Ten months without deliveries
Data swamp Twelve systems dumped with no catalog and no owners
Paper governance 80 pages that nothing checks
Platform without users The Monday report is still in a spreadsheet
Duplicate metrics Two figures for "visits"

First action: stop the build and choose one use case with a real user; the natural candidate is the number of visits, agreeing its definition between billing and the medical directorate and delivering it end to end in a few weeks. It is the same move as DataCorp's UC-01. Common mistake: responding with more technology (a catalog, a semantic layer) to a problem that is one of approach.

Exercise 2

Questions answered "no", by urgency:

  1. 25 and 26 (individual identities; personal data protected): a shared user over all the ERP tables is an immediate security and compliance risk.
  2. 21 (metric in one place only): each analyst defines their own; the contradictory figures will arrive, if they have not already.
  3. 20 (owner and classification) and 5 (documented decisions): nobody is accountable for anything or knows why things are the way they are.
  4. 22 (automatic quality) and 32 (service objectives and alerts): "it works well" is not measured.
  5. 9 and 12 (incremental loads; raw copy): copying everything every night will stop fitting in the window and keeps no history.
  6. 1 (written use cases): "everything" is copied without knowing what for.

Key point: "it works and it's cheap" describes the present. The checklist asks about what will happen when something changes.

Conclusion

The best practices of a data architecture fit into a few ideas: start from the business and from measurable requirements; choose the simplest thing that meets them and leave in writing why; protect with open formats what is expensive to move; deliver by use case; treat everything as code; watch the data and not just the processes; give every piece of data an owner and every metric a single definition, and remember that people weigh more than tools. Anti-patterns are, almost always, the result of forgetting one of them. DataCorp's retrospective confirms it: its architecture withstood the year, and what failed were unverified assumptions, habits and operational discipline. It reached maturity level 3, it spends half of its budget and it will recover the investment in month 19, later than promised, but with a foundation that no longer depends on spreadsheets or on a cron job at two in the morning.

This lesson brings Module 7 to an end, and with it the story of DataCorp. We have accompanied Marta, Íñigo, Laura and Sergio from a diagnosis of contradictory figures to a platform in production that is operated, measured and paid for, with eighteen documented decisions that explain every piece. You have made that whole journey as an observer. In Module 8, the final project, the roles change: there will no longer be an architect to decide for you. It will be up to you to design, for a different organization, a complete data architecture, from the requirements to the presentation of results, and the checklist from this lesson will be your instrument for reviewing it. The first step, as always, is to define the problem: that is what the project definition deals with.

© Copyright 2026. All rights reserved