QuestionQ112

Integrating applications with Google Cloud services

You are building a new ecommerce website for your company. You want customers to get a customized email notification when they submit an order. You need to configure this email service while minimizing deployment effort. What should you do?

  • A Create a Cloud Function that is triggered by a create type event in Firestore,
  • B Create an email-sending application hosted on Compute Engine that is invoked by an HTTP request.
  • C Create an email notification channel, and set up an alerting policy that is based on log metrics from a create type event.
  • D Use Pub/Sub to send an email when the orders/ API returns an HTTP response of 200 OK.
Explanation

A serverless Cloud Function can be triggered when a Firestore document is created and can run custom email-composition and sending logic. This event-driven approach avoids deploying and operating a Compute Engine-hosted application. Google Cloud documents Firestore document-created events as supported function triggers.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!