exam questions

Exam AWS DevOps Engineer Professional All Questions

View all questions & answers for the AWS DevOps Engineer Professional exam

Exam AWS DevOps Engineer Professional topic 1 question 67 discussion

Exam question from Amazon's AWS DevOps Engineer Professional
Question #: 67
Topic #: 1
[All AWS DevOps Engineer Professional Questions]

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?

  • A. Create an Amazon SQS queue and send the tasks that should be decoupled from the Elastic Beanstalk web server environment to the SQS queue. Create a fleet of EC2 instances under an Auto Scaling group. Use an AMI that contains the application to process the asynchronous tasks, configure the application to listen for messages within the SQS queue, and create periodic tasks by placing those into the cron in the operating system. Create an environment variable within the Elastic Beanstalk environment with a value pointing to the SQS queue endpoint.
  • B. Create a second Elastic Beanstalk worker tier environment and deploy the application to process the asynchronous tasks there. Send the tasks that should be decoupled from the original Elastic Beanstalk web server environment to the auto-generated Amazon SQS queue by the Elastic Beanstalk worker environment. Place a cron.yaml file within the root of the application source bundle for the worker environment for periodic tasks. Use environment links to link the web server environment with the worker environment.
  • C. Create a second Elastic Beanstalk web server tier environment and deploy the application to process the asynchronous tasks. Send the tasks that should be decoupled from the original Elastic Beanstalk web server to the auto-generated Amazon SQS queue by the second Elastic Beanstalk web server tier environment. Place a cron.yaml file within the root of the application source bundle for the second web server tier environment with the necessary periodic tasks. Use environment links to link both web server environments.
  • D. Create an Amazon SQS queue and send the tasks that should be decoupled from the Elastic Beanstalk web server environment to the SQS queue. Create a fleet of EC2 instances under an Auto Scaling group. Install and configure the application to listen for messages within the SQS queue from UserData and create periodic tasks by placing those into the cron in the operating system. Create an environment variable within the Elastic Beanstalk web server environment with a value pointing to the SQS queue endpoint.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Sunil86rbk
Highly Voted 3 years, 10 months ago
B https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features-managing-env-tiers.html
upvoted 16 times
...
Bulti
Most Recent 2 years, 6 months ago
Answer is B because it uses the built in capability of ElasticBeanStalk to create an integrated solution in a timely manner.
upvoted 3 times
...
nqthien041292
3 years ago
Selected Answer: B
Vote B
upvoted 1 times
...
jackdryan
3 years, 8 months ago
I'll go with B
upvoted 4 times
...
ChauPhan
3 years, 8 months ago
B looks right. https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/concepts-worker.html
upvoted 4 times
...
yassu
3 years, 9 months ago
B is correct
upvoted 1 times
...
xaocho
3 years, 9 months ago
It is B
upvoted 1 times
...
un
3 years, 9 months ago
B is the right answer ... Link provided by Sunil86rbk has the details
upvoted 4 times
...
ppshein
3 years, 9 months ago
it should be B, because of worker.
upvoted 2 times
...
amzngenius
3 years, 9 months ago
B: decouple long-running tasks and executed asynchronously
upvoted 2 times
...
Arragon
3 years, 10 months ago
B is right since you need the SQS function which is available in the worker tier. https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/concepts.html
upvoted 2 times
...
BeastX
3 years, 10 months ago
B looks right for me
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...