Google Cloud Professional Cloud Architect — Question 63
You need to ensure reliability for your application and operations by supporting reliable task scheduling for compute on GCP. Leveraging Google best practices, what should you do?
Answer options
- A. Using the Cron service provided by App Engine, publish messages directly to a message-processing utility service running on Compute Engine instances.
- B. Using the Cron service provided by App Engine, publish messages to a Cloud Pub/Sub topic. Subscribe to that topic using a message-processing utility service running on Compute Engine instances.
- C. Using the Cron service provided by Google Kubernetes Engine (GKE), publish messages directly to a message-processing utility service running on Compute Engine instances.
- D. Using the Cron service provided by GKE, publish messages to a Cloud Pub/Sub topic. Subscribe to that topic using a message-processing utility service running on Compute Engine instances.
Correct answer: B
Explanation
Option B is correct because it uses the Cron service from App Engine to publish messages to a Cloud Pub/Sub topic, which provides reliable messaging and decouples the task scheduling from the message processing. The other options either do not utilize Cloud Pub/Sub, which is crucial for reliability, or use GKE instead of App Engine, which is not aligned with the best practices for this scenario.