Google Cloud Professional Cloud Developer — Question 9
Your existing application keeps user state information in a single MySQL database. This state information is very user-specific and depends heavily on how long a user has been using an application. The MySQL database is causing challenges to maintain and enhance the schema for various users.
Which storage option should you choose?
Answer options
- A. Cloud SQL
- B. Cloud Storage
- C. Cloud Spanner
- D. Cloud Datastore/Firestore
Correct answer: D
Explanation
Cloud Datastore/Firestore is designed for scalability and can handle user-specific data more efficiently, making it suitable for applications with varied user states. In contrast, Cloud SQL is relational and may struggle with schema changes, Cloud Storage is intended for unstructured data, and Cloud Spanner is more suited for large, consistent workloads rather than highly variable user-specific data.