AZ-204 Develop for Azure storage Practice Question
Your application stores user profile images in Azure Blob Storage. You need to serve these images to users with low latency from a domain name that you own. What should you use?
⚠ Common exam trap
A common mix-up: candidates confuse Azure CDN with Azure Front Door or static website hosting, assuming any custom domain on a storage account automatically provides low latency, but only CDN adds the necessary edge caching layer for static blob content.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Create an Azure CDN endpoint with a custom domain and point it to the blob container.
Azure CDN is the best choice for serving static images from Blob Storage with low latency using a custom domain. While Azure Front Door can also serve content with low latency, it is primarily a global load balancer and application acceleration service, and for simple image serving from blob storage, CDN is more cost-effective and directly designed for caching static content. Option A (static website hosting) does not provide edge caching for low latency. Option C (Azure DNS) only resolves the domain; it doesn't provide caching.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Enable static website hosting and configure a custom domain directly on the storage account.
Why it's wrong here
Enabling static website hosting on an Azure Storage account serves content directly from the storage account's primary region. While it allows for custom domain configuration, this approach does not incorporate a global Content Delivery Network (CDN) layer. Consequently, requests from geographically distant users would still traverse the full network path to the storage account, resulting in significant latency and failing to provide the required low-latency experience for a global user base.
- ✓
Create an Azure CDN endpoint with a custom domain and point it to the blob container.
Why this is correct
Azure CDN is specifically engineered to cache static content, such as user profile images, at strategically located Points of Presence (PoPs) across the globe. When a user requests an image, it is served from the closest available edge location, dramatically reducing network latency and improving load times for global users. Furthermore, a custom domain can be seamlessly integrated with the CDN endpoint, ensuring a consistent and branded user experience.
- ✗
Configure a custom domain in Azure DNS and point it to the storage account endpoint.
Why it's wrong here
Configuring a custom domain in Azure DNS and pointing it to the storage account endpoint bypasses any caching layer, resulting in higher latency for users far from the storage account region. This option is incorrect.
- ✗
Use Azure Front Door with a custom domain.
Why it's wrong here
While Azure Front Door offers robust global caching, custom domain support, and the capability to serve static content with low latency, it is typically a more comprehensive and feature-rich service. Front Door is designed for complex web application architectures, encompassing global load balancing, Web Application Firewall (WAF) capabilities, and advanced routing rules. For the specific requirement of simply distributing static user profile images from blob storage, Azure CDN provides a more direct, often more cost-effective, and equally effective solution for edge caching and low latency, making Front Door an over-engineered choice for this particular scenario.
Visual reference
Quick reference
Azure Blob Storage Tier Comparison
| Tier | Storage Cost | Retrieval Cost | Latency | Use Case |
|---|---|---|---|---|
| Hot | Highest | Lowest | Immediate | Active data, frequent reads |
| Cool | Lower | Higher | Immediate | Data accessed < once / month |
| Cold | Lower still | Higher | Immediate | Data accessed < once / quarter |
| Archive | Lowest | Highest + rehydration delay | Hours | Long-term compliance retention |
Go deeper
Related to this question
About these practice questions
This AZ-204 question is part of Courseiva's 881-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AZ-204 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-204 exam.