
Answer-first summary for fast verification
Answer: Store the Java image in Container Registry and the Maven packages in Cloud Storage.
The recommended approach by Google is to store the Java image in Container Registry and the Maven packages in Cloud Storage. This is because Container Registry is optimized for storing images, while Cloud Storage is more suitable for packages. Options A, C, and D are incorrect as they either suggest storing images in Cloud Source Repository, which is not designed for image storage, or packages in Container Registry, which is not optimized for package storage. For more details, refer to Google's documentation on storing build artifacts: https://cloud.google.com/build/docs/building/store-build-artifacts
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
Your team is developing a Java application and utilizes Cloud Build for creating application images. There's a need to store both the Java image and Maven packages in Google Cloud Platform (GCP) for deployment purposes. What is the most recommended solution to fulfill this requirement?
A
Store the Java image in Cloud Source Repository and the Maven packages in Container Registry.
B
Store the Java image in Container Registry and the Maven packages in Cloud Storage.
C
Store both the Java image and Maven packages in Container Registry.
D
Store the Java image in Cloud Storage and the Maven packages in Container Registry.