Google Professional Cloud DevOps Engineer Question 193
Select 3Google Cloud PlatformYour team is implementing a continuous delivery (CD) pipeline using Google Cloud Deploy. You want to use Kustomize to manage application configurations for different environments and ensure secure and consistent deployments. Which of the following steps should you take to achieve this?
- A
Include a Kustomization.yaml file in each environment-specific directory to define overlays.
- B
Use Skaffold profiles to define environment-specific build and deploy configurations.
- C
Configure the delivery pipeline in Google Cloud Deploy to reference Kustomize overlays for each environment.
- D
Manually create environment-specific manifests for each stage in the pipeline without using Kustomize.
- E
Use Google Cloud Build to directly deploy the application without integrating Kustomize or Skaffold.
Show answer and explanation
Correct answers: A, B, C
Explanation
To implement a robust CD pipeline using Google Cloud Deploy, Kustomize is used to manage environment-specific configurations through overlays, and Skaffold profiles help define build and deploy settings for different environments. Cloud Deploy integrates with these tools to ensure consistent deployments across environments, reducing manual intervention and errors. Manually creating manifests or avoiding Kustomize and Skaffold leads to inefficiencies and potential misconfigurations.
- A. Correct.
Correct: Kustomize uses a Kustomization.yaml file to define the overlays and configurations specific to each environment, which is a key step in managing application configurations.
- B. Correct.
Correct: Skaffold profiles allow you to define environment-specific build and deploy settings, enabling seamless integration with Kustomize and Cloud Deploy.
- C. Correct.
Correct: Google Cloud Deploy supports referencing Kustomize overlays for environment-specific deployments, which ensures configurations are applied consistently across environments.
- D. Incorrect.
Incorrect: Manually creating environment-specific manifests is error-prone and defeats the purpose of using Kustomize for managing overlays and configurations.
- E. Incorrect.
Incorrect: While Google Cloud Build can be used for deployments, skipping Kustomize and Skaffold integration would not align with the goal of secure and consistent deployments.