D2: Caching for Scalability (CloudFront & ElastiCache)
AWS Associate AWS Certified CloudOps Engineer – Associate exam practice questions · 11 flashcards
Question
How does CloudFront improve scalability?
1 / 11
Tip: Space flips the card, ← / → navigate.
Show all 11 Caching for Scalability (CloudFront & ElastiCache) practice questions and answers
- How does CloudFront improve scalability?Caches content at edge locations, offloading origin servers.
- What controls what CloudFront caches?Cache policies (TTL, cache key: headers, cookies, query strings).
- What is an origin request policy?Defines values forwarded to the origin without adding them to the cache key.
- What is Origin Shield?An additional regional caching layer to reduce origin load.
- ElastiCache for Valkey/Redis OSS vs Memcached?Valkey/Redis: replication, persistence, data structures, Multi-AZ. Memcached: simple, multithreaded, no persistence.
- Lazy loading caching strategy?Load data into cache only on a cache miss; risk of stale data.
- Write-through caching strategy?Write to cache whenever writing to database; data always current, more writes.
- What is TTL in caching?Time-to-live after which cached data expires, balancing freshness and hit rate.
- ElastiCache scaling options?Vertical (node type), horizontal (shards/replicas, cluster mode), or ElastiCache Serverless.
- Scenario: offload session state from web servers. Service?ElastiCache (Valkey/Redis OSS) or DynamoDB.
- Low CloudFront cache hit ratio. Common cause?Cache key includes unnecessary headers/cookies/query strings, or short TTLs.