Google Cloud Professional Cloud Database Engineer — Question 133
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?
Answer options
- A. Create a new Compute Engine, and set up a cron Job to run the gcloud firestore export command.
- B. Use Dataflow to create a custom pipeline to extract data from Firestore, transform it into the desired format, and load it into a Cloud Storage bucket at regular intervals.
- C. Use Cloud Scheduler to trigger a Cloud Function that executes the Firestore export process.
- D. Use the Firebase Admin SDK to programmatically schedule and manage exports.
Correct answer: C
Explanation
The correct answer is C because using Cloud Scheduler to trigger a Cloud Function provides an automated and managed way to perform the Firestore export at scheduled intervals. Option A requires manual intervention and setup of a Compute Engine instance, which is less efficient. Option B, while a valid approach, introduces complexity and potential costs associated with Dataflow. Option D does not provide a scheduling capability on its own, making it less suitable for the requirement.