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

A company is running a serverless ecommerce application on AWS. The application uses Amazon API Gateway to invoke AWS Lambda Java functions. The Lambda functions connect to an Amazon RDS for MySQL database to store data.

During a recent sale event, a sudden increase in web traffic resulted in poor API performance and database connection failures. The company needs to implement a solution to minimize the latency for the Lambda functions and to support bursts in traffic.

Which solution will meet these requirements with the LEAST amount of change to the application?

  • A. Update the code of the Lambda functions so that the Lambda functions open the database connection outside of the function handler. Increase the provisioned concurrency for the Lambda functions.
  • B. Create an RDS Proxy endpoint for the database. Store database secrets in AWS Secrets Manager. Set up the required IAM permissions. Update the Lambda functions to connect to the RDS Proxy endpoint. Increase the provisioned concurrency for the Lambda functions.
  • C. Create a custom parameter group. Increase the value of the max_connections parameter. Associate the custom parameter group with the RDS DB instance and schedule a reboot. Increase the reserved concurrency for the Lambda functions.
  • D. Create an RDS Proxy endpoint for the database. Store database secrets in AWS Secrets Manager. Set up the required IAM permissions. Update the Lambda functions to connect to the RDS Proxy endpoint. Increase the reserved concurrency for the Lambda functions.
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
ebbff63
Highly Voted 5 months ago
Provisioned Concurrency - makes sure Lambda functions could handle traffic bursts RDS proxy endpoint - intelligently manages connections to a relational database ( Amazon RDS here) So, the answer - B
upvoted 6 times
mifune
5 months ago
yes, I would go with "Provisioned concurrency" too.
upvoted 3 times
...
...
AzureDP900
Most Recent 1 week, 1 day ago
B is correct This solution requires minimal changes to the application: • Creating an RDS Proxy endpoint and updating the Lambda functions to use it is a relatively minor modification. • Store database secrets in AWS Secrets Manager adds some complexity, but it is still a manageable change. • Increasing provisioned concurrency for the Lambda functions can help handle bursts in traffic without requiring significant changes to the application.
upvoted 1 times
...
0b43291
1 week, 2 days ago
Selected Answer: B
By leveraging RDS Proxy, AWS Secrets Manager, and increasing provisioned concurrency, Option B provides a scalable and secure solution with minimal changes to the application code, making it the most appropriate choice for meeting the requirements. The other options have drawbacks or require more significant changes to the application: Option A: While it suggests increasing provisioned concurrency, opening database connections outside the function handler may not be a best practice and could lead to connection leaks or other issues. Option C: Increasing the max_connections parameter on the RDS instance may not be sufficient to handle bursts in traffic and could potentially impact performance. Additionally, it requires scheduling a reboot, which could cause downtime. Option D: While it correctly suggests using RDS Proxy, AWS Secrets Manager, and increasing reserved concurrency, it does not mention provisioned concurrency, which is more suitable for handling bursts in traffic.
upvoted 1 times
...
JoeTromundo
1 month, 2 weeks ago
Selected Answer: B
Connection Pooling: RDS Proxy helps manage database connections efficiently by pooling and reusing connections. Reduced Latency: By reducing the overhead of establishing new connections for each Lambda invocation, RDS Proxy improves the overall performance, minimizing the latency experienced by your application during traffic bursts. Provisioned Concurrency: Increasing the provisioned concurrency for the Lambda functions ensures they are always ready to handle spikes in traffic, reducing cold start times. Seamless Integration: The integration with AWS Lambda and Secrets Manager ensures that the database credentials are securely managed. IAM Permissions: The use of AWS Identity and Access Management (IAM) permissions to control access to the proxy ensures security and compliance, making this solution secure and scalable.
upvoted 3 times
...
vip2
4 months, 3 weeks ago
Selected Answer: B
B is correct for least operation(not cost effectively) in question
upvoted 4 times
...
Helpnosense
4 months, 4 weeks ago
Selected Answer: A
A is right answer. D is wrong because the provisioned Concurrency is the term to keep pre-allocated warm instances of lambda not reserved concurrency. B missing auto scaling the db.
upvoted 2 times
tgv
3 months, 1 week ago
"LEAST amount of change to the application" B doesn't need auto-scaling if you're using RDS Proxy
upvoted 1 times
...
...
ebbff63
4 months, 4 weeks ago
Selected Answer: B
Answer B
upvoted 1 times
...
mifune
5 months ago
Selected Answer: B
If cost is a primary concern, Reserved Concurrency could be a more economical choice. Provisioned Concurrency is designed to provide more control over your Lambda function’s performance and scalability. Answer is B.
upvoted 4 times
...
Alagong
5 months ago
Selected Answer: D
Option D with "reserved concurrency" can be more cost-effective and flexible for handling sudden traffic bursts, as it ensures a minimum number of instances without the potential over-provisioning of provisioned concurrency.
upvoted 4 times
...
zapper1234
5 months ago
Sorry, meant A
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 ...