
Answer-first summary for fast verification
Answer: Store the Java image in Container Registry and the Maven packages in Cloud Storage.
Google recommends storing Docker images in Container Registry and other build artifacts, like Maven packages, in Cloud Storage. This approach is efficient and aligns with GCP's best practices. Options A, C, and D are incorrect because images cannot be stored in Cloud Source Repository, and packages should not be stored in Container Registry. 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 image creation. There's a need to store both the Java image and Maven packages in GCP for deployment purposes. What is Google's recommended solution for this scenario?
A
Store the Java image in Cloud Storage 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 Source Repository and the Maven packages in Container Registry.