AWS Certified CloudOps Engineer Associate SOA-C03 Practice Question
A company runs an API on Amazon EC2 behind an Application Load Balancer (ALB). During flash-sale events, the API experiences sudden traffic spikes that strain the Auto Scaling group before new instances can launch. The operations team is introducing Amazon CloudFront to offload requests but must still show near-real-time inventory counts that can change every 30 seconds. Which CloudFront configuration will most effectively reduce origin load while meeting the freshness requirement?
Configure CloudFront to set a minimum, default, and maximum TTL of 0 seconds and add Cache-Control: no-cache at the origin so every request reaches the ALB.
Insert Amazon API Gateway with enabled caching (TTL 30 seconds) in front of the ALB and disable CloudFront caching so only the API Gateway cache is used.
Use a Lambda@Edge function to append a random query string to every request so inventory data is always pulled directly from the origin.
Create a cache policy that forwards only the necessary query strings, cookies, and headers, set the minimum TTL to 0, and rely on an origin-supplied Cache-Control max-age of 30 seconds.
Setting a CloudFront cache policy that honors a 30-second max-age or s-maxage header from the origin allows objects to stay in edge caches for only that period. Forwarding only the query strings, headers, and cookies required for inventory calculations maximizes cache hit ratio. This reduces calls to the ALB while ensuring that any change the backend sends is reflected within 30 seconds. Setting the minimum TTL to 0 lets CloudFront immediately expire objects if the origin returns shorter Cache-Control headers, but the 30-second value satisfies the freshness goal. The other options either bypass caching (random query strings or no-cache directives) or use a different service (API Gateway) that is unnecessary and would not leverage the global CloudFront edge network.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the purpose of a TTL in CloudFront caching?
Open an interactive chat with Bash
Why is it important to forward only specific query strings, cookies, and headers in a CloudFront cache policy?
Open an interactive chat with Bash
What is the difference between the Cache-Control max-age and s-maxage headers in caching?
Open an interactive chat with Bash
What is a TTL in CloudFront caching?
Open an interactive chat with Bash
How does forwarding query strings, cookies, and headers impact CloudFront caching?
Open an interactive chat with Bash
What is the purpose of the Cache-Control header in this scenario?
Open an interactive chat with Bash
AWS Certified CloudOps Engineer Associate SOA-C03
Reliability and Business Continuity
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .