Google Professional Cloud Developer Question 254
Select 2Google Cloud PlatformYou are tasked with setting up a continuous integration (CI) pipeline for a microservices application hosted on Google Cloud. The pipeline should automate the process of building Docker images and storing them in a secure location for deployment. Which combination of Google Cloud services should you use to achieve this?
- A
Cloud Build to automate the build and push process
- B
Artifact Registry to securely store Docker images
- C
Cloud Storage to store Docker images
- D
Google Kubernetes Engine (GKE) to build Docker images
- E
Cloud Source Repositories to host the Docker images
Show answer and explanation
Correct answers: A, B
Explanation
To set up a CI pipeline for building and storing Docker images, you should use Cloud Build for automating the build and push process, and Artifact Registry to securely store the resulting Docker images. Together, these services provide a scalable, secure, and efficient solution for managing CI workflows in Google Cloud.
- A. Correct.
Correct. Cloud Build is designed for automating build steps, including building and pushing Docker images to a repository.
- B. Correct.
Correct. Artifact Registry is a secure, fully managed service for hosting container images and other artifacts.
- C. Incorrect.
Incorrect. While Cloud Storage can store files, it is not designed specifically for hosting Docker images or integrating with CI/CD pipelines.
- D. Incorrect.
Incorrect. Google Kubernetes Engine (GKE) is used for deploying and managing containerized applications, not for building Docker images.
- E. Incorrect.
Incorrect. Cloud Source Repositories is a Git-based code repository and cannot host Docker images.