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 212 discussion

A company runs a microservice as an AWS Lambda function. The microservice writes data to an on-premises SQL database that supports a limited number of concurrent connections. When the number of Lambda function invocations is too high, the database crashes and causes application downtime. The company has an AWS Direct Connect connection between the company's VPC and the on-premises data center. The company wants to protect the database from crashes.

Which solution will meet these requirements?

  • A. Write the data to an Amazon Simple Queue Service (Amazon SQS) queue. Configure the Lambda function to read from the queue and write to the existing database. Set a reserved concurrency limit on the Lambda function that is less than the number of connections that the database supports.
  • B. Create a new Amazon Aurora Serverless DB cluster. Use AWS DataSync to migrate the data from the existing database to Aurora Serverless. Reconfigure the Lambda function to write to Aurora.
  • C. Create an Amazon RDS Proxy DB instance. Attach the RDS Proxy DB instance to the Amazon RDS DB instance. Reconfigure the Lambda function to write to the RDS Proxy DB instance.
  • D. Write the data to an Amazon Simple Notification Service (Amazon SNS) topic. Invoke the Lambda function to write to the existing database when the topic receives new messages. Configure provisioned concurrency for the Lambda function to be equal to the number of connections that the database supports.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Just_Ninja
Highly Voted 1 year, 6 months ago
Selected Answer: A
A tricky question :) The RDS proxy sounds sexy, but it cannot be used because the database is on premise. The creative solution here is SQS. Such questions are partly about your understanding of the services and some solutions are good, even if they sound a bit strange at first :)
upvoted 9 times
...
joleneinthebackyard
Highly Voted 1 year, 3 months ago
Selected Answer: A
"The company wants to protect the database from crashes" means keep the existing one and do something that can prevent crashes, not to migrate it to another in anywhere. -> B, C out Choice between SQS and SNS is easy.
upvoted 6 times
...
bi11
Most Recent 7 months, 2 weeks ago
Selected Answer: C
C, Keyword: "supports a limited number of concurrent connections" Creating an Amazon RDS Proxy DB instance and attaching it to the Amazon RDS DB instance can help manage the database connections efficiently and prevent the database from being overwhelmed by too many connections. The RDS Proxy can pool and share connections to the database, which can reduce the number of connections that each Lambda function invocation needs to establish. This can help to prevent the database from crashing when the number of Lambda function invocations is high. Reconfiguring the Lambda function to write to the RDS Proxy DB instance instead of directly to the database can further help to protect the database from crashes. This is because the RDS Proxy can handle the connections to the database, reducing the load on the database and helping to ensure its stability.
upvoted 1 times
altonh
1 week, 5 days ago
You need to first migrate your DB to Amazon RDS, which was never mentioned as one of the steps.
upvoted 1 times
...
helloworldabc
5 months, 2 weeks ago
just A
upvoted 1 times
...
...
pk0619
9 months, 1 week ago
Selected Answer: A
You can use SQS to write data, however the phrase "reserved concurrency" is incorrect, Lambda has "provisioned concurrency"
upvoted 1 times
...
TonytheTiger
10 months ago
Selected Answer: A
Option A: AWS Tutorial on How To https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-lambda-tutorial.html
upvoted 1 times
...
career360guru
1 year, 2 months ago
Selected Answer: A
Option A
upvoted 2 times
...
ggrodskiy
1 year, 6 months ago
Correct A.
upvoted 1 times
...
NikkyDicky
1 year, 7 months ago
Selected Answer: A
Its an A
upvoted 1 times
...
javitech83
1 year, 7 months ago
Selected Answer: A
correct is A as database is on-premises
upvoted 2 times
...
bhanus
1 year, 7 months ago
Selected Answer: A
MODERATOR Please delete my previous comment. I commented about RDS proxy which is totally WRONG. Answer is A
upvoted 1 times
...
awscerts023
1 year, 7 months ago
Selected Answer: C
Will go with C , don't think the question says they need to keep the on-prem db
upvoted 1 times
...
Maria2023
1 year, 7 months ago
Selected Answer: A
apparently, we need to make the lambda "not to rush that much" and keep the connection within the limit of the on-pre DB. So if we want not to lose data while waiting we implement SQS before the lambda so it keeps the requests in the queue.
upvoted 3 times
...
SmileyCloud
1 year, 7 months ago
Selected Answer: A
C should be logical answer, that's what RDS proxy does. But, they want to keep the existing SQL on-prem and not migrate to RDS. So C and B are out. We need to throttle the connections. SNS is not designed for this. So, it's SQS (A).
upvoted 1 times
...
psyx21
1 year, 7 months ago
Selected Answer: A
Correct answer is A
upvoted 1 times
...
easytoo
1 year, 7 months ago
c-c-c-c-c-c By creating an Amazon RDS Proxy DB instance and attaching it to the existing Amazon RDS DB instance, you can protect the database from crashes caused by a high number of Lambda function invocations. The RDS Proxy acts as an intermediary between the Lambda function and the database, managing the connections and pooling them efficiently
upvoted 1 times
easytoo
1 year, 6 months ago
a-a-a-a-a-a-a-a-a
upvoted 3 times
...
...
bhanus
1 year, 7 months ago
Selected Answer: A
A is the answer. RDS proxy is meant to help with connection pooling. Amazon RDS Proxy instance maintains a pool of established connections to your RDS database instances, reducing the stress on database compute and memory resources that typically occurs when new connections are established. RDS Proxy also shares infrequently used database connections, so that fewer connections access the RDS database. This connection pooling enables your database to efficiently support a large number and frequency of application connections so that your application can scale without compromising performance.
upvoted 1 times
bhanus
1 year, 7 months ago
Answer is A. But IGNORE my above comment on RDS. The current situation is database is on-premises. So RDS proxy has nothing to do with onprem DB. so Answer is A
upvoted 2 times
...
...
emiliocb4
1 year, 7 months ago
Selected Answer: A
SNS is used for notification purpose not for data matter. we don't know how big can be the data to write. i use SQS to decuple
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago