An architect wants to calibrate CloudFront cache behavior so that dynamic API responses are never cached while static assets are cached for 24 hours. How should cache policies be configured?
-
A
Set a single default TTL of 0 for all origins
-
B
Use separate cache behaviors with CachingDisabled policy for the API path and a custom TTL policy for static paths
-
C
Use Lambda@Edge to set Cache-Control headers
-
D
Enable Origin Shield for all origins