- A
Use Amazon CloudFront with the ALB as the origin, and configure CloudFront to cache the static assets while forwarding dynamic requests to the ALB.
CloudFront acts as a CDN and can be configured with multiple cache behaviors. Static assets are cached at edge locations, reducing the load on the ALB and EC2 instances. Dynamic requests are forwarded to the ALB as needed. This directly meets the company's requirements.
- B
Use Amazon Route 53 with latency-based routing to direct users to the closest ALB endpoint.
Why wrong: Latency-based routing improves performance by directing users to the region with the lowest latency, but it does not cache content. All requests still reach the ALB and EC2 instances, so the load on the instances is not reduced.
- C
Use Amazon S3 to host the entire application, and use the ALB to route traffic to the S3 bucket.
Why wrong: Amazon S3 is a static storage service and cannot run dynamic application logic (e.g., server-side processing, database queries). The application requires dynamic content, so S3 alone is not suitable. Additionally, this setup does not reduce load on EC2 instances.
- D
Use AWS Global Accelerator to distribute traffic across multiple ALBs in different AWS Regions.
Why wrong: Global Accelerator improves performance by using the AWS global network to route traffic to the nearest healthy endpoint, but it does not cache content. All requests still reach the ALB and EC2 instances, so the load is not reduced.
Quick Answer
The answer is to use Amazon CloudFront with the Application Load Balancer as the origin, configuring CloudFront to cache static assets while forwarding dynamic requests to the ALB. This works because CloudFront supports path-based caching behaviors, allowing you to define specific URL patterns like /static/* for CSS, JavaScript, and images to be cached at edge locations, while all other requests pass through to the ALB for dynamic content. On the AWS Certified Cloud Practitioner CLF-C02 exam, this scenario tests your understanding of CloudFront’s ability to reduce latency and offload EC2 instances by serving cached content from edge locations, a common optimization pattern. A frequent trap is assuming you need separate origins or services for static and dynamic content, but CloudFront handles both with a single ALB origin using different cache behaviors. Memory tip: think “static stays at the edge, dynamic goes to the backend” to remember that CloudFront caches only what you tell it to cache.
CLF-C02 Cloud Technology and Services Practice Question
This CLF-C02 practice question tests your understanding of cloud technology and services. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A company runs a web application on a fleet of Amazon EC2 instances behind an Application Load Balancer (ALB). The application serves dynamic content that changes frequently, but also serves static assets (CSS, JavaScript, images) that change rarely. The company wants to improve the overall performance and reduce the load on the EC2 instances by caching the static assets at edge locations while still routing dynamic requests to the ALB. Which combination of AWS services should the company use?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
Use Amazon CloudFront with the ALB as the origin, and configure CloudFront to cache the static assets while forwarding dynamic requests to the ALB.
Amazon CloudFront can be configured with the ALB as the origin, allowing it to cache static assets (CSS, JavaScript, images) at edge locations while forwarding dynamic requests to the ALB. This reduces latency for users by serving cached content from the nearest edge location and offloads the EC2 instances from handling repeated requests for static files. CloudFront supports path-based caching behaviors, so you can define specific URL patterns (e.g., /static/*) to cache and others to forward directly to the ALB.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Use Amazon CloudFront with the ALB as the origin, and configure CloudFront to cache the static assets while forwarding dynamic requests to the ALB.
Why this is correct
CloudFront acts as a CDN and can be configured with multiple cache behaviors. Static assets are cached at edge locations, reducing the load on the ALB and EC2 instances. Dynamic requests are forwarded to the ALB as needed. This directly meets the company's requirements.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Use Amazon Route 53 with latency-based routing to direct users to the closest ALB endpoint.
Why it's wrong here
Latency-based routing improves performance by directing users to the region with the lowest latency, but it does not cache content. All requests still reach the ALB and EC2 instances, so the load on the instances is not reduced.
- ✗
Use Amazon S3 to host the entire application, and use the ALB to route traffic to the S3 bucket.
Why it's wrong here
Amazon S3 is a static storage service and cannot run dynamic application logic (e.g., server-side processing, database queries). The application requires dynamic content, so S3 alone is not suitable. Additionally, this setup does not reduce load on EC2 instances.
- ✗
Use AWS Global Accelerator to distribute traffic across multiple ALBs in different AWS Regions.
Why it's wrong here
Global Accelerator improves performance by using the AWS global network to route traffic to the nearest healthy endpoint, but it does not cache content. All requests still reach the ALB and EC2 instances, so the load is not reduced.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates may think Route 53 latency-based routing (Option B) can cache content at edge locations, but Route 53 is a DNS service only and does not provide any caching or content delivery functionality.
Detailed technical explanation
How to think about this question
CloudFront uses cache behaviors to match URL patterns (e.g., /images/*, /css/*) and applies TTLs based on Cache-Control headers from the origin. For dynamic content, you can set a TTL of 0 or forward all headers/cookies to the ALB to ensure freshness. Under the hood, CloudFront maintains persistent connections to the ALB origin using HTTP/1.1 keep-alive, reducing connection overhead for dynamic requests.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Cloud Technology and Services — study guide chapter
Learn the concepts, then practise the questions
- →
Cloud Technology and Services practice questions
Targeted practice on this topic area only
- →
All CLF-C02 questions
1,024 questions across all exam domains
- →
AWS Certified Cloud Practitioner CLF-C02 study guide
Full concept coverage aligned to exam objectives
- →
CLF-C02 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related CLF-C02 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Cloud Concepts practice questions
Practise CLF-C02 questions linked to Cloud Concepts.
Security and Compliance practice questions
Practise CLF-C02 questions linked to Security and Compliance.
Cloud Technology and Services practice questions
Practise CLF-C02 questions linked to Cloud Technology and Services.
Billing, Pricing, and Support practice questions
Practise CLF-C02 questions linked to Billing, Pricing, and Support.
AWS shared responsibility model practice questions
Practise CLF-C02 questions linked to AWS shared responsibility model.
AWS IAM practice questions
Practise CLF-C02 questions linked to AWS IAM.
AWS pricing practice questions
Practise CLF-C02 questions linked to AWS pricing.
AWS support plans practice questions
Practise CLF-C02 questions linked to AWS support plans.
AWS S3 practice questions
Practise CLF-C02 questions linked to AWS S3.
AWS EC2 practice questions
Practise CLF-C02 questions linked to AWS EC2.
Practice this exam
Start a free CLF-C02 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this CLF-C02 question test?
Cloud Technology and Services — This question tests Cloud Technology and Services — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Use Amazon CloudFront with the ALB as the origin, and configure CloudFront to cache the static assets while forwarding dynamic requests to the ALB. — Amazon CloudFront can be configured with the ALB as the origin, allowing it to cache static assets (CSS, JavaScript, images) at edge locations while forwarding dynamic requests to the ALB. This reduces latency for users by serving cached content from the nearest edge location and offloads the EC2 instances from handling repeated requests for static files. CloudFront supports path-based caching behaviors, so you can define specific URL patterns (e.g., /static/*) to cache and others to forward directly to the ALB.
What should I do if I get this CLF-C02 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Same concept, more angles
1 more ways this is tested on CLF-C02
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A company hosts an e-commerce website on Amazon EC2 instances behind an Application Load Balancer in the us-east-1 Region. The website includes both static assets (product images, CSS files) and dynamic content (user-specific cart data). The company has customers all over the world who complain about slow page load times. The company wants to reduce latency by caching static content closer to users while still allowing dynamic requests to reach the origin. Which AWS service should the company use to meet these requirements?
medium- ✓ A.Amazon CloudFront with Application Load Balancer as the origin
- B.Amazon Route 53 with latency-based routing
- C.AWS Global Accelerator with static IP addresses
- D.Amazon S3 Transfer Acceleration
Why A: Amazon CloudFront is a content delivery network (CDN) that caches static content (e.g., images, CSS) at edge locations worldwide, reducing latency for users. By configuring the Application Load Balancer as the origin, CloudFront forwards dynamic requests (e.g., cart data) to the ALB, which then routes them to the EC2 instances. This hybrid approach meets the requirement to cache static assets globally while allowing dynamic content to be processed by the origin servers.
Keep practising
More CLF-C02 practice questions
- A company publishes a message each time a new product is added to its catalogue. Three services need to receive this mes…
- A media company stores frequently accessed video thumbnails in Amazon S3. The thumbnails are read multiple times every d…
- A company needs a service to translate domain names (like www.example.com) into IP addresses, check the health of their…
- A startup runs an application on AWS and receives a monthly bill that charges exactly for the number of compute hours us…
- A financial institution runs its core banking application on-premises due to regulatory requirements. It has connected i…
- A company wants to run a MySQL database in AWS without managing database software installation, applying patches, settin…
Last reviewed: Jun 11, 2026
This CLF-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CLF-C02 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.