Bird
Raised Fist0
HLDsystem_design~20 mins

Block storage vs object storage vs file storage in HLD - Practice Questions

Choose your learning style10 modes available
Challenge - 5 Problems
🎖️
Storage Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Differences in data access methods
Which storage type accesses data as fixed-size chunks called blocks, allowing low-level control and fast performance?
AObject storage
BFile storage
CCloud storage
DBlock storage
Attempts:
2 left
💡 Hint
Think about storage used by databases and virtual machines.
❓ Architecture
intermediate
2:00remaining
Choosing storage for a photo sharing app
You are designing a photo sharing app where users upload images and metadata. Which storage type is best suited to store images with metadata and scale easily?
ABlock storage for raw image data
BObject storage with metadata support
CFile storage with hierarchical folders
DLocal disk storage on user devices
Attempts:
2 left
💡 Hint
Consider storage that handles large amounts of unstructured data with metadata.
❓ scaling
advanced
2:00remaining
Scaling file storage for many users
A company uses file storage for shared documents. As users grow, performance drops due to many concurrent file accesses. What is the main limitation causing this?
AFile storage uses a centralized metadata server causing bottlenecks
BBlock storage cannot handle many files
CObject storage lacks metadata support
DFile storage splits files into blocks causing overhead
Attempts:
2 left
💡 Hint
Think about how file systems manage file locations and access.
❓ tradeoff
advanced
2:00remaining
Tradeoffs between block and object storage
Which statement correctly describes a tradeoff between block storage and object storage?
ABlock storage is optimized for large files with metadata, object storage for small fixed-size blocks
BBlock storage offers metadata and global namespace, object storage offers low-level control
CBlock storage provides low-level fast access but lacks metadata, object storage supports metadata but has higher latency
DBlock storage is cheaper and slower, object storage is expensive and faster
Attempts:
2 left
💡 Hint
Consider access speed and metadata capabilities.
❓ estimation
expert
3:00remaining
Estimating capacity for mixed storage system
A system stores 10 million files averaging 5 MB each in file storage, 2 million objects averaging 20 MB each in object storage, and 500 TB in block storage. What is the total approximate storage capacity needed?
AAbout 1.5 PB
BAbout 2 PB
CAbout 1 PB
DAbout 500 TB
Attempts:
2 left
💡 Hint
Calculate total size by multiplying counts and average sizes, then sum.

Practice

(1/5)
1. Which storage type splits data into fixed-size blocks and provides fast, low-level access?
easy
A. Block storage
B. Object storage
C. File storage
D. Cloud storage

Solution

  1. Step 1: Understand block storage concept

    Block storage divides data into blocks and stores them separately for quick access.
  2. Step 2: Compare with other storage types

    Object storage stores data as objects with metadata, and file storage organizes data in files and folders.
  3. Final Answer:

    Block storage -> Option A
  4. Quick Check:

    Block storage = fast block-level access [OK]
Hint: Blocks mean fast raw data access, not files or objects [OK]
Common Mistakes:
  • Confusing object storage with block storage
  • Thinking file storage splits data into blocks
  • Assuming cloud storage is a type here
2. Which of the following correctly describes object storage?
easy
A. Stores data as blocks without metadata
B. Stores data as objects with metadata for easy retrieval
C. Organizes data in hierarchical files and folders
D. Splits data into fixed-size chunks for fast access

Solution

  1. Step 1: Recall object storage features

    Object storage saves data as objects, each with metadata describing the data.
  2. Step 2: Eliminate incorrect options

    Blocks without metadata describe block storage; hierarchical files describe file storage.
  3. Final Answer:

    Stores data as objects with metadata for easy retrieval -> Option B
  4. Quick Check:

    Object storage = objects + metadata [OK]
Hint: Objects always have metadata; blocks do not [OK]
Common Mistakes:
  • Mixing block storage with object storage
  • Thinking file storage uses metadata like objects
  • Confusing hierarchical files with object storage
3. A company needs to store large amounts of unstructured data like images and videos with metadata for easy search. Which storage type fits best?
medium
A. Object storage for metadata and scalability
B. Block storage for fast raw access
C. File storage for hierarchical organization
D. Local disk storage for simplicity

Solution

  1. Step 1: Analyze data type and requirements

    Unstructured data like images/videos benefit from metadata and scalability.
  2. Step 2: Match storage type to needs

    Object storage supports metadata and scales well for large unstructured data sets.
  3. Final Answer:

    Object storage for metadata and scalability -> Option A
  4. Quick Check:

    Unstructured + metadata = Object storage [OK]
Hint: Metadata + large unstructured data = object storage [OK]
Common Mistakes:
  • Choosing block storage for unstructured data
  • Assuming file storage handles metadata well
  • Picking local disk which lacks scalability
4. A developer tries to use file storage for a distributed app needing fast block-level access but experiences slow performance. What is the likely cause?
medium
A. File storage does not support hierarchical folders
B. Block storage cannot be used in distributed apps
C. File storage is not optimized for block-level raw access
D. Object storage lacks metadata support

Solution

  1. Step 1: Understand file storage characteristics

    File storage organizes data in files and folders, optimized for sharing, not raw block access.
  2. Step 2: Identify mismatch with app needs

    Fast block-level access requires block storage, not file storage, causing slow performance.
  3. Final Answer:

    File storage is not optimized for block-level raw access -> Option C
  4. Quick Check:

    File storage ≠ fast block access [OK]
Hint: File storage is for files, not fast block access [OK]
Common Mistakes:
  • Believing block storage can't be used distributed
  • Confusing object storage metadata with file storage
  • Thinking file storage lacks folders
5. You are designing a scalable photo-sharing app. Users upload photos with tags and descriptions. Which storage type should you choose and why?
hard
A. Local disk storage, for simplicity and speed
B. File storage, to organize photos in folders by user
C. Block storage, for fast access to photo bytes
D. Object storage, to store photos with metadata and scale easily

Solution

  1. Step 1: Analyze app requirements

    The app needs to store photos with tags/descriptions (metadata) and scale for many users.
  2. Step 2: Match storage type to requirements

    Object storage supports metadata per object and scales well for large data and users.
  3. Step 3: Evaluate other options

    Block storage is low-level without metadata; file storage is less scalable; local disk lacks scalability and reliability.
  4. Final Answer:

    Object storage, to store photos with metadata and scale easily -> Option D
  5. Quick Check:

    Photo app + metadata + scale = Object storage [OK]
Hint: Metadata + scale = object storage for apps [OK]
Common Mistakes:
  • Choosing block storage ignoring metadata needs
  • Assuming file storage scales well for many users
  • Picking local disk for a cloud-scale app
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard