nerdexam
Google

PROFESSIONAL-CLOUD-DATABASE-ENGINEER · Question #155

Your company is launching a gaming application that uses a Firestore database. You need to identify an easy-to-manage and cost-effective solution to automate the scheduling of Firestore data…

The correct answer is C. Use Cloud Scheduler to trigger a Cloud Function that executes the Firestore export process. Using Cloud Scheduler to trigger a Cloud Function that executes the Firestore export is the correct choice because it is serverless (no infrastructure to manage), event-driven, and cost-effective - you pay only for execution time rather than a continuously running VM. Cloud…

Managing Database Operations

Question

Your company is launching a gaming application that uses a Firestore database. You need to identify an easy-to-manage and cost-effective solution to automate the scheduling of Firestore data exports. What should you do-

Options

  • ACreate a new Compute Engine, and set up a cron Job to run the gcloud firestore export
  • BUse Dataflow to create a custom pipeline to extract data from Firestore, transform it into the
  • CUse Cloud Scheduler to trigger a Cloud Function that executes the Firestore export process.
  • DUse the Firebase Admin SDK to programmatically schedule and manage exports.

How the community answered

(29 responses)
  • A
    7% (2)
  • B
    14% (4)
  • C
    76% (22)
  • D
    3% (1)

Explanation

Using Cloud Scheduler to trigger a Cloud Function that executes the Firestore export is the correct choice because it is serverless (no infrastructure to manage), event-driven, and cost-effective - you pay only for execution time rather than a continuously running VM. Cloud Scheduler provides reliable cron-based scheduling and Cloud Functions handle the gcloud firestore export API call. Compute Engine with a cron job (A) requires provisioning, patching, and managing a VM 24/7 just to run a periodic script - operationally expensive and not cost-effective. Dataflow (B) is a heavy-duty batch/stream processing engine suited for large-scale transformations; it is over-engineered and costly for a simple scheduled export. The Firebase Admin SDK (D) provides programmatic access to Firestore data but does not have a built-in scheduling mechanism - you would still need a compute host and scheduler to invoke it, adding complexity without solving the automation problem.

Topics

#Firestore Data Management#Cloud Scheduler#Cloud Functions#Data Export Automation

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DATABASE-ENGINEER Practice