SAP-C02 学习助手

SAP-C02 第 212 题

Direct Connect VPC Lambda RDS Aurora SQS SNS Config DataSync

题目

A company runs a microservice as an AWS Lambda function. The microservice writes data to an on-premises SQL database that supports a limited number of concurrent connections. When the number of Lambda function invocations is too high, the database crashes and causes application downtime. The company has an AWS Direct Connect connection between the company's VPC and the on-premises data center. The company wants to protect the database from crashes. Which solution will meet these requirements?

中文翻译:
一家公司将微服务作为 AWS Lambda 函数运行。微服务将数据写入支持有限数量并发连接的本地 SQL 数据库。当Lambda函数调用次数过多时,数据库崩溃并导致应用程序停机。该公司在其 VPC 和本地数据中心之间建立了 AWS Direct Connect 连接。该公司希望保护数据库免遭崩溃。哪种解决方案可以满足这些要求?

选项

A. Write the data to an Amazon Simple Queue Service (Amazon SQS) queue. Configure the Lambda function to read from the queue and write to the existing database. Set a reserved concurrency limit on the Lambda function that is less than the number of connections that the database supports.

中文翻译:
将数据写入 Amazon Simple Queue Service (Amazon SQS) 队列。配置 Lambda 函数以从队列中读取数据并将其写入现有数据库。对 Lambda 函数设置保留并发限制,该限制小于数据库支持的连接数。

B. Create a new Amazon Aurora Serverless DB cluster. Use AWS DataSync to migrate the data from the existing database to Aurora Serverless. Reconfigure the Lambda function to write to Aurora.

中文翻译:
创建新的 Amazon Aurora Serverless 数据库集群。使用 AWS DataSync 将数据从现有数据库迁移到 Aurora Serverless。重新配置 Lambda 函数以写入 Aurora。

C. Create an Amazon RDS Proxy DB instance. Attach the RDS Proxy DB instance to the Amazon RDS DB instance. Reconfigure the Lambda function to write to the RDS Proxy DB instance.

中文翻译:
创建 Amazon RDS 代理数据库实例。将 RDS 代理数据库实例附加到 Amazon RDS 数据库实例。重新配置 Lambda 函数以写入 RDS 代理数据库实例。

D. Write the data to an Amazon Simple Notification Service (Amazon SNS) topic. Invoke the Lambda function to write to the existing database when the topic receives new messages. Configure provisioned concurrency for the Lambda function to be equal to the number of connections that the database supports.

中文翻译:
将数据写入 Amazon Simple Notification Service (Amazon SNS) 主题。当主题收到新消息时,调用 Lambda 函数写入现有数据库。将 Lambda 函数的预置并发配置为等于数据库支持的连接数。

答案

A

解析

正确答案:A 解析: 本题应选择 A。 正确选项: A. 将数据写入 Amazon Simple Queue Service (Amazon SQS) 队列。配置 Lambda 函数以从队列中读取数据并将其写入现有数据库。对 Lambda 函数设置保留并发限制,该限制小于数据库支持的连接数。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维开销、成本效益、可靠...

登录后查看完整解析