A social media startup wants to run a photo-processing routine anytime a user uploads a file. They plan to avoid maintaining dedicated servers. Which approach is BEST for meeting these needs?
Use dedicated instances behind a gateway that remain active even when no files are uploaded
Run periodic tasks on a reserved machine checking for new files at preset intervals
Implement a pay‑per‑use environment for short‑lived routines that execute when a file is received
Deploy an autoscaling container cluster online at all times to handle photo uploads
The correct solution uses a model where code runs for brief intervals when triggered, and the provider manages the environment behind the scenes. This reduces overhead and allows developers to focus on the logic. Other options fail to offer the same reduction in manual server management, either by relying on always-on resources or running at set times rather than when a file upload occurs.
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 does 'pay‑per‑use environment' mean in this context?
Open an interactive chat with Bash
What is serverless computing, and why is it ideal for this scenario?
Open an interactive chat with Bash
How does event-driven architecture relate to the solution?