0
0
HLDsystem_design~20 mins

Blob storage (S3, Azure Blob) in HLD - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Blob Storage Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Architecture
intermediate
2:00remaining
Choosing the right storage tier for cost optimization

You have a blob storage bucket that stores user-uploaded photos. Most photos are accessed frequently for the first week, then rarely afterwards. Which storage tier choice best balances cost and access speed?

AStore photos in the hot tier for the first week, then move them to the cool or archive tier.
BStore photos in the cool tier immediately after upload to save cost.
CStore all photos in the hot tier to ensure fast access at all times.
DStore photos in the archive tier immediately to minimize storage cost.
Attempts:
2 left
💡 Hint

Think about how access frequency changes over time and how storage tiers differ in cost and speed.

service_behavior
intermediate
2:00remaining
Understanding eventual consistency in S3

You overwrite an existing file in an Amazon S3 bucket and immediately try to read it from another client. Sometimes the old version is returned. What explains this behavior?

AS3 uses eventual consistency for read-after-write of new objects in all regions.
BS3 uses eventual consistency for overwrite PUTs and DELETEs, but read-after-write consistency for new objects in most regions.
CS3 provides read-after-write consistency for new objects in all regions, so this should never happen.
DS3 requires manual replication to make new objects visible to all clients.
Attempts:
2 left
💡 Hint

Consider the difference between new object creation and overwriting existing objects.

security
advanced
2:00remaining
Securing Azure Blob Storage with least privilege

You want to allow an application to upload files to a specific container in Azure Blob Storage without giving full storage account access. Which approach follows the least privilege principle?

AGenerate a shared access signature (SAS) token scoped to the container with write permissions and limited expiry time.
BShare the storage account access key with the application for full access.
CMake the container public so the application can upload files without authentication.
DAssign the Storage Blob Data Contributor role at the storage account level to the application identity.
Attempts:
2 left
💡 Hint

Think about granting only the permissions needed and for a limited time.

Configuration
advanced
2:00remaining
Configuring S3 bucket for static website hosting

You want to host a static website using an Amazon S3 bucket. Which configuration is required to serve the website correctly?

ASet the bucket policy to deny all public access.
BEnable versioning on the bucket and upload an index.html file.
CEnable static website hosting on the bucket and set the index document name.
DCreate a lifecycle rule to archive old website files.
Attempts:
2 left
💡 Hint

Think about what S3 needs to serve files as a website.

Best Practice
expert
3:00remaining
Designing multi-region disaster recovery for blob storage

Your company requires a disaster recovery plan for blob storage that ensures data durability and availability even if one cloud region fails. Which design best meets this requirement?

AManually copy blobs daily from the primary region to a secondary region using scripts.
BStore data only in one region and rely on backups stored on-premises.
CUse locally redundant storage (LRS) to keep multiple copies within the same region.
DUse geo-redundant storage (GRS) or read-access geo-redundant storage (RA-GRS) to replicate data asynchronously to a secondary region.
Attempts:
2 left
💡 Hint

Consider built-in replication options that provide automatic failover or read access.