Data Workloads and Roles

Confused about OLTP and OLAP? We explain them using a bank teller vs. headquarters analogy, walk through ACID properties with real-world examples like a bank transfer, and clarify exactly what a DBA, data engineer, and data analyst do every day.

The "Workloads and Roles" section of DP-900 is surprisingly straightforward once you understand the core ideas. This guide will give you an intuitive grasp of OLTP vs. OLAP using a banking analogy, explain the four ACID properties with real-world examples, and clarify exactly what each data professional role does.

 

OLTP vs OLAP: The Bank Analogy

OLTP and OLAP describe two different ways of using data. A bank is the perfect illustration.

OLTP (Online Transaction Processing) — The Bank Teller

Picture a bank teller at the counter. Customers come in one at a time, and the teller processes their requests: deposits, withdrawals, transfers. Each transaction must be handled quickly, accurately, and completely. If a customer transfers money, that transfer must either succeed entirely or fail entirely — there must never be a situation where money leaves one account but never arrives in the other.

This is OLTP. It handles the day-to-day operational transactions that keep a business running.

Key characteristics of OLTP: Purpose: process routine business transactions (orders, payments, bookings) Data state: current, up-to-date records Queries: simple and fast (look up one order, update one inventory item) Data changes: frequent INSERT, UPDATE, DELETE operations Concurrent users: thousands to millions accessing simultaneously Azure services: Azure SQL Database, Azure Cosmos DB

OLAP (Online Analytical Processing) — The Headquarters Analytics Team

Now picture the analytics team at bank headquarters. They are not processing individual transactions — they are analyzing years of historical data across hundreds of branches. They answer complex questions like "What was the average savings balance for customers aged 30-40 in urban areas last quarter?" or "Which loan products performed best during economic downturns?"

This is OLAP. It is not about speed for individual queries but about depth of analysis across large historical datasets. A query might take several minutes to run — that is perfectly acceptable.

Key characteristics of OLAP: Purpose: complex analytical queries, business intelligence, decision support Data state: historical, aggregated data spanning months or years Queries: complex, scan large volumes of data Data changes: infrequent (primarily read-only) Concurrent users: small number of analysts Azure services: Azure Synapse Analytics, Azure Analysis Services

OLTP vs OLAP Comparison

| Aspect | OLTP (Bank Teller) | OLAP (Analytics HQ) | |--------|-------------------|---------------------| | Purpose | Daily transaction processing | Complex analytical queries | | Data | Current, detailed records | Historical, aggregated data | | Query type | Simple and fast | Complex, large data scans | | Change frequency | Very frequent | Rare (mostly read-only) | | Example tasks | Order processing, payments | Sales reports, trend analysis | | Azure service | Azure SQL Database | Azure Synapse Analytics |

!OLTP versus OLAP

ACID Properties: Why Transactions Are Safe

In OLTP systems, ACID properties are the rules that guarantee transactions behave reliably. Let us walk through each one using a bank transfer as our example.

Scenario: Alice transfers $100 to Bob. This involves two steps: Step 1 — deduct $100 from Alice's account. Step 2 — add $100 to Bob's account.

Atomicity — All or Nothing

What if Step 1 succeeds (money leaves Alice's account) but the server crashes halfway through Step 2? Alice's money is gone, but Bob never received it. This must never happen.

Atomicity guarantees that all steps in a transaction either all succeed together, or if any step fails, everything is rolled back as if the transaction never happened. There is no in-between state.

Think of it like a light switch — it is either on or off. Never half-on.

Consistency — Rules Are Always Followed

Banks have rules. One rule: an account balance cannot go below zero (for standard accounts). Even if a transaction technically completes, if it would violate this rule, it is rejected.

Consistency guarantees that a transaction can only move the database from one valid state to another valid state. Business rules (constraints) are always enforced.

Isolation — Concurrent Transactions Do Not Interfere

Millions of people make bank transactions simultaneously. What if Alice and Bob both try to withdraw money from a shared account at the exact same moment? Could they both succeed even if the account only has enough for one?

Isolation ensures that concurrent transactions are executed as if they were happening one at a time. Each transaction cannot see the intermediate (unfinished) state of another. This prevents data corruption from simultaneous access.

Durability — Committed Transactions Survive Failures

Imagine Alice's transfer completes successfully and she receives a confirmation. Then the data center loses power. Is her money gone?

Durability guarantees that once a transaction is committed (confirmed as complete), its results are permanently stored even if the system crashes immediately afterward. This is typically achieved through transaction logs and redundant storage.

| ACID Property | One-Line Explanation | Transfer Example | |---------------|---------------------|-----------------| | Atomicity | All or nothing | Deduct + add both succeed, or both are cancelled | | Consistency | Rules always maintained | Balance cannot go negative | | Isolation | No interference between concurrent transactions | Simultaneous withdrawals handled safely | | Durability | Committed data survives failures | Transfer record persists through power outage |

 

Data Roles: DBA, Data Engineer, Data Analyst

In any data-driven organization, there are three key roles. Each has a distinct focus. Exam questions often describe a task and ask which role is responsible.

Database Administrator (DBA) — The Building Manager

A DBA is like the manager of a building. They do not design the building or decide how tenants use it — they make sure the building keeps running safely and efficiently.

What a DBA does: Install, configure, and upgrade database systems Create and test backup and recovery plans (so data can be restored after failures) Manage access permissions (who can see or modify which data) Monitor database performance and tune slow queries Apply security patches and updates

In one sentence: the DBA keeps the database healthy, secure, and available.

Data Engineer — The Highway Builder

A data engineer builds the roads that data travels on. When data needs to move from a source system (like an e-commerce platform) to a data warehouse for analysis, someone has to design and build that journey.

What a data engineer does: Design and build data pipelines (automated flows that move data from A to B) Develop ETL/ELT processes (Extract, Transform, Load) Build and maintain data lakes and data warehouses Ensure data quality and consistency throughout the pipeline Work with tools like Azure Data Factory, Apache Spark, and Azure Databricks

In one sentence: the data engineer builds and maintains the infrastructure that moves and prepares data.

Data Analyst — The Detective

A data analyst receives clean, prepared data and investigates it to find meaningful patterns and insights. They answer business questions: "Why did sales drop this month?" or "Which customer segment is most profitable?"

What a data analyst does: Query databases using SQL Analyze data using Excel, Python, or R Create visualizations and dashboards (Power BI, Tableau) Write business reports and present findings to stakeholders Identify trends, patterns, and anomalies

In one sentence: the data analyst turns data into business insights and communicates them clearly.

Role Comparison

| Role | Analogy | Main Tools | Responsibility | |------|---------|-----------|--------------| | DBA | Building manager | SQL Server, Azure SQL | DB operations, security, backup | | Data Engineer | Highway builder | Data Factory, Spark | Pipelines, ETL, infrastructure | | Data Analyst | Detective | Power BI, SQL, Excel | Analysis, visualization, reports |

 

Exam Key Points

"Fast transaction processing, current data" -- OLTP

"Complex analytical queries, historical data" -- OLAP

"Azure service for OLTP workloads" -- Azure SQL Database

"Azure service for OLAP workloads" -- Azure Synapse Analytics

"All steps succeed or all are rolled back" -- Atomicity (ACID)

"Data always satisfies business rules before and after transaction" -- Consistency (ACID)

"Concurrent transactions do not interfere with each other" -- Isolation (ACID)

"Committed transactions persist even after system failure" -- Durability (ACID)

"Database operations, backup, access control" -- DBA

Back to blog list