SAP-C02 学习助手

SAP-C02 第 48 题

API Gateway Lambda RDS Aurora Config

题目

A solutions architect has developed a web application that uses an Amazon API Gateway Regional endpoint and an AWS Lambda function. The consumers of the web application are all close to the AWS Region where the application will be deployed. The Lambda function only queries an Amazon Aurora MySQL database. The solutions architect has configured the database to have three read replicas. During testing, the application does not meet performance requirements. Under high load, the application opens a large number of database connections. The solutions architect must improve the application’s performance. Which actions should the solutions architect take to meet these requirements? (Choose two.)

中文翻译:
解决方案架构师开发了一个使用 Amazon API Gateway 区域终端节点和 AWS Lambda 函数的 Web 应用程序。 Web 应用程序的使用者都靠近将部署该应用程序的 AWS 区域。 Lambda 函数仅查询 Amazon Aurora MySQL 数据库。解决方案架构师已将数据库配置为具有三个只读副本。在测试过程中,应用程序不满足性能要求。在高负载下,应用程序打开大量数据库连接。解决方案架构师必须提高应用程序的性能。解决方案架构师应该采取哪些行动来满足这些要求? (选择两个。)

选项

A. Use the cluster endpoint of the Aurora database.

中文翻译:
使用 Aurora 数据库的集群终端节点。

B. Use RDS Proxy to set up a connection pool to the reader endpoint of the Aurora database.

中文翻译:
使用 RDS Proxy 设置到 Aurora 数据库的读取器终端节点的连接池。

C. Use the Lambda Provisioned Concurrency feature.

中文翻译:
使用 Lambda 预置并发功能。

D. Move the code for opening the database connection in the Lambda function outside of the event handler.

中文翻译:
将 Lambda 函数中用于打开数据库连接的代码移至事件处理程序之外。

E. Change the API Gateway endpoint to an edge-optimized endpoint.

中文翻译:
将 API 网关端点更改为边缘优化端点。

答案

BD

解析

正确答案:BD 解析: 本题应选择 BD。 正确选项: B. 使用 RDS Proxy 设置到 Aurora 数据库的读取器终端节点的连接池。 D. 将 Lambda 函数中用于打开数据库连接的代码移至事件处理程序之外。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维开销、成本效益、可靠性、可扩展性、安全性、RTO/RPO、合规要求等。本题相关考点主要包括:...

登录后查看完整解析