SAP-C02 第 297 题
题目
A company has a complex web application that leverages Amazon CloudFront for global scalability and performance. Over time, users report that the web application is slowing down. The company's operations team reports that the CloudFront cache hit ratio has been dropping steadily. The cache metrics report indicates that query strings on some URLs are inconsistently ordered and are specified sometimes in mixed-case letters and sometimes in lowercase letters. Which set of actions should the solutions architect take to increase the cache hit ratio as quickly as possible?
中文翻译:
一家公司拥有一个复杂的 Web 应用程序,该应用程序利用 Amazon CloudFront 实现全球可扩展性和性能。随着时间的推移,用户报告 Web 应用程序速度变慢。该公司的运营团队报告称,CloudFront 缓存命中率一直在稳步下降。缓存指标报告表明某些 URL 上的查询字符串排序不一致,并且有时以混合大小写字母指定,有时以小写字母指定。解决方案架构师应该采取哪组操作来尽快提高缓存命中率?
选项
A. Deploy a Lambda@Edge function to sort parameters by name and force them to be lowercase. Select the CloudFront viewer request trigger to invoke the function.
中文翻译:
部署 Lambda@Edge 函数以按名称对参数进行排序并强制它们为小写。选择 CloudFront 查看器请求触发器以调用该函数。
B. Update the CloudFront distribution to disable caching based on query string parameters.
中文翻译:
更新 CloudFront 发行版以根据查询字符串参数禁用缓存。
C. Deploy a reverse proxy after the load balancer to post-process the emitted URLs in the application to force the URL strings to be lowercase.
中文翻译:
在负载均衡器之后部署反向代理,以对应用程序中发出的 URL 进行后处理,以强制 URL 字符串为小写。
D. Update the CloudFront distribution to specify casing-insensitive query string processing.
中文翻译:
更新 CloudFront 发行版以指定不区分大小写的查询字符串处理。
答案
A
解析
正确答案:A 解析: 本题应选择 A。 正确选项: A. 部署 Lambda@Edge 函数以按名称对参数进行排序并强制它们为小写。选择 CloudFront 查看器请求触发器以调用该函数。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维开销、成本效益、可靠性、可扩展性、安全性、RTO/RPO、合规要求等。本题相关考点主要包括:Lambda、CloudFro...