Google Professional Cloud Developer Question 151
Single answerGoogle Cloud PlatformYou are developing a cloud-native application that requires low-latency access to structured data, high availability, and scalability. The data includes user profiles, preferences, and session information, which need to be stored persistently and queried frequently. Which Google Cloud storage solution should you choose?
- A
Cloud SQL
- B
Cloud Spanner
- C
Cloud Storage
- D
Firestore
Show answer and explanation
Correct answer: B
Explanation
The application requires a solution that provides low-latency access to structured data, high availability, and scalability. Cloud Spanner is specifically designed to meet these requirements, as it offers strong consistency, global distribution, and seamless scalability for relational data. Other options like Cloud SQL, Cloud Storage, and Firestore either lack the required scalability or do not align with the structured data and relational aspects of the workload.
- A. Incorrect.
Cloud SQL is suitable for relational database needs but may not scale as seamlessly for global, high availability applications compared to Cloud Spanner.
- B. Correct.
Cloud Spanner is designed for globally distributed, highly available, and scalable relational data needs, making it the best fit for the described requirements.
- C. Incorrect.
Cloud Storage is an object storage service and is not optimized for low-latency or structured data queries.
- D. Incorrect.
Firestore is a NoSQL document database suitable for hierarchical or semi-structured data; however, it is not designed for strong relational capabilities like Cloud Spanner.