Prepare for the Google Cloud Digital Leader Exam. Study with comprehensive questions and in-depth explanations. Boost your confidence and skills to ace your exam!

Practice this question and more.


An organization has a small app that sends a mobile notification to a customer whenever a new order is placed. They require a simple, event-driven, serverless service. Which service should they choose?

  1. Cloud Functions

  2. Kubernetes Engine

  3. Cloud Run

  4. Compute Engine

The correct answer is: Cloud Functions

For an organization that requires a simple, event-driven, serverless service to send mobile notifications upon new orders, Cloud Functions is the ideal choice. This service is designed specifically for executing code in response to events, making it a great fit for the use case presented. It allows developers to run their code without managing the underlying infrastructure, thus streamlining the development process. Cloud Functions enables automatic scaling depending on the number of incoming events, ensuring that it can handle varying loads without needing any manual intervention. In this scenario, when a new order event occurs, Cloud Functions can be triggered to send a notification seamlessly. The other options, while reliable services in their own right, do not align as well with the need for a simple, serverless, event-driven architecture. Kubernetes Engine, for example, is more suited for deploying containerized applications where management of clusters is necessary, which adds complexity that isn't required for this scenario. Cloud Run serves containerized applications but involves somewhat more overhead in terms of container management. Compute Engine requires provisioning and managing virtual machines, making it the least ideal choice for a lightweight, event-driven notification service. Thus, Cloud Functions stands out as the best option for responding to specific events while remaining serverless.