Google Cloud Professional Cloud Developer — Question 132

Your company needs a database solution that stores customer purchase history and meets the following requirements:
✑ Customers can query their purchase immediately after submission.
✑ Purchases can be sorted on a variety of fields.
✑ Distinct record formats can be stored at the same time.
Which storage option satisfies these requirements?

Answer options

Correct answer: A

Explanation

The correct answer is A, Firestore in Native mode, because it allows for real-time querying, sorting on different fields, and supports various record formats. Option B, Cloud Storage, is primarily for unstructured data and doesn't support immediate querying or structured sorting. Option C, Cloud SQL, is relational and may not handle diverse record formats as effectively. Option D, Firestore in Datastore mode, doesn't support global queries in the same way as Native mode does.