Medium1 markMultiple Choice
Domain 2.3: DecouplingResilienceSQSS3Decoupling

AWS SAA-C03 · Question 26 · Domain 2.3: Decoupling

A media company has an application that processes video files. Users upload videos to an Amazon S3 bucket. The processing takes several minutes per video and is handled by a fleet of Amazon EC2 instances. The company wants to decouple the upload process from the video processing to ensure the system remains responsive even during traffic spikes. <br/><br/>What is the MOST resilient way to architect this?

Answer options:

A.

Configure S3 Event Notifications to invoke an AWS Lambda function that processes the video.

B.

Configure S3 Event Notifications to send a message to an Amazon SQS queue. Configure an Auto Scaling group of EC2 instances to poll the queue and process the videos.

C.

Configure S3 Event Notifications to send a message to an Amazon SNS topic. Have the EC2 instances subscribe to the topic.

D.

Have the EC2 instances continuously poll the S3 bucket for new objects using the ListObjects API.

How to approach this question

Identify the standard AWS pattern for decoupling asynchronous work queues.

Full Answer

B.Configure S3 Event Notifications to send a message to an Amazon SQS queue. Configure an Auto Scaling group of EC2 instances to poll the queue and process the videos.✓ Correct
Configure S3 Event Notifications to send a message to an Amazon SQS queue. Configure an Auto Scaling group of EC2 instances to poll the queue and process the videos.
Using Amazon SQS to decouple components is a best practice. S3 can send an event to SQS when a file is uploaded. The EC2 instances can pull messages from the queue at their own pace, ensuring no tasks are lost during traffic spikes.

Common mistakes

Choosing Lambda for long-running video processing tasks.

Practice the full AWS SAA-C03 Practice Exam 4

65 questions · hints · full answers · grading

More questions from this exam