A global web application needs a single-certificate HTTPS endpoint with path-based routing to multiple origins. It must also support caching for mostly static assets, while dynamic API responses must not be cached. Which configuration is most appropriate?
Answer
Use CloudFront with a single distribution, set separate cache behaviors for static paths with caching enabled, and route dynamic paths to an origin with caching disabled; attach an ACM certificate
Explanation
CloudFront supports HTTPS termination with ACM and path-based cache behaviors. Disabling caching on dynamic behaviors prevents stale API responses while still accelerating static content.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
A customer requires deterministic, user-facing API performance. They expect traffic spikes and want to throttle/shape requests based on usage plans, while integrating authentication. Which service combination is most suitable?
View question →
A company needs to move a monolithic Java app to AWS with minimal downtime. The team must keep RPO under 15 minutes, tolerate a brief RTO during cutover, and handle blue/green traffic shifts. Which approach best fits these constraints?
View question →
A multi-account organization requires centralized logging, strict encryption, and retention policies. The security team requests that logs never be unencrypted at rest and that only a security OU can access them. Which solution best meets these requirements?
View question →
A workload must store user session data with sub-second read/write and strong consistency, while sessions must expire automatically. Which AWS service/data model is the best fit?
View question →
An application uses S3 for uploads and must trigger asynchronous processing. You need to avoid duplicate processing when the same key is overwritten quickly. Which design is most robust?
View question →
Your architecture uses an Auto Scaling group across multiple subnets. Instances must join an existing Windows domain, download packages from a private repository, and write logs reliably even if the app fails before boot completes. Which approach is best?
View question →