AWS Certified CloudOps Engineer Associate SOA-C03 Practice Question
An e-commerce product API runs behind an ALB. Requests include a mandatory itemId query string plus optional marketing parameters, and the origin adds Cache-Control: max-age=300. The team introduces CloudFront to cut latency and origin load. They must cache objects uniquely per itemId, ignore all cookies, and treat other query strings identically, with minimal ongoing maintenance. Which CloudFront configuration satisfies these goals?
Attach a cache policy that includes only the itemId query string in the cache key and disables cookie forwarding.
Configure the distribution to forward all query strings and all cookies to the origin so CloudFront can cache every variant.
Deploy a Lambda@Edge viewer-request function that strips unwanted query strings and cookies, leaving the default cache behavior unchanged.
Enable forwarding of all query strings but whitelist the itemId parameter, and whitelist analytics cookies for origin forwarding.
A CloudFront cache policy can explicitly define which query-string parameters and cookies form the cache key. Including only the itemId parameter produces distinct cache entries for each product while collapsing requests that carry utm_* or other parameters. Setting cookie handling to None keeps cookies out of the cache key and prevents them from being forwarded, improving the hit ratio and reducing origin traffic. Forwarding every query string or every cookie multiplies cache variants and defeats the objective. Using Lambda@Edge could strip parameters, but it adds cost and operational overhead that the built-in cache policy avoids.
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 a CloudFront cache policy?
Open an interactive chat with Bash
Why is disabling cookie forwarding important in this configuration?
Open an interactive chat with Bash
How does CloudFront differ from Lambda@Edge for handling query strings?
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 .