AWS SAA-C03 #207

A company owns an asynchronous API that is used to ingest user requests and, based on the request type, dispatch requests to the appropriate microservice for processing. The company is using Amazon API Gateway to deploy the API front end, and an AWS Lambda function that invokes Amazon DynamoDB to store user requests before dispatching them to the processing microservices.

The company provisioned as much DynamoDB throughput as its budget allows, but the company is still experiencing availability issues and is losing user requests.

What should a solutions architect do to address this issue without impacting existing users?

A. Add throttling on the API Gateway with server-side throttling limits.

B. Use DynamoDB Accelerator (DAX) and Lambda to buffer writes to DynamoDB.

C. Create a secondary index in DynamoDB for the table with the user requests.

D. Use the Amazon Simple Queue Service (Amazon SQS) queue and Lambda to buffer writes to DynamoDB.


The best solution to address this issue without impacting existing users would be Option D: Use the Amazon Simple Queue Service (Amazon SQS) queue and Lambda to buffer writes to DynamoDB.

Here's why:

  • Option A: Add throttling on the API Gateway with server-side throttling limits. This option might prevent the system from being overwhelmed by too many requests at once, but it doesn't solve the problem of DynamoDB's throughput limit being reached. It might also result in user requests being denied if the throttling limit is too low.
  • Option B: Use DynamoDB Accelerator (DAX) and Lambda to buffer writes to DynamoDB. DAX is a fully managed, highly available, in-memory cache for DynamoDB that can accelerate reads from DynamoDB tables by up to 10 times, even at millions of requests per second. However, DAX does not help with write throughput.
  • Option C: Create a secondary index in DynamoDB for the table with the user requests. Secondary indexes can improve read performance, but they do not increase write capacity.
  • Option D: Use the Amazon Simple Queue Service (Amazon SQS) queue and Lambda to buffer writes to DynamoDB. This option decouples the data ingestion process from the write process into DynamoDB. The SQS service can handle any level of throughput without losing messages or requiring other services to throttle themselves. This is likely the best solution because it addresses the issue of lost user requests due to exceeding the provisioned DynamoDB throughput.

Remember, it's always important to consider your specific use case and requirements when choosing a solution! 😊

相关推荐
AutoMQ1 小时前
别再每月浪费数千美元:拆解 AWS/GCP Kafka 背后的隐性账单
kafka·消息队列·aws
翼龙云_cloud2 小时前
阿里云代理商:详解阿里云部署OpenClaw 且接入Playwright指南
人工智能·阿里云·云计算·openclaw
同聘云3 小时前
腾讯云国际站服务器防火墙怎么关闭?防火墙部署方式有哪些??
云计算·腾讯云·云小强
ZeroNews内网穿透6 小时前
ZeroNews安全网关接入企业微信自建应用
网络·数据库·安全·云计算
天上的光7 小时前
云计算——基本概念
云计算
天上的光8 小时前
云计算——RPC中间件
网络协议·rpc·云计算
DolitD1 天前
新品发布 | 点量VR同屏:为VR场景打造实时可视化的无线协同方案
实时互动·云计算·交互·vr·教学培训
92year1 天前
AWS Agent Registry实操:用一个注册中心管好所有AI Agent
aws·ai agent·mcp·bedrock·agent registry
翼龙云_cloud1 天前
腾讯云代理商:如何为腾讯云部署的 OpenClaw 配置多 Agent?
人工智能·云计算·腾讯云·openclaw
TG_yunshuguoji1 天前
腾讯云代理商:腾讯云部署OpenClaw 如何接入自定义大模型?
服务器·云计算·腾讯云·openclaw