Data: From Business Records To Model Inputs · Lesson 4

Databases, Warehouses And Data Lakes Explained

Choose a storage and processing design from the workload. A system that records a current order serves a different purpose from a system that analyzes years of orders across sources. Copies and additional layers can help, but they add freshness, lineage, access and operating responsibilities.

Study And Save Progress

Watch The Lesson

4 min 45 sec

Read the video transcript

When a customer places an order, the business needs to record it reliably and quickly. When an analyst studies how returns changed across a year, the same live system may not be the best place to scan every historical event. Those are different workloads, even when they use related information. An operational database supports current activity: creating an order, changing its status, recording a payment.

An analytical warehouse organizes information for analysis and reporting across time and sources. One is designed around live operations; the other supports questions across many records. They can exchange data, but a copy introduces update delay and responsibility for keeping the copy correct. Consider a payment. The system may need to record the payment

and update the associated balance as 1 defined transaction. If the operation stops after 1 change, the account could show an impossible state. A transaction groups related changes under the system’s configured guarantees. The details depend on the database and its settings; do not assume every system offers identical behavior. Now widen the view. The company also has policy versions,

delivery images, event logs, and analytics records. A data lake can store many formats, often as objects in cloud storage. That flexibility helps retain varied material, but it does not automatically supply organization, meaning, quality, access controls, or reliable updates. A large pile of files is not yet useful evidence. Object storage names objects with keys and metadata.

In 1 common implementation, a key identifies an object within a bucket. A prefix that looks like a folder may help organize those keys, but the storage service is still addressing objects, not behaving exactly like a local filing cabinet. This is 1 implementation example, not a universal rule for every object store.

A lakehouse is an architectural approach that combines lake-oriented storage with selected table management, analytics, and governance capabilities. The label does not guarantee a fixed feature set. Check how transactions, schema changes, catalogs, permissions, query engines, and supported formats work in the actual implementation. For the orders assistant, the live database can supply an authorized current order lookup.

A warehouse can support historical return analysis. A document index can make the applicable policy available at request time. A lake may hold varied source material that needs additional organization. These roles can connect, but they are not interchangeable, and the company may not need every category. GitLab's February 10, 2017 postmortem

describes an accidental removal from its primary database on January 31. Some recent database changes were lost, while code repositories were unaffected by that data loss. Different stores held different kinds of information, with different recovery paths. An analytical copy is not automatically a tested operational backup. For our assistant, specify both the workload a

copy serves and how the authoritative service recovers. Here is the checkpoint. Why might an analyst copy operational data into an analytical system? Pause and decide. The copy can support historical and cross-source analysis without reshaping or overloading the live transaction workload. But the copy must have a freshness rule,

lineage, access controls, and a correction path. Choose for a concrete small-store workload. Suppose staff need current order status during each customer call, a daily summary by the next morning, and versioned policy evidence for return questions. The team can operate 1 managed database and a controlled document store. Keep current order lookups in that database,

and schedule the daily summary off-peak while monitoring its effect on calls. Use the policy store and a tested retrieval path for applicable text. That accepts a daily delay for the summary while preserving a current lookup for the caller. If history scans begin delaying those calls, move reporting to a separate analytical

copy and set a measured refresh limit. A lake is justified if varied raw files need managed retention; a lakehouse needs a specific table-management or analytical requirement. Every added path brings access, correction and operating work. Next we will follow information as it moves into the system, and compare batch processing with streaming.

Main Point

Choose a storage and processing design from the workload. A system that records a current order serves a different purpose from a system that analyzes years of orders across sources. Copies and additional layers can help, but they add freshness, lineage, access and operating responsibilities.

Key Points

1. Match storage responsibilities to the workload

An operational database supports live application activity such as creating orders, changing status, and recording payments. An analytical warehouse organizes information for reporting across records and sources. These are common workload distinctions; actual implementations vary.

Transactions group related changes under a system’s configured guarantees. In a payment example, recording a payment and updating an associated balance should not be left half-complete after an interruption. PostgreSQL 18 documents a transaction example using begin, commit and rollback. That example illustrates one database’s behavior; verify the guarantees of the system you use.

A data lake can store many formats, often as objects in cloud storage. Flexibility does not guarantee discoverability, business meaning, validation, access control or reliable updates. Object storage also differs from a local filesystem. In Amazon S3, an object key identifies an object within a bucket; prefixes may look like folders in tools while storage still addresses objects by keys.

A lakehouse is a design approach that combines lake-oriented storage with selected table-management, analytics and governance capabilities. Product implementations differ. Before relying on the label, inspect transaction behavior, schema management, catalog, query engine, permissions and supported formats. Databricks documentation is one vendor’s example, not a universal specification.

For the orders assistant, use an authorized operational lookup for current order facts, an analytical store for historical trends, and a versioned policy retrieval path for a return question. Keep freshness and correction paths visible. Do not create every platform category unless it solves a real need.

2. Check

What workload does each store support? What is the authoritative source? How quickly must a copy refresh? Who owns corrections and permissions? What features are actually available in the selected implementation?

3. A worked architecture choice

Choose for a concrete small-store workload. Suppose staff need current order status during each customer call, a daily summary by the next morning, and versioned policy evidence for return questions. The team can operate one managed database and a controlled document store. Keep current order lookups in that database, and schedule the daily summary off-peak while monitoring its effect on calls. Use the policy store and a tested retrieval path for applicable text. That accepts a daily delay for the summary while preserving a current lookup for the caller. If history scans begin delaying those calls, move reporting to a separate analytical copy and set a measured refresh limit. A lake is justified if varied raw files need managed retention; a lakehouse needs a specific table-management or analytical requirement. Every added path brings access, correction and operating work.

4. A dated example

GitLab's February 10, 2017 postmortem describes an accidental removal from its primary database on January 31. Some recent database changes were lost, while code repositories were unaffected by that data loss. Different stores held different kinds of information, with different recovery paths. An analytical copy is not automatically a tested operational backup. For our assistant, specify both the workload a copy serves and how the authoritative service recovers.

5. Bringing the lesson together

The small store can now justify a current lookup and policy store, while deferring a separate warehouse until the reporting workload warrants it. The decision rests on delay, consistency, recovery and operating capacity. Revisit the architecture when one of those requirements changes.

Learning Checks

Attempt each answer before expanding the reasoning.

M13-L04-Q01

Why might the analyst copy operational data into an analytical system, and what responsibility does the copy introduce?

Show reasoning

To support historical and cross-source analysis without changing the live workload; the copy needs freshness, lineage, access and correction controls.

M13-L04-Q02

Which source/service roles fit a current order lookup, historical return analysis, and a dated policy question?

Show reasoning

Authorized operational lookup; analytical store; date-qualified policy retrieval.

M13-L04-Q03

What should a team verify when a product is called a lakehouse?

Show reasoning

Actual transactions, schema management, catalog, query, permissions, formats and updates.

M13-L04-Q04

Name needs that should influence architecture and an unnecessary layer to avoid.

Show reasoning

See workload trade-offs: update frequency, queries, latency, formats, consistency, governance, cost, team capability. Avoid layers without a use case.

Sources

Learner Materials

Download Lesson 4 Learner Materials

Use the supplied fictional cases and templates for practice.

Practice

Write your answer, compare it with the model answer and decide what to revisit. These written checkpoints are self-assessed.

Why might the analyst copy operational data into an analytical system, and what responsibility does the copy introduce?

Show The Model Answer

To support historical and cross-source analysis without changing the live workload; the copy needs freshness, lineage, access and correction controls.

Compare your reasoning with the model answer. These written checks are self-assessed.

Which source/service roles fit a current order lookup, historical return analysis, and a dated policy question?

Show The Model Answer

Authorized operational lookup; analytical store; date-qualified policy retrieval.

Compare your reasoning with the model answer. These written checks are self-assessed.

What should a team verify when a product is called a lakehouse?

Show The Model Answer

Actual transactions, schema management, catalog, query, permissions, formats and updates.

Compare your reasoning with the model answer. These written checks are self-assessed.

Name needs that should influence architecture and an unnecessary layer to avoid.

Show The Model Answer

See workload trade-offs: update frequency, queries, latency, formats, consistency, governance, cost, team capability. Avoid layers without a use case.

Compare your reasoning with the model answer. These written checks are self-assessed.

Open Practice And Save Your Work