nerdexam
Google

CLOUD-DIGITAL-LEADER · Question #317

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 followe

The correct answer is B. Cloud Functions. Cloud Functions is the correct choice because it is a serverless, event-driven compute platform that triggers lightweight code in response to events (such as database writes), scales automatically to zero when idle, and integrates natively with Firebase Realtime Database, Pub/Sub

Modernize infrastructure and applications

Question

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?

Options

  • AGoogle Kubernetes Engine
  • BCloud Functions
  • CApp Engine flexible environment
  • DCompute Engine

How the community answered

(24 responses)
  • A
    4% (1)
  • B
    83% (20)
  • C
    8% (2)
  • D
    4% (1)

Explanation

Cloud Functions is the correct choice because it is a serverless, event-driven compute platform that triggers lightweight code in response to events (such as database writes), scales automatically to zero when idle, and integrates natively with Firebase Realtime Database, Pub/Sub, and other Google Cloud APIs. GKE and Compute Engine require manual infrastructure management and do not scale to zero. App Engine flexible environment is container-based and always runs at least one instance, so it does not scale to zero.

Topics

#Cloud Functions#Serverless#Event-driven architecture#Google Cloud Compute

Community Discussion

No community discussion yet for this question.

Full CLOUD-DIGITAL-LEADER Practice