Google Professional Cloud DevOps Engineer Question 27
Select 3Google Cloud PlatformYour organization is implementing a continuous delivery pipeline for a multi-environment application deployment using Google Cloud Deploy. You have chosen to use Kustomize for environment-specific configuration overlays and Skaffold for managing deployment workflows. During the deployment to the staging environment, you notice that the application configuration is not reflecting the staging-specific values. What steps should you take to resolve this issue?
- A
Ensure that the Kustomize overlays for the staging environment are correctly defined and referenced in the Cloud Deploy pipeline.
- B
Verify that the Skaffold configuration file specifies the correct Kustomize path for the staging environment.
- C
Check if the staging environment's IAM permissions allow Cloud Deploy to access the necessary resources.
- D
Inspect the Cloud Deploy delivery pipeline YAML file to confirm if the staging target is correctly defined and linked to the appropriate Skaffold configuration.
- E
Manually apply the Kustomize overlays using kubectl to verify the configuration before redeploying with Cloud Deploy.
Show answer and explanation
Correct answers: A, B, D
Explanation
To resolve the issue, you need to ensure that the Kustomize overlays for the staging environment are correctly defined and referenced in both the Skaffold configuration and the Cloud Deploy delivery pipeline. Verifying these configurations ensures that the deployment pipeline applies the appropriate environment-specific settings during deployment. While IAM permissions and manual application of overlays are important considerations, they do not directly address the root cause of the configuration issue in this scenario.
- A. Correct.
Kustomize overlays must be correctly defined and integrated into the Cloud Deploy pipeline for environment-specific configurations to apply. Missing or incorrect overlays for staging could cause the issue.
- B. Correct.
The Skaffold configuration file is responsible for managing the deployment process and must correctly reference the Kustomize path for the staging environment. Misconfiguration here can lead to incorrect deployments.
- C. Incorrect.
IAM permissions are critical for resource access, but they would not directly impact the application configuration not reflecting the staging-specific values.
- D. Correct.
The Cloud Deploy delivery pipeline YAML file must define the staging target correctly and link it to the appropriate Skaffold configuration. A misconfigured target could disrupt the deployment process.
- E. Incorrect.
Manually applying Kustomize overlays using kubectl can help verify configuration issues but is not an ideal or scalable solution in a continuous delivery pipeline.