Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AWS Certified Solutions Architect - Professional SAP-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional SAP-C02 exam

Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 392 discussion

A car rental company has built a serverless REST API to provide data to its mobile app. The app consists of an Amazon API Gateway API with a Regional endpoint, AWS Lambda functions, and an Amazon Aurora MySQL Serverless DB cluster. The company recently opened the API to mobile apps of partners. A significant increase in the number of requests resulted, causing sporadic database memory errors.

Analysis of the API traffic indicates that clients are making multiple HTTP GET requests for the same queries in a short period of time. Traffic is concentrated during business hours, with spikes around holidays and other events.

The company needs to improve its ability to support the additional usage while minimizing the increase in costs associated with the solution.

Which strategy meets these requirements?

  • A. Convert the API Gateway Regional endpoint to an edge-optimized endpoint. Enable caching in the production stage.
  • B. Implement an Amazon ElastiCache for Redis cache to store the results of the database calls. Modify the Lambda functions to use the cache.
  • C. Modify the Aurora Serverless DB cluster configuration to increase the maximum amount of available memory.
  • D. Enable throttling in the API Gateway production stage. Set the rate and burst values to limit the incoming calls.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
vibzr2023
Highly Voted 10 months, 3 weeks ago
Option A is correct While A and B do the job but the question says "minimizing the increase in costs associated with the solution".. I'll go with A coz Edge-optimized endpoints cache responses at edge locations closer to users, significantly reducing the number of requests reaching the database and Lambda functions.. While Option B -- While ElastiCache for Redis a good caching solution, it adds complexity and cost compared to edge caching.
upvoted 10 times
...
career360guru
Highly Voted 10 months, 2 weeks ago
Selected Answer: A
Option A because B is more expensive than A
upvoted 9 times
...
AzureDP900
Most Recent 1 week, 2 days ago
ption B (using ElastiCache for Redis) provides a more targeted solution that specifically addresses the issue of frequent requests and database memory errors. By caching frequently accessed data in ElastiCache, you can reduce the load on the Aurora Serverless DB cluster and improve performance.
upvoted 1 times
AzureDP900
1 week, 2 days ago
*Option B
upvoted 1 times
...
...
0b43291
1 week, 5 days ago
Selected Answer: B
Both options have their merits and can potentially address the issue to some extent. However, Option B (ElastiCache for Redis cache) is generally considered a more robust and targeted solution for caching database query results and addressing the root cause of redundant queries. If the application data is highly dynamic or personalized, and cache invalidation is a significant concern, Option B may be the preferred choice, as it allows for more granular control over the caching logic within the application code. Ultimately, the decision may depend on factors such as the nature of the data, the complexity of the caching requirements, the team's familiarity with the technologies involved, and the overall architectural preferences of the organization.
upvoted 1 times
...
sashenka
4 weeks, 1 day ago
Selected Answer: A
Option A: Edge-Optimized Endpoint with API Gateway Caching This is the most suitable solution because: API Gateway caching can store frequently accessed query results at edge locations, reducing latency and database load14 Edge-optimized endpoints serve responses from locations closer to clients, improving performance4 It's more cost-effective compared to implementing ElastiCache or increasing database resources4 The pricing for HTTP API requests is very economical at $1 per million requests for the first 300 million1
upvoted 1 times
...
JoeTromundo
1 month, 2 weeks ago
Selected Answer: B
For those who are saying that option A is the correct one, why should API Gateway Regional Endpoint be converted to Edge-Optimized Endpoint, if caching can be enabled on either? Also, Between the two options, Option B tends to have a lower cost increase in the long term, especially because ElastiCache allows for more direct control over costs and can be adjusted to meet demand. Option A may result in significant data transfer costs, as switching to an Edge-Optimized endpoint involves CloudFront usage costs, which can increase rapidly as traffic grows. Therefore, if the goal is to minimize the increase in costs, Option B (using ElastiCache for Redis) is likely the best choice.,
upvoted 4 times
...
asquared16
3 months, 1 week ago
Selected Answer: A
Well, I'm convinced with B too, but apparently Neal Davis chose A in one of his exams so..
upvoted 3 times
...
Zas1
6 months, 1 week ago
Selected Answer: B
Minimizing is not the most cheaper.
upvoted 2 times
...
red_panda
6 months, 2 weeks ago
Selected Answer: B
For me it's B. We are using a REGIONAL (Not Global) API Endpoint. Take in mind that the errors are in Database layer, so it's not a problem to APIs, but with Redis Cache for sure we solve it. For me it's the best choice.
upvoted 7 times
...
AlbertC
7 months, 4 weeks ago
Selected Answer: B
A doesn't resolve the problems. It is B.
upvoted 3 times
...
VerRi
8 months, 1 week ago
Selected Answer: A
B is expensive
upvoted 3 times
...
duriselvan
10 months, 4 weeks ago
kEY WORK MOBILE APP b IS ANY https://aws.amazon.com/elasticache/redis/
upvoted 1 times
...
carpa_jo
11 months ago
Selected Answer: A
API Gateway can take care of caching and it should be the cheaper solution compared to ElastiCache for Redis. That why I go with A.
upvoted 4 times
...
mosalahs
11 months ago
Selected Answer: A
The main option is "clients are making multiple HTTP GET requests for the same queries in a short period of time." Enable Cache from APIGW https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-caching.html Option B is workable solution but will add more cost
upvoted 6 times
...
ayadmawla
11 months, 1 week ago
Selected Answer: B
Its B For those choosing A, a change between regional and edge API is not required but API caching is. The problem is that A doesn't explain "how" which is explained in B.
upvoted 4 times
...
GaryQian
11 months, 2 weeks ago
Selected Answer: B
Should be B :"Analysis of the API traffic indicates that clients are making multiple HTTP GET requests for the same queries in a short period of time" . Same query with same result should be cached.
upvoted 4 times
mifune
6 months, 2 weeks ago
It's what is doing the answer A as well. Where's the problem?
upvoted 1 times
...
...
Russs99
11 months, 2 weeks ago
Selected Answer: B
Option A suggest Converting the API Gateway endpoint and enabling caching is not as effective for this scenario because edge-optimized endpoints are primarily for global distribution. This application is regional
upvoted 4 times
Russs99
11 months, 2 weeks ago
The problem being solved in this scenario is not a latency related, but catching, therefore, i am sticking with pick of B over A
upvoted 3 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...