Interview's MateData Engineer
Interview's Mate

Data Engineer

SQL · Spark · Lakehouse · Streaming

Visualizer

DSA Visualizer
All 32 lessons
Custom Playground
Try your own examples

Learning

System Design
31 architecture topics
SQL Learning
160 foundations → production topics
AI Engineering
160 LLM → backend topics
Data Science
160 Python → MLOps topics
Data Engineer
160 SQL → streaming topics
Docker
160 Docker learning topics
Kubernetes
160 K8s fundamentals → cloud
Java LearnSoon
Coming soon
Python Learn
Interview Q&A & internals
JavaScript Learn
Closures, async & DOM Q&A
Tech Learn
Search, practise & track Q&A
AI DSA Practice
Solve coding problems
Theme
Home
Data Engineer topics
Lesson 82/ 160
05. Data Lakehouses & Open Table Formats

Cloud Object Storage Fundamentals (AWS S3, GCS, Azure Blob Storage)

Store lake data on S3/GCS/Blob with durability, prefixes, and IAM as the foundation of the lakehouse.

BeginnerS3 · GCS · Blob3 quiz questions
Practice Generative AI Q&A
In plain wordsDiagramTheoryStep by stepWhen to use itInterview cluesMistakes to avoidQuiz (3)Practice

In plain words

Scoped workload role and key policy. Next, multipart, checksum, target file size. Finally, versions, retention, encryption, and audit.

Think of it like…

Object storage is a nearly limitless safety-deposit warehouse with keys, labels, and receipts; a catalog or manifest is still required to know which boxes form one table.

Where you’ve seen it

A Spark writer publishes s3://lake/orders/dt=2026-11-21/part-*.parquet under an IAM role, with bucket versioning, KMS key grants, and an Iceberg commit that atomically references the committed data files.

Words you’ll hear

S3
AWS object storage with strong consistency semantics, versioning, lifecycle tiers, IAM policies, and S3 API behavior.
GCS
Google Cloud object storage with bucket IAM, retention, object versions, and GCS features integrated with BigQuery/Dataproc.
Blob
Azure's scalable unstructured object service integrated with Microsoft Entra, storage RBAC, and hierarchical namespace options.
Operational boundary
Eventually consistent design assumptions, broad anonymous/bucket grants, poorly chosen millions of tiny objects, and cross-prefix list operations can cause data-loss risk and high request latency/cost. Use least-privilege workload identities, server-side encryption and versioning where required, block public access, target 128 MB–1 GB files, and keep authoritative table metadata instead of discovering state by recursive listing.

Visual diagram

Loading interactive diagram

Theory & deep dive

S3: the working mechanism

S3, GCS, and Blob provide durable namespace-like object access over REST, with immutable object/version semantics, prefixes, lifecycle rules, IAM, encryption, and listings that do not form a database by themselves.

Scoped workload role and key policy. Multipart, checksum, target file size, then prefixes plus independent table metadata; this exposes the state governed by Blob.

Cloud Object Storage Fundamentals in one concrete design

A Spark writer publishes s3://lake/orders/dt=2026-11-21/part-*.parquet under an IAM role, with bucket versioning, KMS key grants, and an Iceberg commit that atomically references the committed data files.

Key takeaway: S3, GCS, and Blob provide durable namespace-like object access over REST, with immutable object/version semantics, prefixes, lifecycle rules, IAM, encryption, and listings that do not form a database by themselves

Cloud Object Storage Fundamentals: failure mode and production response

Eventually consistent design assumptions, broad anonymous/bucket grants, poorly chosen millions of tiny objects, and cross-prefix list operations can cause data-loss risk and high request latency/cost.

Use least-privilege workload identities, server-side encryption and versioning where required, block public access, target 128 MB–1 GB files, and keep authoritative table metadata instead of discovering state by recursive listing. Track Object size as "128 MB–1 GB is a common analytical target", and make Request units visible to the dataset owner.

Key takeaway: Use least-privilege workload identities, server-side encryption and versioning where required, block public access, target 128 MB–1 GB files, and keep authoritative table metadata instead of discovering state by recursive listing.

How it works, step by step

Step 1 of 4
S3

1. Authenticate

Scoped workload role and key policy. S3, GCS, and Blob provide durable namespace-like object access over REST, with immutable object/version semantics, prefixes, lifecycle rules, IAM, encryption, and listings that do not form a database by themselves.

scoped workload role and key policy
Key numbers at this step
Object size
128 MB–1 GB is a common analytical target
GCS
Google Cloud object storage with bucket IAM, retention, object versions, and GCS features integrated with BigQuery/Dataproc.

When to use it & trade-offs

What it is

S3, GCS, and Blob provide durable namespace-like object access over REST, with immutable object/version semantics, prefixes, lifecycle rules, IAM, encryption, and listings that do not form a database by themselves. A Spark writer publishes s3://lake/orders/dt=2026-11-21/part-*.parquet under an IAM role, with bucket versioning, KMS key grants, and an Iceberg commit that atomically references the committed data files.

Why it matters: Eventually consistent design assumptions, broad anonymous/bucket grants, poorly chosen millions of tiny objects, and cross-prefix list operations can cause data-loss risk and high request latency/cost. Use least-privilege workload identities, server-side encryption and versioning where required, block public access, target 128 MB–1 GB files, and keep authoritative table metadata instead of discovering state by recursive listing.

When to reach for it

  • Store lake data on S3/GCS/Blob with durability, prefixes, and IAM as the foundation of the lakehouse.
  • Choose S3 because it provides this capability: AWS object storage with strong consistency semantics, versioning, lifecycle tiers, IAM policies, and S3 API behavior.
  • Keep evidence for Object size at "128 MB–1 GB is a common analytical target" so the last production stage-Lifecycle - versions, retention, encryption, and audit-remains testable.

When to avoid or be careful

  • Eventually consistent design assumptions, broad anonymous/bucket grants, poorly chosen millions of tiny objects, and cross-prefix list operations can cause data-loss risk and high request latency/cost.
  • Do not conflate GCS with S3. The second concept contributes different behavior: Google Cloud object storage with bucket IAM, retention, object versions, and GCS features integrated with BigQuery/Dataproc.
  • Release only after this guardrail is in place: Use least-privilege workload identities, server-side encryption and versioning where required, block public access, target 128 MB–1 GB files, and keep authoritative table metadata instead of discovering state by recursive listing.

S3 / GCS / Blob - roles, limits, and operating cost

S3
Best for: AWS object storage with strong consistency semantics, versioning, lifecycle tiers, IAM policies, and S3 API behavior.

Strengths: AWS object storage with strong consistency semantics, versioning, lifecycle tiers, IAM policies, and S3 API behavior. S3, GCS, and Blob provide durable namespace-like object access over REST, with immutable object/version semantics, prefixes, lifecycle rules, IAM, encryption, and listings that do not form a database by themselves.

Watch out: Eventually consistent design assumptions, broad anonymous/bucket grants, poorly chosen millions of tiny objects, and cross-prefix list operations can cause data-loss risk and high request latency/cost.

GCS
Best for: Google Cloud object storage with bucket IAM, retention, object versions, and GCS features integrated with BigQuery/Dataproc.

Strengths: Google Cloud object storage with bucket IAM, retention, object versions, and GCS features integrated with BigQuery/Dataproc. In this workflow it supports: Organize - prefixes plus independent table metadata.

Watch out: The operating cost is real: small-file reads/listing can dominate compute.

Blob
Best for: Azure's scalable unstructured object service integrated with Microsoft Entra, storage RBAC, and hierarchical namespace options.

Strengths: Azure's scalable unstructured object service integrated with Microsoft Entra, storage RBAC, and hierarchical namespace options. Its output can be checked with Key rotation.

Watch out: Operating guardrail: Use least-privilege workload identities, server-side encryption and versioning where required, block public access, target 128 MB–1 GB files, and keep authoritative table metadata instead of discovering state by recursive listing.

Interview signals & numbers to know

When this topic comes up

  • “Where is the failure boundary for S3, and how would Object size reveal it?”
  • “Why is GCS distinct from this behavior: azure's scalable unstructured object service integrated with Microsoft Entra, storage RBAC, and hierarchical namespace options?”
  • Production clue: Eventually consistent design assumptions, broad anonymous/bucket grants, poorly chosen millions of tiny objects, and cross-prefix list operations can cause data-loss risk and high request latency/cost.
  • Design probe: Use least-privilege workload identities, server-side encryption and versioning where required, block public access, target 128 MB–1 GB files, and keep authoritative table metadata instead of discovering state by recursive listing.

Benchmarks & rules of thumb

Object size -
128 MB–1 GB is a common analytical target
Request units -
small-file reads/listing can dominate compute
Key rotation -
KMS and application access are tested without rewriting objects unnecessarily

Common mistakes & follow-ups

Common interview mistakes

  • Eventually consistent design assumptions, broad anonymous/bucket grants, poorly chosen millions of tiny objects, and cross-prefix list operations can cause data-loss risk and high request latency/cost.
  • Reporting success from a job exit code without checking Object size and Request units.
  • Treating this example as complete without replay, rollback, or access boundaries: A Spark writer publishes s3://lake/orders/dt=2026-11-21/part-*.parquet under an IAM role, with bucket versioning, KMS key grants, and an Iceberg commit that atomically references the committed data files.

Likely interviewer follow-ups

  • How would you prove this contract instead of only checking that the command ran: AWS object storage with strong consistency semantics, versioning, lifecycle tiers, IAM policies, and S3 API behavior.
  • What does the recovery plan do when this occurs? Eventually consistent design assumptions, broad anonymous/bucket grants, poorly chosen millions of tiny objects, and cross-prefix list operations can cause data-loss risk and high request latency/cost.
  • When is S3 insufficient for Request units, and what does adding GCS cost in Object size?
Interview tip: Lead with the data path and failure boundary: S3, GCS, and Blob provide durable namespace-like object access over REST, with immutable object/version semantics, prefixes, lifecycle rules, IAM, encryption, and listings that do not form a database by themselves. Then make the answer operational: Use least-privilege workload identities, server-side encryption and versioning where required, block public access, target 128 MB–1 GB files, and keep authoritative table metadata instead of discovering state by recursive listing.

Knowledge check

Loading quiz

Put it into practice

Practice related interview Q&A

Apply Cloud Object Storage Fundamentals (AWS S3, GCS, Azure Blob Storage) with data engineer interview Q&A and hands-on practice.

Open Data Engineer Q&A →Machine Learning Q&A
Previous topic
Data Lake Architecture (Bronze, Silver, Gold Medallion Architecture)
Next topic
Object Storage Partitioning (Hive-Style Partitioning) & The Small Files Problem