AWS Certified Solutions Architect – Associate (SAA-C03) — Question 336
A company has a Java application that uses Amazon Simple Queue Service (Amazon SQS) to parse messages. The application cannot parse messages that are larger than 256 KB in size. The company wants to implement a solution to give the application the ability to parse messages as large as 50 MB.
Which solution will meet these requirements with the FEWEST changes to the code?
Answer options
- A. Use the Amazon SQS Extended Client Library for Java to host messages that are larger than 256 KB in Amazon S3.
- B. Use Amazon EventBridge to post large messages from the application instead of Amazon SQS.
- C. Change the limit in Amazon SQS to handle messages that are larger than 256 KB.
- D. Store messages that are larger than 256 KB in Amazon Elastic File System (Amazon EFS). Configure Amazon SQS to reference this location in the messages.
Correct answer: A
Explanation
The Amazon SQS Extended Client Library for Java is the standard solution for handling messages larger than the 256 KB SQS limit, as it automatically offloads large payloads to Amazon S3 with minimal code changes. Changing the SQS message size limit directly is impossible because 256 KB is a hard limit. Implementing custom integrations with Amazon EFS or migrating to Amazon EventBridge would require substantial rewriting of the application's message-handling logic.