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

Exam AWS Certified Solutions Architect - Associate SAA-C03 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Associate SAA-C03 exam

Exam AWS Certified Solutions Architect - Associate SAA-C03 topic 1 question 228 discussion

A company has an API that receives real-time data from a fleet of monitoring devices. The API stores this data in an Amazon RDS DB instance for later analysis. The amount of data that the monitoring devices send to the API fluctuates. During periods of heavy traffic, the API often returns timeout errors.

After an inspection of the logs, the company determines that the database is not capable of processing the volume of write traffic that comes from the API. A solutions architect must minimize the number of connections to the database and must ensure that data is not lost during periods of heavy traffic.

Which solution will meet these requirements?

  • A. Increase the size of the DB instance to an instance type that has more available memory.
  • B. Modify the DB instance to be a Multi-AZ DB instance. Configure the application to write to all active RDS DB instances.
  • C. Modify the API to write incoming data to an Amazon Simple Queue Service (Amazon SQS) queue. Use an AWS Lambda function that Amazon SQS invokes to write data from the queue to the database.
  • D. Modify the API to write incoming data to an Amazon Simple Notification Service (Amazon SNS) topic. Use an AWS Lambda function that Amazon SNS invokes to write data from the topic to the database.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
toyaji
1 month, 3 weeks ago
Selected Answer: C
You need to also use AWS RDS Proxy becuase lambda will increase parallel and it will cause connection error
upvoted 3 times
...
mwwt2022
9 months, 3 weeks ago
Selected Answer: C
//minimize the number of connections to the database and must ensure that data is not lost during periods of heavy traffic// I go for C
upvoted 2 times
...
Ruffyit
11 months ago
Decouple the API and the DB with Amazon Simple Queue Service (Amazon SQS) queue.
upvoted 2 times
...
oluolope
12 months ago
https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-lambda-function-trigger.html SQS can invoke lambda indeed. Initially I picked D because I wasn't sure it was possible but , this article shows it is. It makes this question even more confusing for me as it is also possible to trigger lambda from SNS: https://docs.aws.amazon.com/sns/latest/dg/sns-lambda-as-subscriber.html I don't know which option between C and D makes more sense. I still have a preference for D as it seems less hacky than C.
upvoted 1 times
...
TariqKipkemei
1 year ago
Selected Answer: C
Decouple the API and the DB with Amazon Simple Queue Service (Amazon SQS) queue.
upvoted 2 times
...
Guru4Cloud
1 year, 1 month ago
Selected Answer: C
C. Modify the API to write incoming data to an Amazon Simple Queue Service (Amazon SQS) queue. Use an AWS Lambda function that Amazon SQS invokes to write data from the queue to the database.
upvoted 1 times
...
cookieMr
1 year, 3 months ago
Selected Answer: C
By leveraging SQS as a buffer and using an Lambda to process and write data from the queue to the database, the solution provides scalability, decoupling, and reliability while minimizing the number of connections to the database. This approach handles fluctuations in traffic and ensures data integrity during high-traffic periods. A. Increasing the size of the DB instance may provide more memory, but it does not address the issue of handling high write traffic efficiently and minimizing connections to the database. B. Modifying the DB instance to be a Multi-AZ instance and writing to all active instances can improve availability but does not address the issue of efficiently handling high write traffic and minimizing connections to the database. D. Using SNS and an Lambda can provide decoupling and scalability, but it is not suitable for handling heavy write traffic efficiently and minimizing connections to the database.
upvoted 2 times
...
Moccorso
1 year, 3 months ago
I think D, "Use an AWS Lambda function that Amazon SQS invokes to write data from the queue to the database" SQS can't invokes Lambda becouse SQS is pull.
upvoted 3 times
pentium75
9 months, 3 weeks ago
"Invoke a Lambda function from an Amazon SQS trigger" https://docs.aws.amazon.com/lambda/latest/dg/example_serverless_SQS_Lambda_section.html
upvoted 1 times
...
...
shivamrulz
1 year, 4 months ago
Why not B
upvoted 2 times
pentium75
9 months, 3 weeks ago
a) You can't write to multiple instances at the same time b) If you could, it would probably not increase performance c) if it would increase performance then it would probably double performance, which might not be enough Decoupling is the way to go - let clients submit data via APIs, and write it asynchronously to the database. Don't let clients wait until data has been written.
upvoted 2 times
...
...
Russs99
1 year, 7 months ago
C is in deed the correct answer for the use case
upvoted 1 times
...
kaushald
1 year, 7 months ago
Selected Answer: C
C is correct
upvoted 1 times
...
Steve_4542636
1 year, 7 months ago
Selected Answer: C
Cis correct
upvoted 1 times
...
maciekmaciek
1 year, 8 months ago
Selected Answer: C
C looks ok
upvoted 1 times
...
iamjaehyuk
1 year, 8 months ago
why not D?
upvoted 1 times
...
Parsons
1 year, 9 months ago
Selected Answer: C
C is correct.
upvoted 2 times
...
mhmt4438
1 year, 9 months ago
Selected Answer: C
C. Modify the API to write incoming data to an Amazon Simple Queue Service (Amazon SQS) queue. Use an AWS Lambda function that Amazon SQS invokes to write data from the queue to the database. To minimize the number of connections to the database and ensure that data is not lost during periods of heavy traffic, the company should modify the API to write incoming data to an Amazon SQS queue. The use of a queue will act as a buffer between the API and the database, reducing the number of connections to the database. And the use of an AWS Lambda function invoked by SQS will provide a more flexible way of handling the data and processing it. This way, the function will process the data from the queue and insert it into the database in a more controlled way.
upvoted 2 times
Aninina
1 year, 9 months ago
Did you use ChatGPT?
upvoted 6 times
Nguyen25183
1 year, 7 months ago
same question as you :D
upvoted 1 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 ...