Caching & Performance

ElastiCache, DAX, CloudFront, and performance optimization strategies.

0/15 đã trả lời
  1. Câu 1. A web application frequently queries the same database records, causing high read load on the RDS instance. The team wants to add an in-memory caching layer to reduce database reads and improve response times. Which AWS service should they use?
  2. Câu 2. A company needs an in-memory cache that supports data persistence, replication, pub/sub messaging, and complex data structures like sorted sets and geospatial indexes. Which ElastiCache engine should they choose?
  3. Câu 3. A company needs a simple, multi-threaded caching solution that can scale horizontally by adding nodes. They do not need data persistence, replication, or complex data types. Which ElastiCache engine is the best fit?
  4. Câu 4. A company uses DynamoDB for their product catalog. Read latency is currently 5-10 milliseconds, but they need sub-millisecond read performance for their high-traffic product pages. Which caching solution requires the LEAST code changes?
  5. Câu 5. A company uses DAX for read caching of their DynamoDB table. They notice that after updating an item in DynamoDB, the application still reads stale data for several minutes. What is the cause and the recommended solution?
  6. Câu 6. A company hosts their website on EC2 instances in us-east-1. Users in Asia and Europe experience slow page load times due to high latency. Which service can cache and deliver content from edge locations closest to the users?
  7. Câu 7. A company serves both static assets (images, CSS, JS) and dynamic API responses through CloudFront. They want to cache static assets for 24 hours but ensure API responses are always fetched from the origin. How should they configure CloudFront?
  8. Câu 8. A media company uses CloudFront to distribute premium video content. They need to restrict access so that only paying subscribers can view the content, with URLs that expire after 1 hour. Which CloudFront feature should they use?
  9. Câu 9. A company has an API running on EC2 instances behind an NLB. Global users experience variable latency due to internet routing. They want to improve performance by routing traffic through the AWS global network. The solution must support TCP and preserve the client source IP. Which service should they use?
  10. Câu 10. A company implements a lazy-loading (cache-aside) caching strategy with ElastiCache Redis. They notice a high cache miss rate during peak hours, causing a thundering herd problem where hundreds of concurrent requests hit the database simultaneously for the same cache key. How should they mitigate this?
  11. Câu 11. A company deploys a new version of their website and needs to immediately invalidate all cached content in CloudFront to ensure users see the latest version. What is the MOST cost-effective approach for future deployments?
  12. Câu 12. A company needs to store user session data that must be accessible from any EC2 instance in their Auto Scaling group. Sessions should expire after 30 minutes of inactivity. Which solution provides the BEST performance and scalability?
  13. Câu 13. A company uses CloudFront with an S3 origin. During flash sales, the origin receives a spike of requests for the same objects that are not yet cached. They want to reduce the load on S3 during these cache-fill events. Which CloudFront feature helps?
  14. Câu 14. A company uses DAX for their DynamoDB-backed application. They want to use strongly consistent reads for critical operations while still benefiting from DAX caching for non-critical reads. How does DAX handle strongly consistent read requests?
  15. Câu 15. A company wants to serve their website over HTTPS using a custom domain name (www.example.com) through CloudFront. They need a free SSL certificate. Which service provides this?