Examtopics

AWS Certified Developer - Associate
  • Topic 1 Question 66

    A company has a critical application on AWS. The application exposes an HTTP API by using Amazon API Gateway. The API is integrated with an AWS Lambda function. The application stores data in an Amazon RDS for MySQL DB instance with 2 virtual CPUs (vCPUs) and 64 GB of RAM.

    Customers have reported that some of the API calls return HTTP 500 Internal Server Error responses. Amazon CloudWatch Logs shows errors for “too many connections.” The errors occur during peak usage times that are unpredictable.

    The company needs to make the application resilient. The database cannot be down outside of scheduled maintenance hours.

    Which solution will meet these requirements?

    • Decrease the number of vCPUs for the DB instance. Increase the max_connections setting.

    • Use Amazon RDS Proxy to create a proxy that connects to the DB instance. Update the Lambda function to connect to the proxy.

    • Add a CloudWatch alarm that changes the DB instance class when the number of connections increases to more than 1,000.

    • Add an Amazon EventBridge rule that increases the max_connections setting of the DB instance when CPU utilization is above 75%.


    シャッフルモード