For user-owned profile images requiring privacy, low upload latency, and fast display on login, which storage configuration should they use?
Choose an answer
Tap an option to check your answer.
Correct answer: Store image files in a Google Cloud Storage bucket. Use Google Cloud Datastore to maintain metadata that maps each customer's ID and their image files..
Why this is the answer
Storing image files in a Google Cloud Storage bucket is ideal for low upload latency and fast display, as Cloud Storage is an object storage service optimized for serving static content globally. It offers high availability, durability, and scalability. Using Google Cloud Datastore (now part of Firestore in Datastore mode) for metadata is appropriate because it's a NoSQL document database designed for high-performance, highly scalable applications, making it efficient for mapping customer IDs to image file paths. The option to add custom metadata to Cloud Storage images is less efficient for querying and managing relationships between users and multiple images compared to a dedicated database. Distributed file systems are generally more complex to manage and scale for this use case compared to managed services like Cloud Storage. While a Cloud SQL database could store metadata, Datastore is often preferred for its scalability and flexibility with unstructured data like image metadata, especially for large numbers of users and images.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed