AWS Certified Developer – Associate — Question 59

A developer has created a Java application that makes HTTP requests directly to AWS services. Application logging shows 5xx HTTP response codes that occur at irregular intervals. The errors are affecting users.
How should the developer update the application to improve the application's resiliency?

Answer options

Correct answer: B

Explanation

Using the AWS SDK for Java provides built-in error handling, retries, and optimized API calls, which enhance the application's resilience against errors. The other options do not directly address the underlying issue of handling AWS service interactions effectively, and simply scaling or adding logging may not resolve the 5xx errors.