AWS Certified Developer Associate DVA-C02 Practice Question
A developer is building an application that allows users to upload images for processing. The processing can take several minutes, and traffic is unpredictable. The application must remain responsive, allowing users to submit images without waiting for the processing to complete. Which approach BEST meets these requirements?
Decouple the submission process from the image processing by using an Amazon SQS queue. The application can add messages to the queue and respond to the user immediately.
Use a synchronous API Gateway integration with an AWS Lambda function to process the image immediately upon upload.
Store the uploaded images in an Amazon S3 bucket and have the user's browser poll an API endpoint until the processing is finished.
Deploy the image processing logic on an Amazon EC2 instance and have the web server make a direct, blocking call to the processing service.
The best approach is to decouple the image submission from the image processing using an Amazon SQS queue. When a user submits an image, the application front end can add a message to the SQS queue and immediately return a success response to the user. This makes the application highly responsive. A separate backend service can then poll the queue and process the messages asynchronously. This pattern is highly scalable and resilient, as the queue acts as a buffer during traffic spikes, ensuring that no requests are lost.
A synchronous API Gateway integration with AWS Lambda has a maximum timeout of 29 seconds, making it unsuitable for tasks that can take several minutes. Client-side polling creates unnecessary traffic and is less efficient than a push-based or queue-based event model. A direct, blocking call to a processing service on an EC2 instance represents a tightly coupled architecture that does not scale well and would lead to poor user experience.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the asynchronous interaction design pattern?
Open an interactive chat with Bash
How does Amazon SQS help implement asynchronous processing?
Open an interactive chat with Bash
What is the difference between synchronous and asynchronous design patterns?
Open an interactive chat with Bash
AWS Certified Developer Associate DVA-C02
Development with AWS Services
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .