SAA-C03 · Question #108
A company is developing a rating system for its ecommerce web application. The company needs a solution to save ratings that users submit in an Amazon DynamoDB table. The company wants to ensure that
The correct answer is D. Create an Amazon API Gateway REST API Define a resource and create a new POST method.. Amazon API Gatewayprovides a scalable and reusable solution for interacting with DynamoDB without requiring direct access by developers. By setting up a REST API with a POST methodthat integrates with DynamoDB's PutItemaction, developers can submit data (such as user ratings) to
Question
A company is developing a rating system for its ecommerce web application. The company needs a solution to save ratings that users submit in an Amazon DynamoDB table. The company wants to ensure that developers do not need to interact directly with the DynamoDB table. The solution must be scalable and reusable. Which solution will meet these requirements with the LEAST operational overhead?
Options
- ACreate an Application Load Balancer (ALB). Create an AWS Lambda function, and set the
- BCreate an AWS Lambda function. Configure the Lambda function to interact with the DynamoDB
- CCreate an Amazon Simple Queue Service (Amazon SQS) queue and an AWS Lambda function
- DCreate an Amazon API Gateway REST API Define a resource and create a new POST method.
How the community answered
(34 responses)- A3% (1)
- B3% (1)
- C9% (3)
- D85% (29)
Explanation
Amazon API Gatewayprovides a scalable and reusable solution for interacting with DynamoDB without requiring direct access by developers. By setting up a REST API with a POST methodthat integrates with DynamoDB's PutItemaction, developers can submit data (such as user ratings) to the DynamoDB table through API Gateway, without having to directly interact with the database. This solution is serverless and minimizes operational overhead. Option A: Using ALB with Lambda adds complexity and is less efficient for this use case. Option B: While using Lambda is possible, API Gateway provides a more scalable, reusable Option C: SQS with Lambda introduces unnecessary components for a simple put operation.
Community Discussion
No community discussion yet for this question.