Google Cloud Professional Cloud Database Engineer — Question 35
You are running an instance of Cloud Spanner as the backend of your ecommerce website. You learn that the quality assurance (QA) team has doubled the number of their test cases. You need to create a copy of your Cloud Spanner database in a new test environment to accommodate the additional test cases. You want to follow Google-recommended practices. What should you do?
Answer options
- A. Use Cloud Functions to run the export in Avro format.
- B. Use Cloud Functions to run the export in text format.
- C. Use Dataflow to run the export in Avro format.
- D. Use Dataflow to run the export in text format.
Correct answer: C
Explanation
The correct answer is C because using Dataflow to export the database in Avro format aligns with Google-recommended practices for handling large data exports efficiently. Options A and B suggest using Cloud Functions, which are not optimized for this task, while option D suggests using Dataflow with text format, which is less suitable for complex data structures like those in Cloud Spanner.