Microsoft AZ-204: Azure Caching, CDN and Performance — Study Guide

Part of the Microsoft Azure Developer Associate AZ-204 — Study Guide. Practice with verified answers in the Microsoft exam hub, or take timed practice tests on ExamRoll.io.

Overview

Fast, reliable user experiences in Azure depend on placing content and state close to users, minimizing origin load, and handling failure gracefully. Azure Cache for Redis, Azure CDN, and Azure Front Door together provide in-memory acceleration, edge caching, and global anycast routing with security. Mastering Redis data structures and connection patterns, CDN profiles and caching semantics, and Front Door routing and health probes lets you design low-latency, resilient applications.

Azure Cache for Redis: tiers, data structures, eviction, and patterns

Azure Cache for Redis is a managed Redis service that provides sub-millisecond data access, supporting common Redis data structures and advanced capabilities in higher tiers.

Tiers:

Data structures and when to use them:

Eviction policies (applied when maxmemory is reached):

Pick eviction based on data criticality and access patterns. For caches, allkeys-lru or allkeys-lfu gives best hit rates. For mixed stores with carefully set expirations, volatile-ttl or volatile-lru can respect your TTLs.

Common use cases:

Connecting to Azure Redis: connection strings, StackExchange.Redis, and resilience

Connection endpoints and keys are provided in the Azure portal under Access keys. The primary connection string includes host, port, TLS, and password (for example, contoso.redis.cache.windows.net:6380,password=…;ssl=True;abortConnect=False). Always use TLS on port 6380 in production.

StackExchange.Redis best practices:

Azure CDN: profiles, endpoints, origins, optimization, and content freshness

Azure CDN caches static content at edge POPs to reduce latency and origin load. A CDN profile groups endpoints and pricing tier/provider; an endpoint defines the edge hostname and connects to one or more origins.

Profiles and endpoints:

Origin types:

Optimization types (applied at endpoint creation):

Caching rules and purging:

Content freshness controls:

Azure Front Door: global routing, health, security, and affinity

Azure Front Door provides anycast-based, Layer 7 global load balancing, dynamic site acceleration, and integrated WAF. It complements CDN by routing and protecting dynamic traffic while optionally caching static content in Standard/Premium.

Routing rules:

Health probes and backend health:

WAF integration:

Session affinity:

Interplay with CDN:

Practical Problem Scenario

Mozilla is launching a global microsite for add-on discovery with high traffic spikes during releases. They need fast static asset delivery, resilient dynamic APIs, and secure, low-latency user interactions worldwide.

  1. Front Door for global entry and security
  1. WAF policy and rate limiting
  1. Health probes and origin groups
  1. Redis-backed session and output caching
  1. Redis data structures for leaderboards
  1. Connection resilience with StackExchange.Redis
  1. CDN for static assets with aggressive caching
  1. Purge process in CI/CD
  1. Front Door session affinity only where required

This architecture uses Front Door for secure, intelligent edge routing and WAF, Azure CDN for high-hit-rate static content delivery with precise freshness control, and Azure Cache for Redis to offload hot reads, maintain low-latency session and leaderboard data, and absorb spikes gracefully.


Azure Event-Based and Message Solutions · All domains · Azure Monitoring

Practice these questions → · Timed practice on ExamRoll.io →

Pass the whole exam — not just this question

You found this answer. Get every verified question and explanation in one place, and save hours of prep. Free to start.

Pass your exam →

Browse Microsoft →

Related guides

All-in-one access

One subscription. Every exam.

Every plan unlocks unlimited answer search, practice tests, AI explanations, and the full resource library — in 20+ languages.

Monthly
24.87
Just €0.83/day
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

Best value
12 months
179.87
Just €0.49/daySave 40%
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

✓ Free plan included · ✓ Cancel anytime · ✓ All plans unlock the full product