Google Professional Cloud Developer Question 189
Single answerGoogle Cloud PlatformYou are designing a serverless application on Google Cloud that processes large volumes of user data. The application requires low-latency access for frequently queried data and cost-effective storage for data that is queried less often. Which data access pattern and storage combination would you choose?
- A
Use Cloud Firestore for frequently queried data and Cloud Storage for infrequently queried data.
- B
Use BigQuery for frequently queried data and Cloud SQL for infrequently queried data.
- C
Use Cloud Spanner for frequently queried data and Memorystore for infrequently queried data.
- D
Use Cloud SQL for all data, managing indexes to optimize for both access patterns.
Show answer and explanation
Correct answer: A
Explanation
The correct answer leverages the strengths of both Cloud Firestore and Cloud Storage. Cloud Firestore provides efficient, low-latency access to frequently queried data, making it ideal for real-time applications. Cloud Storage, on the other hand, is highly cost-effective for storing large volumes of infrequently accessed data, such as archives or backups. This combination aligns well with the application's requirements and follows best practices for data access patterns in Google Cloud.
- A. Correct.
Cloud Firestore is ideal for low-latency access to frequently queried data due to its NoSQL, document-oriented nature, and scales seamlessly. Cloud Storage is cost-effective and well-suited for storing large volumes of infrequently accessed unstructured data.
- B. Incorrect.
BigQuery is optimized for analytical queries on large datasets rather than low-latency access, and Cloud SQL is not well-suited for large-scale storage of infrequently accessed data.
- C. Incorrect.
Cloud Spanner provides global consistency and high availability but is more expensive and not optimized for low-latency access to frequently queried data. Memorystore is used as a caching layer, not for primary storage of infrequently queried data.
- D. Incorrect.
Cloud SQL is a relational database that can handle structured data, but it is not optimized for the combination of low-latency access and cost-effective storage for infrequently accessed data.