SAP-C02 学习助手

SAP-C02 第 413 题

Lambda RDS Aurora Config

题目

A company has an application that uses an Amazon Aurora PostgreSQL DB cluster for the application's database. The DB cluster contains one small primary instance and three larger replica instances. The application runs on an AWS Lambda function. The application makes many short-lived connections to the database's replica instances to perform read-only operations. During periods of high traffic, the application becomes unreliable and the database reports that too many connections are being established. The frequency of high-traffic periods is unpredictable. Which solution will improve the reliability of the application?

中文翻译:
一家公司的应用程序使用 Amazon Aurora PostgreSQL 数据库集群作为应用程序的数据库。数据库集群包含一个小型主实例和三个较大的副本实例。该应用程序在 AWS Lambda 函数上运行。应用程序与数据库的副本实例建立许多短期连接以执行只读操作。在高流量期间,应用程序变得不可靠,并且数据库报告正在建立太多连接。高流量时段的频率是不可预测的。哪种解决方案将提高应用程序的可靠性?

选项

A. Use Amazon RDS Proxy to create a proxy for the DB cluster. Configure a read-only endpoint for the proxy. Update the Lambda function to connect to the proxy endpoint.

中文翻译:
使用 Amazon RDS 代理为数据库集群创建代理。为代理配置只读端点。更新 Lambda 函数以连接到代理终端节点。

B. Increase the max_connections setting on the DB cluster's parameter group. Reboot all the instances in the DB cluster. Update the Lambda function to connect to the DB cluster endpoint.

中文翻译:
增加数据库集群参数组的 max_connections 设置。重新启动数据库集群中的所有实例。更新 Lambda 函数以连接到数据库集群终端节点。

C. Configure instance scaling for the DB cluster to occur when the DatabaseConnections metric is close to the max connections setting. Update the Lambda function to connect to the Aurora reader endpoint.

中文翻译:
配置数据库集群的实例扩展,以便在 DatabaseConnections 指标接近最大连接设置时进行。更新 Lambda 函数以连接到 Aurora 读取器端点。

D. Use Amazon RDS Proxy to create a proxy for the DB cluster. Configure a read-only endpoint for the Aurora Data API on the proxy. Update the Lambda function to connect to the proxy endpoint.

中文翻译:
使用 Amazon RDS 代理为数据库集群创建代理。在代理上为 Aurora 数据 API 配置只读终端节点。更新 Lambda 函数以连接到代理终端节点。

答案

A

解析

正确答案:A 解析: 本题应选择 A。 正确选项: A. 使用 Amazon RDS 代理为数据库集群创建代理。为代理配置只读端点。更新 Lambda 函数以连接到代理终端节点。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维开销、成本效益、可靠性、可扩展性、安全性、RTO/RPO、合规要求等。本题相关考点主要包括:Lambda、RDS、Aurora、Con...

登录后查看完整解析