AWS Certified DevOps Engineer – Professional — Question 12

An e-commerce company is running a web application in an AWS Elastic Beanstalk environment. In recent months, the average load of the Amazon EC2 instances has been increased to handle more traffic.
The company would like to improve the scalability and resilience of the environment. The Development team has been asked to decouple long-running tasks from the environment if the tasks can be executed asynchronously. Examples of these tasks include confirmation emails when users are registered to the platform, and processing images or videos. Also, some of the periodic tasks that are currently running within the web server should be offloaded.
What is the MOST time-efficient and integrated way to achieve this?

Answer options

Correct answer: B

Explanation

The correct option is B, which involves creating a second Elastic Beanstalk worker tier environment dedicated to processing asynchronous tasks, leveraging the built-in integration with Amazon SQS. This approach is optimal as it cleanly separates the workloads and simplifies management, unlike the other options which either overcomplicate the architecture or do not utilize the worker tier effectively.