Complete the code to specify the primary storage type for media files.
media_storage = [1]Object storage is ideal for storing large media files because it is scalable and optimized for unstructured data.
Complete the code to define the CDN component responsible for caching media content.
cdn_cache = [1]Edge servers in a CDN cache media content close to users to reduce latency and improve delivery speed.
Fix the error in the request flow to ensure media requests are routed to the nearest CDN node.
user_request -> [1] -> origin_serverRequests should first go to the nearest edge server (CDN node) to serve cached content before reaching the origin server.
Fill both blanks to complete the media upload flow with caching and storage.
upload_request -> [1] -> [2] -> confirmation
Uploads first go through a load balancer to distribute requests, then are stored in object storage for durability.
Fill all three blanks to define a dictionary mapping media types to their CDN cache policies.
cache_policies = {"image": [1], "video": [2], "audio": [3]Images often have medium TTL, videos have long TTL due to size and popularity, and audio has short TTL for freshness.
