A company is hosting a static website on Amazon S3 and is using Amazon Route 53 for DNS. The website is experiencing increased demand from around the world. The company must decrease latency for users who access the website.
Which solution meets these requirements MOST cost-effectively?
A. Replicate the S3 bucket that contains the website to all AWS Regions. Add Route 53 geolocation routing entries.
B. Provision accelerators in AWS Global Accelerator. Associate the supplied IP addresses with the S3 bucket. Edit the Route 53 entries to point to the IP addresses of the accelerators.
C. Add an Amazon CloudFront distribution in front of the S3 bucket. Edit the Route 53 entries to point to the CloudFront distribution.
D. Enable S3 Transfer Acceleration on the bucket. Edit the Route 53 entries to point to the new endpoint.
C
技巧:排除明顯錯誤選項,在沒有明顯錯誤的選項中選擇最合理的選項。
一家公司在 Amazon S3 上托管了一個靜態(tài)網(wǎng)站,并使用 Amazon Route 53 進(jìn)行 DNS 管理。該網(wǎng)站的全球訪問需求正在增加。公司必須減少用戶訪問網(wǎng)站的延遲。哪個解決方案能以最經(jīng)濟(jì)高效的方式滿足這些要求?
A. 不正確。將包含網(wǎng)站的 S3 存儲桶復(fù)制到所有 AWS 區(qū)域。添加 Route 53 地理位置路由條目。S3 支持跨區(qū)域復(fù)制,但它是用于數(shù)據(jù)冗余和合規(guī)性,而不是直接用于降低延遲。靜態(tài)網(wǎng)站的內(nèi)容是只讀的,用戶仍然需要通過原始存儲桶的 URL 訪問,而不是通過復(fù)制的存儲桶訪問。該方案需要在多個區(qū)域復(fù)制數(shù)據(jù),增加存儲成本,而且無法直接降低延遲。
B. 不正確。在 AWS Global Accelerator 中配置加速器。將提供的 IP 地址與 S3 存儲桶關(guān)聯(lián)。編輯 Route 53 條目以指向加速器的 IP 地址。WS Global Accelerator 主要用于動態(tài)應(yīng)用(如游戲、API 等),通過 Anycast IP 和邊緣位置優(yōu)化網(wǎng)絡(luò)路徑。對于靜態(tài)網(wǎng)站,Global Accelerator 并不是最佳選擇,因為它無法直接與 S3 靜態(tài)網(wǎng)站集成。S3 靜態(tài)網(wǎng)站需要通過 HTTP/HTTPS 訪問,而 Global Accelerator 主要用于 TCP/UDP 流量。Global Accelerator 是付費(fèi)服務(wù),對于靜態(tài)網(wǎng)站來說,成本較高且不必要。
C. 正確。在 S3 存儲桶前添加 Amazon CloudFront 分發(fā)。編輯 Route 53 條目以指向 CloudFront 分發(fā)。Amazon CloudFront 是 AWS 的內(nèi)容分發(fā)網(wǎng)絡(luò)(CDN),專為降低延遲和加速內(nèi)容分發(fā)而設(shè)計。通過將內(nèi)容緩存到全球邊緣位置,用戶可以從最近的邊緣位置獲取內(nèi)容,從而顯著降低延遲。CloudFront 完全支持 S3 靜態(tài)網(wǎng)站,可以通過配置 S3 作為源(Origin)輕松集成。只需修改 Route 53 的 CNAME 或 ALIAS 記錄,將域名指向 CloudFront 分配的域名。CloudFront 的定價基于數(shù)據(jù)傳輸和請求數(shù)量,對于靜態(tài)網(wǎng)站來說,通常比其他方案更經(jīng)濟(jì)高效。無需在多個區(qū)域復(fù)制數(shù)據(jù),節(jié)省存儲成本。
D. 不正確。在存儲桶上啟用 S3 Transfer Acceleration。編輯 Route 53 條目以指向新的端點。S3 Transfer Acceleration 主要用于加速大文件上傳到 S3(如通過 PUT/POST 請求),而不是加速用戶下載內(nèi)容。
它通過 AWS 邊緣位置優(yōu)化上傳路徑,但不適用于靜態(tài)網(wǎng)站的內(nèi)容分發(fā)。靜態(tài)網(wǎng)站的用戶訪問是 GET 請求,S3 Transfer Acceleration 無法降低這些請求的延遲。