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
- A. Revise the request content in the application code.
- B. Use the AWS SDK for Java to interact with AWS APIs.
- C. Scale out the application so that more instances of the application are running.
- D. Add additional logging to the application code.
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.