AWS Certified Solutions Architect – Professional — Question 368
An organization is setting up a web application with the JEE stack. The application uses the JBoss app server and MySQL DB. The application has a logging module which logs all the activities whenever a business function of the JEE application is called. The logging activity takes some time due to the large size of the log file.
If the application wants to setup a scalable infrastructure which of the below mentioned options will help achieve this setup?
Answer options
- A. Host the log files on EBS with PIOPS which will have higher I/O.
- B. Host logging and the app server on separate servers such that they are both in the same zone.
- C. Host logging and the app server on the same instance so that the network latency will be shorter.
- D. Create a separate module for logging and using SQS compartmentalize the module such that all calls to logging are asynchronous.
Correct answer: D
Explanation
Decoupling the logging module using Amazon SQS allows the application to handle logging requests asynchronously, preventing the slow write operations from blocking the main application's performance and enabling independent scaling. While options like Provisioned IOPS (A) can improve disk performance, they do not resolve the synchronous architectural bottleneck. Options B and C fail to provide a scalable, decoupled architecture suitable for handling high-volume traffic.