⚡0 XP🔥0

Cloud Basics for Data Analysts

Lesson 1 of 4 ⏱ 5 min read ✎ 2 exercises ❓ 5-question quiz ▶ Runs Python

Cloud computing explained for analysts - IaaS, PaaS and SaaS, regions, the modern data stack, data lakes vs warehouses vs lakehouses, ETL vs ELT, file formats like Parquet, partitioning, security and cost.

What is the cloud?#

Cloud computing means renting computing resources - storage, databases, servers, analytics tools - over the internet from a provider, paying for what you use, instead of buying and maintaining your own servers.

The three big providers: Amazon Web Services (AWS), Microsoft Azure, Google Cloud (GCP). Indian companies use all three; Azure is especially common where Microsoft 365 and Power BI are used.

हिंदी में समझें

Cloud = अपने office में server खरीदने की बजाय, internet पर किसी बड़ी कंपनी (Amazon, Microsoft, Google) के computers किराए पर लेना - जितना इस्तेमाल, उतना पैसा।

Data analyst के लिए इसका मतलब: कंपनी का data अब अक्सर cloud storage और cloud databases में रहता है, और आपको वहाँ से SQL या Power BI से data निकालना आना चाहिए।

Service models#

Model You manage Provider manages Example
IaaS - Infrastructure OS, software, data hardware, network a virtual machine (EC2, Azure VM)
PaaS - Platform your data and code servers, OS, patches Azure SQL Database, Amazon RDS
SaaS - Software just use it everything Power BI Service, Gmail, Salesforce
Serverless only the query/code everything, scales automatically Amazon Athena, Azure Functions

Analysts mostly use PaaS, SaaS and serverless services - no server administration.

Key cloud terms#

Term Meaning
Region a data-centre location (e.g. Mumbai: AWS ap-south-1, Azure Central India) - keep data near users and within compliance rules
Account / subscription the billing container
Bucket / container a top-level folder in object storage
IAM Identity and Access Management - who can do what
Pay-as-you-go billing by storage used, queries run, compute time

The modern data stack#

Sources                  Ingest (ETL/ELT)        Store                      Transform & model        Serve
──────────               ───────────────         ─────                      ─────────────────        ─────
POS / ERP / CRM   ──►    Glue, Data Factory, ──► Data lake (S3 / ADLS)  ──► SQL, Spark, dbt     ──► Power BI, QuickSight,
Apps, websites           Fabric pipelines,        raw → clean → curated     warehouse tables          Tableau, Excel,
Excel, APIs              Fivetran, Airbyte        Warehouse (Redshift,                                notebooks, ML
                                                  Synapse, BigQuery, Fabric)

Data lake vs data warehouse vs lakehouse#

Data lake Data warehouse Lakehouse
Stores raw files of any type structured, modelled tables files in open table formats with warehouse features
Schema applied when reading ("schema-on-read") defined before loading ("schema-on-write") both
Cost very cheap storage more expensive, very fast SQL cheap storage + fast SQL
Users engineers, data scientists analysts, BI everyone
Examples Amazon S3, Azure Data Lake Storage Redshift, Synapse dedicated pools, BigQuery, Snowflake Microsoft Fabric Lakehouse, Databricks, Athena + Iceberg

Medallion layers#

Lakes are commonly organised in layers:

  • Bronze / raw - data exactly as received (like sales_raw.csv)
  • Silver / clean - cleaned, deduplicated, typed (like sales.csv)
  • Gold / curated - business-ready aggregates and star schemas for BI

You already did this by hand in Excel, Power Query and pandas!

ETL vs ELT#

ETL ELT
Extract → Transform (separate tool) → Load Extract → Load raw → Transform inside the warehouse
older, on-premises style modern cloud style - warehouses are powerful and cheap
e.g. SSIS, Informatica e.g. load to S3/ADLS → SQL/dbt transforms

File formats#

Format Type Good for
CSV text, row-based simple exchange, small data
JSON text, nested APIs, events, logs
Parquet binary, columnar, compressed, typed analytics on big data - the standard in lakes
Delta / Iceberg Parquet + transaction log lakehouses (updates, time travel)
हिंदी में समझें

Parquet cloud analytics का सबसे ज़रूरी file format है। CSV में पूरी row पढ़नी पड़ती है, जबकि Parquet column-wise data रखता है - अगर आपकी query को सिर्फ 2 columns चाहिए, तो सिर्फ वही 2 columns पढ़े जाते हैं। ऊपर से यह compressed होता है - इसलिए query 10 गुना तक तेज़ और सस्ती हो सकती है।

▶ Try it YourselfPython
Ctrl + Enter to run

Partitioning#

Store files in folders by a common filter column (usually date):

s3://vindhya-mart/sales/year=2025/month=10/part-0001.parquet
s3://vindhya-mart/sales/year=2025/month=11/part-0001.parquet

A query with WHERE year = 2025 AND month = 10 reads only one folder - faster and cheaper.

Security basics for analysts#

  1. Least privilege - request read-only access to the data you need.
  2. Never make buckets/containers public for private data.
  3. No keys in code or Excel files - use roles, SSO and managed identities.
  4. Encryption at rest and in transit is standard - leave it on.
  5. Personal data (Aadhaar, phone numbers, health data) has legal protections (e.g. India's DPDP Act) - mask or avoid it in analytics.

Cost awareness#

Cloud bills come from storage, compute/queries and data transfer out. Habits that save money:

  • Filter by partitions and select only needed columns (no SELECT * on huge tables).
  • Use Parquet; delete temporary data.
  • Set budgets and alerts in the billing console.
  • Stop/pause compute (warehouses, VMs) when not in use.
  • Use free tiers and trial credits for learning - but check the current terms and set a budget alert first.

Summary#

  • The cloud rents storage, databases and analytics as services; analysts mostly use PaaS/SaaS/serverless.
  • Lakes store raw files cheaply; warehouses store modelled tables for fast SQL; lakehouses combine both.
  • ELT loads first then transforms in SQL; Parquet + partitioning make queries fast and cheap.
  • Practise least privilege, no public data, and cost controls.

Practice Exercises

Write your code, then press Check. Your program is tested automatically.

1

Partitioned file paths

Data lakes organise files into partition folders. Write partition_path(base, date_str) that turns ("s3://vindhya-mart/sales", "2025-10-21") into "s3://vindhya-mart/sales/year=2025/month=10/day=21/".

2

Data scanned and query cost

Query engines like Athena charge by data scanned. Write query_cost(gb_scanned, price_per_tb) that returns the cost rounded to 4 decimals (1 TB = 1024 GB). Then calculate saving_pct - how much cheaper a query is if Parquet scans 12 GB instead of CSV's 150 GB (as a percentage, rounded to 1 decimal).

Quick Quiz

Q1.

Which is a data warehouse service?

Q2.

A data lake mainly stores...

Q3.

Why is Parquet preferred over CSV for big analytics?

Q4.

In ELT, transformation happens...

Q5.

Which is the safest way to give an analyst access to cloud data?