Google Professional Cloud Developer Question 187
Single answerGoogle Cloud PlatformYou are developing a cloud-native e-commerce application on Google Cloud. The application requires frequent reads of product details with occasional updates, while ensuring low latency and scalability. Which data storage solution and access pattern combination is the most appropriate for this use case?
- A
Use Firestore in Datastore mode with a query-based access pattern.
- B
Use Cloud SQL with SQL-based transactions for all read and write operations.
- C
Use Cloud Spanner with a strong consistency model for all operations.
- D
Use Cloud Bigtable with a key-based access pattern for frequent reads.
Show answer and explanation
Correct answer: D
Explanation
For an e-commerce application with frequent read operations, low latency, and scalability as key requirements, Cloud Bigtable with a key-based access pattern is the most appropriate solution. It is designed for fast operations on large datasets and offers high scalability, making it ideal for handling product detail reads efficiently.
- A. Incorrect.
Firestore in Datastore mode is optimized for hierarchical data and transactional workloads but may not be the best choice for high-frequency, low-latency reads due to its query-based model and eventual consistency for some operations.
- B. Incorrect.
Cloud SQL is designed for structured relational data with strong consistency, but it may not scale as efficiently as other solutions for high-frequency reads in a cloud-native application.
- C. Incorrect.
Cloud Spanner provides global consistency and scalability but is more suited for transactional workloads. It is less cost-effective and may introduce higher latency compared to other options for this specific use case.
- D. Correct.
Cloud Bigtable is an ideal choice for high-frequency, low-latency reads and writes with a key-based access pattern. It is highly scalable and optimized for large datasets, making it well-suited for this scenario.