Google Professional Cloud Database Engineer Question 82
Single answerGoogle Cloud PlatformYour team is building a document management system that needs to store a large volume of semi-structured and unstructured data, such as JSON files, PDFs, and images. The system must provide low-latency access, scalability, and support for flexible querying of metadata. Which Google Cloud database service should you choose?
- A
Cloud Spanner
- B
BigQuery
- C
Firestore
- D
Cloud Storage
Show answer and explanation
Correct answer: C
Explanation
Firestore is the best choice for this scenario because it is a NoSQL database optimized for semi-structured data like JSON, provides low-latency access, and supports flexible querying of metadata. While Cloud Storage could handle unstructured data, it lacks querying capabilities. Cloud Spanner and BigQuery are designed for structured and analytical workloads, respectively, and are not suitable for this use case.
- A. Incorrect.
Cloud Spanner is a relational database designed for structured data and transactional workloads. It is not optimized for semi-structured or unstructured data.
- B. Incorrect.
BigQuery is an analytical data warehouse designed for large-scale analytics workloads. While it can handle semi-structured data like JSON, it's not suited for low-latency access or unstructured data like images.
- C. Correct.
Firestore is a NoSQL document database optimized for semi-structured data, such as JSON, and provides low-latency access. It also supports flexible querying, making it a good choice for the given requirements.
- D. Incorrect.
Cloud Storage is an object storage service ideal for storing unstructured data like images and PDFs. However, it does not provide querying capabilities for metadata, making it unsuitable for this scenario.