AWS Elastic Beanstalk Worker Environment Requirements

Worker Environment Additional Requirement

Prev Question Next Question

Question

Your team is planning to deploy an application that processes periodic tasks using the worker environment on AWS Elastic Beanstalk.

Which of the following is an additional requirement for a worker environment in AWS Elastic Beanstalk?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Answer - D.

The AWS Documentation mentions the following.

When you use the AWS Elastic Beanstalk console to deploy a new application or an application version, you'll need to upload a source bundle.

Your source bundle must meet the following requirements.

Consist of a single ZIP file or WAR file (you can include multiple WAR files inside your ZIP file).

Not exceed 512 MB.Not include a parent folder or top-level directory (subdirectories are fine).

If you want to deploy a worker application that processes periodic background tasks, your application source bundle must also include a cron.yaml file.

Since this is clearly mentioned in the documentation, all other options are incorrect.

For more information on application source bundles in Elastic beanstalk, please refer to the below URL-

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/applications-sourcebundle.html

Sure, I'd be happy to explain!

AWS Elastic Beanstalk provides a platform for deploying and scaling web applications and services. It supports several types of environments, including web server environments and worker environments. Worker environments are used to process background tasks or jobs, often using a message queue like Amazon Simple Queue Service (SQS).

When deploying an application to a worker environment on Elastic Beanstalk, there are a few requirements to keep in mind. Let's go through each of the answer options and see which one is the correct additional requirement for a worker environment:

A. Ensure that the application is uploaded as a zip file. This is not an additional requirement specific to worker environments on Elastic Beanstalk. All applications deployed to Elastic Beanstalk, regardless of the environment type, must be uploaded as a zip file.

B. Ensure that the application size does not exceed 512 MB. This is also not an additional requirement specific to worker environments on Elastic Beanstalk. All applications deployed to Elastic Beanstalk, regardless of the environment type, must comply with the platform's limits for storage size and other resources.

C. Ensure that the application does not include a parent level folder. This is not an additional requirement specific to worker environments on Elastic Beanstalk either. All applications deployed to Elastic Beanstalk, regardless of the environment type, must follow certain guidelines for application packaging and directory structure. One of these guidelines is that the root of the application package should not contain a parent level folder.

D. Ensure that the application contains a file called cron.yaml. This is the correct answer! A worker environment on Elastic Beanstalk requires an additional configuration file called cron.yaml. This file defines scheduled tasks (also known as cron jobs) that the worker environment should run at specific intervals. These tasks can be used to perform periodic or recurring tasks, such as database backups, log rotation, or other maintenance tasks.

In summary, when deploying an application to a worker environment on Elastic Beanstalk, you need to ensure that it includes a file called cron.yaml, which defines scheduled tasks that the environment should run at specific intervals. The other answer options (A, B, and C) are not additional requirements specific to worker environments, but rather general requirements for all applications deployed to Elastic Beanstalk.