Google Professional Cloud Developer Question 394
Select 2Google Cloud PlatformYou are developing a serverless application on Google Cloud that processes images uploaded by users. The application must store the uploaded images, metadata, and processed results efficiently while ensuring low latency for retrieval. Which combination of Google Cloud services should you use to meet these requirements?
- A
Use Cloud Storage to store the uploaded images and processed results, and Firestore to store metadata.
- B
Use Firestore to store both the images and metadata, and Cloud Functions to manage processing.
- C
Use Cloud SQL to store the metadata and Cloud Storage for the images and processed results.
- D
Use BigQuery to store metadata and processed results, and Cloud Storage for the images.
Show answer and explanation
Correct answers: A, C
Explanation
To efficiently integrate applications with data and storage services in Google Cloud, you should leverage the strengths of each service. Cloud Storage is ideal for storing binary objects like images and processed results, while Firestore and Cloud SQL are well-suited for structured metadata, depending on the use case. BigQuery, while powerful, is not intended for transactional or real-time workloads.
- A. Correct.
Correct: Cloud Storage is best suited for storing large binary objects like images, while Firestore is optimized for structured data such as metadata, providing low-latency retrieval and scalability.
- B. Incorrect.
Incorrect: Firestore is not designed for storing large binary files like images. Using Firestore for images would lead to inefficiencies and increased costs.
- C. Correct.
Correct: Cloud SQL can store structured metadata and works well for transactional data, while Cloud Storage is designed to handle large binary objects such as images and processed results.
- D. Incorrect.
Incorrect: BigQuery is designed for analytical workloads and large-scale querying, not for transactional metadata storage or storing binary files like images.