Users worldwide load large static images from an app hosted in one region, and pages are slow far from that region. What improves latency most directly?
- Exam domain
- Designing and planning a cloud solution architecture~25% of the exam
- Difficulty
- Easy
- In this mock
- 18 questions on this domainPractise this domain
Why the exam asks this
Designing a cloud solution infrastructure that meets technical requirements.
Objective in the exam guide: Performance and latency.
Distance adds latency that compute cannot fix.
Why C is the answer
Enable Cloud CDN on the external Application Load Balancer
Cloud CDN serves cached content from Google's edge, closer to users.
How it works
Cloud CDN uses Google's global edge network to serve content closer to users.
Cached content is served without reaching the origin.
It works with the external Application Load Balancer.
Clues in the question
The words that point to the answer, and what each one tells you.
- Static images
- Cacheable.
- Slow far from the region
- Distance.
In detail
- Cache static content with long lifetimes.
- Keep dynamic content at the origin.
Side by side with look-alikes
| Option | Cuts distance latency? |
|---|---|
| Cloud CDN | Yes |
| Larger database | No |
| More logs | No |
| Spot VMs | No |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Add more application logsWrong
Logs do not change latency.
B. Switch to Spot VMsWrong
Spot VMs change cost, not distance.
C. Enable Cloud CDN on the external Application Load BalancerRight
Cloud CDN serves cached content from Google's edge, closer to users.
D. Move the database to a larger machineWrongMost tempting
The database is not serving static images.
Why it tempts: Bigger machines speed processing. But they do not shorten network distance.
In practice
- Version static file names so you can cache them for a long time.