ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 446 - SAP-C02 discussion

Report
Export

A company has a web application that uses Amazon API Gateway. AWS Lambda and Amazon DynamoDB A recent marketing campaign has increased demand Monitoring software reports that many requests have significantly longer response times than before the marketing campaign

A solutions architect enabled Amazon CloudWatch Logs for API Gateway and noticed that errors are occurring on 20% of the requests. In CloudWatch. the Lambda function. Throttles metric represents 1% of the requests and the Errors metric represents 10% of the requests Application logs indicate that, when errors occur there is a call to DynamoDB

What change should the solutions architect make to improve the current response times as the web application becomes more popular'?

A.
Increase the concurrency limit of the Lambda function
Answers
A.
Increase the concurrency limit of the Lambda function
B.
Implement DynamoDB auto scaling on the table
Answers
B.
Implement DynamoDB auto scaling on the table
C.
Increase the API Gateway throttle limit
Answers
C.
Increase the API Gateway throttle limit
D.
Re-create the DynamoDB table with a better-partitioned primary index.
Answers
D.
Re-create the DynamoDB table with a better-partitioned primary index.
Suggested answer: B

Explanation:

Enable DynamoDB Auto Scaling:

Navigate to the DynamoDB console and select the table experiencing high demand.

Go to the 'Capacity' tab and enable auto scaling for both read and write capacity units. Auto scaling adjusts the provisioned throughput capacity automatically in response to actual traffic patterns, ensuring the table can handle the increased load.

Configure Auto Scaling Policies:

Set the minimum and maximum capacity units to define the range within which auto scaling can adjust the provisioned throughput.

Specify target utilization percentages for read and write operations, typically around 70%, to maintain a balance between performance and cost.

Monitor and Adjust:

Use Amazon CloudWatch to monitor the auto scaling activity and ensure it is effectively handling the increased demand.

Adjust the auto scaling settings if necessary to better match the traffic patterns and application requirements.

By enabling DynamoDB auto scaling, you ensure that the database can handle the fluctuating traffic volumes without manual intervention, improving response times and reducing errors.

Reference

AWS Compute Blog on Using API Gateway as a Proxy for DynamoDB60.

AWS Database Blog on DynamoDB Accelerator (DAX)59.

asked 16/09/2024
John Ordonez
30 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first