ASSOCIATE-CLOUD-ENGINEER · Question #340
A company wants to build an application that stores images in a Cloud Storage bucket and wants to generate thumbnails as well as resize the images. They want to use a google managed service that can…
The correct answer is C. Cloud Functions. For an application that processes images from Cloud Storage, Cloud Functions is the recommended Google-managed service because it automatically scales down to zero, incurs costs only when executed, and can be triggered directly by Cloud Storage events with minimal operational…
Question
Options
- AGoogle Compute Engine
- BGoogle App Engine
- CCloud Functions
- DGoogle Kubernetes Engine
How the community answered
(47 responses)- A2% (1)
- B6% (3)
- C89% (42)
- D2% (1)
Why each option
For an application that processes images from Cloud Storage, Cloud Functions is the recommended Google-managed service because it automatically scales down to zero, incurs costs only when executed, and can be triggered directly by Cloud Storage events with minimal operational effort.
Google Compute Engine requires manual provisioning and management of virtual machines, does not automatically scale to zero, and demands more operational effort.
Google App Engine, while scalable, may not scale down to zero as effectively or efficiently as Cloud Functions for specific event-driven background tasks, and might require more configuration.
Cloud Functions are a serverless compute service that automatically scales based on demand, including scaling down to zero when idle, aligning with the requirement for minimal effort and cost optimization. They can be directly triggered by Cloud Storage events, making them ideal for event-driven image processing tasks like thumbnail generation and resizing without managing any infrastructure.
Google Kubernetes Engine requires significant operational overhead for cluster management and configuration, and scaling to zero for individual workloads is more complex than with Cloud Functions.
Concept tested: Serverless functions for event-driven processing and scaling
Source: https://cloud.google.com/functions/docs/concepts/overview
Topics
Community Discussion
No community discussion yet for this question.