Exam: Cloud Digital Leader 0 Likes

You are a program manager for a team of developers who are building an (Digital Leader)

Updated on 05/24/2024

You are a program manager for a team of developers who are building an event-driven application to allow users to follow one another's activities in the app. Each time a user adds himself as a follower of another user, a write occurs in the real-time database.
The developers will develop a lightweight piece of code that can respond to database writes and generate a notification to let the appropriate users know that they have gained new followers. The code should integrate with other cloud services such as Pub/Sub, Firebase, and Cloud APIs to streamline the orchestration process. The application requires a platform that automatically manages underlying infrastructure and scales to zero when there is no activity.

Which primary compute resource should your developers select, given these requirements?

A) Google Kubernetes Engine.
B) Cloud Functions.
C) App Engine flexible environment.
D) Compute Engine.


Solution

Correct answer: B) Cloud Functions.
For an event-driven application with the need to respond to database writes and generate notifications, and with the requirement for automatic management of underlying infrastructure and scaling to zero during inactivity, Cloud Functions would be a suitable choice.

Cloud Functions are serverless functions that automatically scale based on demand and only execute when triggered by an event, such as a database write in this case. They are designed for event-driven scenarios, provide seamless integration with other cloud services like Pub/Sub, Firebase, and Cloud APIs, and allow developers to focus on writing the code without managing the infrastructure.

Options like Google Kubernetes Engine (A) and Compute Engine (D) involve more manual management of infrastructure and may be overkill for a lightweight, event-driven application. App Engine flexible environment (C) is a Platform as a Service (PaaS) offering, but Cloud Functions are more suited for event-driven, serverless computing scenarios.

Category: Innovating with data and Google Cloud

There are no comments yet.

Authentication required

You must log in to post a comment.
Log in to like this solution

Log in

Support us!
Subscribe Now

Cookies Consent

We use cookies to enhance your browsing experience, serve personalized ads or content, and analyze our traffic. By clicking "Accept All" you consent to our use of cookies. Privacy Policy.