Correct Answer: A
A worker environment can be deployed with Amazon Elastic Beanstalk for long-running application tasks. Long-running jobs can be sent to the Amazon SQS queue and are further processed by Amazon EC2 instances in the worker environment tier.
In the above case, an application deployed on an Amazon EC2 instance is getting overwhelmed due to an additional non-critical process of generating zip archives. To remediate this issue in a cost-effective way, the zip process can be decoupled to a separate tier, which in turn can increase the performance of the application during busy hours.
Diagram showing typical deployment using a web server and worker environment tiers with Amazon Elastic Beanstalk.
Option B is incorrect as the ZIP archive is generally a compute-intensive process. Deploying a memory-intensive Amazon EC2 instance won’t be any value addition. Also, using memory-intensive Amazon EC2 instances will be costly. The application can be implemented by decoupling the zip process and decreasing the load on the Amazon EC2 instance.
Option C is incorrect as Amazon EC2 instances with Elastic Fabric Adaptor are more suitable for applications requiring high-level inter-node communications. In the above case, application response is getting affected due to additional non-critical processes running on the Amazon EC2 instance.
Option D is incorrect as since the issue is with overloading of the application due to processing of non-critical tasks of the zip archive, changing capacity mode at the database layer won’t help and in turn will be costly.