Skip to main content

DVA-C02 practice question · Deployment

A web application on AWS Elastic Beanstalk puts video-transcoding jobs in an Amazon SQS queue.

A web application on AWS Elastic Beanstalk puts video-transcoding jobs in an Amazon SQS queue. Each job can take several minutes. The developer wants the jobs processed on separate instances so that the web front end stays responsive. Which Elastic Beanstalk configuration is the best fit?

  • ACreate a worker environment whose daemon reads the queue and sends each message to the application as an HTTP POST
  • BAdd the transcoding code to the existing web server environment and raise the Auto Scaling group's maximum size
  • CAdd a cron.yaml file to the web server environment so its instances poll the queue every minute
  • DRegister the queue as a target of the web server environment's Application Load Balancer listener
Show the answer and explanation

Correct answer: A) Create a worker environment whose daemon reads the queue and sends each message to the application as an HTTP POST

Elastic Beanstalk worker environments are built for long-running background jobs. A managed SQS daemon pulls each queue message and POSTs it to the application, separate from the web server environment.

Why each option is right or wrong

  • A) Correct. Worker environments run an SQS daemon on each instance. The daemon pulls messages from the queue and sends each one as an HTTP POST to the application on localhost, keeping long-running work separate from the web server environment.
  • B) Incorrect. This still runs blocking work on the instances that serve web requests. Elastic Beanstalk recommends moving such tasks to a dedicated worker environment so the front end stays responsive.
  • C) Incorrect. cron.yaml periodic tasks are a worker-environment feature that adds messages to the worker queue on a schedule. They aren't used in web server environments to poll a queue.
  • D) Incorrect. Application Load Balancer targets are instances, IP addresses, or Lambda functions, not SQS queues. A load balancer can't pull messages from a queue.
Exam domain
Deployment · 24% of DVA-C02
Question type
Multiple choice (one answer)

Practise the full DVA-C02 exam

This question is one of a small free sample from the CertRidge DVA-C02 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with AWS; never copied from the real exam.

Worth reading: DVA-C02 cheat sheet, Lambda, DynamoDB, API Gateway, IAM and Cognito, messaging, CI/CD and X-Ray in tables, plus what DVA-C03 changes.