154k views
0 votes
A fleet of Amazon EC2 instances process videos that users upload. Which function can Amazon SQS perform in this application?

A. An SQS queue receives messages from the application and notifies all available EC2 instances that videos are available.
B. The application places job messages in an SQS queue. EC2 instances with available processing capacity pull the next job message from the queue.
C. The application writes the video files to an SQS queue. EC2 instances with available processing capacity pull the next video from the queue
D. EC2 instances put edited video files in an SQS queue. The application retrieves the videos from the queue.

1 Answer

0 votes

Final answer:

Amazon SQS can perform the function described in option B: The application places job messages in an SQS queue and EC2 instances with available processing capacity pull the next job message from the queue.

Step-by-step explanation:

In this application, Amazon SQS can perform the function described in option B: The application places job messages in an SQS queue and EC2 instances with available processing capacity pull the next job message from the queue. SQS (Simple Queue Service) is a message queuing service provided by Amazon Web Services (AWS) that enables decoupling of the components in a distributed system. It allows for reliable and asynchronous communication between different parts of an application.

Using SQS in this scenario, when users upload videos, the application can place job messages in an SQS queue. Each message in the queue represents a video to be processed. EC2 instances that have processing capacity can then pull the next job message from the queue and process the corresponding video. This ensures that the processing workload is distributed among available EC2 instances.

By using SQS in this way, the application can handle the processing of videos in a scalable and efficient manner. It allows for decoupling of the video processing component from the uploading component, which enables fault tolerance, scalability, and simplified architecture.

User Stgtscc
by
8.1k points