A global company hosts its web application on Amazon EC2 instances behind an Application Load Balancer (ALB). The web application has static data and dynamic data. The company stores its static data in an Amazon S3 bucket. The company wants to improve performance and reduce latency for the static data and dynamic data. The company is using its own domain name registered with Amazon Route 53.
What should a solutions architect do to meet these requirements?
A. Create an Amazon CloudFront distribution that has the S3 bucket and the ALB as origins. Configure Route 53 to route traffic to the CloudFront distribution.
B. Create an Amazon CloudFront distribution that has the ALB as an origin. Create an AWS Global Accelerator standard accelerator that has the S3 bucket as an endpoint Configure Route 53 to route traffic to the CloudFront distribution.
C. Create an Amazon CloudFront distribution that has the S3 bucket as an origin. Create an AWS Global Accelerator standard accelerator that has the ALB and the CloudFront distribution as endpoints. Create a custom domain name that points to the accelerator DNS name. Use the custom domain name as an endpoint for the web application.
D. Create an Amazon CloudFront distribution that has the ALB as an origin. Create an AWS Global Accelerator standard accelerator that has the S3 bucket as an endpoint. Create two domain names. Point one domain name to the CloudFront DNS name for dynamic content. Point the other domain name to the accelerator DNS name for static content. Use the domain names as endpoints for the web application.
A
技巧:排除明顯錯誤選項,在沒有明顯錯誤的選項中選擇最合理的選項。
某全球公司在 Application Load Balancer(ALB)后面的 Amazon EC2 實例上托管其 Web 應用程序。該Web 應用程序包含靜態數據和動態數據。該公司將靜態數據存儲在Amazon S3存儲桶中,現在希望提高性能并降低靜態數據和動態數據的延遲。公司使用的是在Amazon Route 53注冊的自有域名。
A. 正確。創建一個 Amazon CloudFront 分發,將S3存儲桶和ALB作為源。配置Route 53以將流量路由到CloudFront分發。CloudFront 是一個全球內容分發網絡(CDN),可以緩存并快速將內容(包括靜態文件和動態生成的頁面)傳遞給用戶。通過將S3存儲桶(存儲靜態數據)和 ALB (處理動態請求)都作為 CloudFront分發的源,可以確保所有類型的請求都通過 CloudFront 進行加速,從而提高性能并降低延遲。Route 53 可以將域名流量路由到 CloudFront 分發,實現統一的訪問入口。
B. 不正確。創建一個Amazon CloudFront分發,將ALB作為源。創建一個AWS Global Accelerator標準加速器,將S3存儲桶作為端點。配置Route 53以將流量路由到CloudFront分發。Global Accelerator 主要用于提高應用程序的可用性和性能,通過將流量路由到多個AWS區域中的終端節點。
C. 不正確。創建一個Amazon CloudFront分發,將S3存儲桶作為源。創建一個AWS Global Accelerator標準加速器,將ALB和CloudFront分發作為端點。創建一個指向加速器DNS名稱的自定義域名。使用該自定義域名作為Web應用程序的端點。該方案過于復雜,且不必要。將ALB 和 CloudFront 分發都作為 Global Accelerator 的端點并沒有明顯的性能優勢,反而增加了架構的復雜性和管理難度。
D. 不正確。創建一個Amazon CloudFront分發,將ALB作為源。創建一個AWS Global Accelerator標準加速器,將S3存儲桶作為端點。創建兩個域名。將一個域名指向CloudFront DNS名稱以處理動態內容,將另一個域名指向加速器DNS名稱以處理靜態內容。使用這些域名作為Web應用程序的端點。
E. 不正確。該方案更加復雜繁瑣。將靜態內容和動態內容分開處理增加了用戶訪問的復雜性, CloudFront本身已經能夠高效地處理靜態和動態內容,無需額外的Global Accelerator來加速S3存儲桶。