Quiz – Applications in the Cloud :Google Cloud Fundamentals: Core Infrastructure (Preparing for Google Cloud Certification: Cloud Architect Professional Certificate) Answers 2025
β Question 1 β Best use case for Cloud Run
Which scenario is best suited for using Cloud Run instead of Cloud Run functions?
β Resizing images on demand when requested by a user through a web interface.
β Generating thumbnails for images uploaded to a Cloud Storage bucket.
π© Hosting a dynamic web application that allows users to upload and share photos.
β Sending an email notification whenever a new document is added to a folder in Cloud Storage.
Explanation:
Cloud Run is ideal for full web applications, containers, custom runtimes, and long-running or HTTP-driven services.
Cloud Run functions are for small event-driven tasks like triggers from Storage, Pub/Sub, etc.
β Question 2 β Cloud Run Functions (select 3)
Cloud Run functions:
π© Can be used to extend Cloud services.
π© Is a scalable functions-as-a-service platform.
β Can only be invoked by sending HTTP requests.
β Require servers or VMs to be provisioned.
π© Is integrated with Cloud Logging.
Explanation:
-
Cloud Run functions can be triggered by events, not only HTTP β so that option is β.
-
No servers or VMs are needed (serverless).
-
They integrate with Cloud Logging automatically.
-
They extend Cloud services (e.g., react to Storage/PubSub events).
β Question 3 β Why use Cloud Run functions?
β Their application has a legacy monolithic structure they want to split into microservices.
β Cloud Run functions is the primary way to run C++ applications in Google Cloud.
β Cloud Run functions is a free service for hosting compute operations.
π© Their application contains event-driven code that they don’t want to provision compute resources for.
Explanation:
Cloud Run functions are best for event-driven, serverless execution where you donβt want to manage servers (e.g., triggers from Storage, Pub/Sub).
π§Ύ Summary Table
| Q# | Correct Answer(s) | Key Concept |
|---|---|---|
| 1 | Hosting a dynamic web application | Cloud Run = full web apps / containers |
| 2 | Extend Cloud services, FaaS platform, Integrated with Cloud Logging | Cloud Run functions = serverless event-driven |
| 3 | Event-driven code without provisioning compute | Functions = event triggers, no servers |