ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 107 - Professional Cloud DevOps Engineer discussion

Report
Export

You are implementing a CI'CD pipeline for your application in your company s multi-cloud environment Your application is deployed by using custom Compute Engine images and the equivalent in other cloud providers You need to implement a solution that will enable you to build and deploy the images to your current environment and is adaptable to future changes Which solution stack should you use'?

A.
Cloud Build with Packer
Answers
A.
Cloud Build with Packer
B.
Cloud Build with Google Cloud Deploy
Answers
B.
Cloud Build with Google Cloud Deploy
C.
Google Kubernetes Engine with Google Cloud Deploy
Answers
C.
Google Kubernetes Engine with Google Cloud Deploy
D.
Cloud Build with kpt
Answers
D.
Cloud Build with kpt
Suggested answer: B

Explanation:

Cloud Build is a fully managed continuous integration and continuous delivery (CI/CD) service that helps you automate your builds, tests, and deployments. Google Cloud Deploy is a service that automates the deployment of your applications to Google Kubernetes Engine (GKE).

Together, Cloud Build and Google Cloud Deploy can be used to build and deploy your application's custom Compute Engine images to your current environment and to other cloud providers in the future.

Here are the steps involved in using Cloud Build and Google Cloud Deploy to implement a CI/CD pipeline for your application:

Create a Cloud Build trigger that fires whenever a change is made to your application's code.

In the Cloud Build trigger, configure Cloud Build to build your application's Docker image.

Create a Google Cloud Deploy configuration file that specifies how to deploy your application's Docker image to GKE.

In Google Cloud Deploy, create a deployment that uses your configuration file.

Once you have created the Cloud Build trigger and Google Cloud Deploy configuration file, any changes made to your application's code will trigger Cloud Build to build a new Docker image. Google Cloud Deploy will then deploy the new Docker image to GKE.

This solution stack is adaptable to future changes because it uses a cloud-agnostic approach. Cloud Build can be used to build Docker images for any cloud provider, and Google Cloud Deploy can be used to deploy Docker images to any Kubernetes cluster.

The other solution stacks are not as adaptable to future changes. For example, solution stack A (Cloud Build with Packer) is limited to building Docker images for Compute Engine. Solution stack C (Google Kubernetes Engine with Google Cloud Deploy) is limited to deploying Docker images to GKE. Solution stack D (Cloud Build with kpt) is a newer solution that is not yet as mature as Cloud Build and Google Cloud Deploy.

Overall, the best solution stack for implementing a CI/CD pipeline for your application in a multi-cloud environment is Cloud Build with Google Cloud Deploy. This solution stack is fully managed, cloud-agnostic, and adaptable to future changes.

asked 18/09/2024
EduBP srl De Sanctis
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first