Google Professional Cloud DevOps Engineer Question 30
Select 3Google Cloud PlatformYour team uses Jenkins for CI/CD pipelines and Git as the source code repository. Recently, the team has started using Argo CD for managing Kubernetes deployments. However, the operations team has reported that the application deployments are not reflecting the latest changes in the repository. What should you do to resolve the issue?
- A
Ensure that the Argo CD application is configured to automatically sync with the Git repository.
- B
Update the Jenkins pipeline to trigger Argo CD to sync after a successful build.
- C
Switch from Argo CD to a traditional deployment method like kubectl.
- D
Manually apply the Kubernetes manifests stored in the Git repository using kubectl.
- E
Configure a webhook in the Git repository to notify Argo CD of changes.
Show answer and explanation
Correct answers: A, B, E
Explanation
To ensure that Argo CD reflects the latest changes in the Git repository, you need to align the tools in your CI/CD pipeline with GitOps principles. Configuring Argo CD to automatically sync or leveraging a webhook ensures changes in the repository are deployed quickly. Additionally, triggering Argo CD from the Jenkins pipeline integrates the CI/CD workflow seamlessly, ensuring consistent deployments.
- A. Correct.
Correct: Argo CD can be configured to automatically sync its state with the Git repository, ensuring that any changes in manifests are reflected in the cluster.
- B. Correct.
Correct: Updating the Jenkins pipeline to trigger Argo CD after a successful build ensures the pipeline aligns with the GitOps workflow.
- C. Incorrect.
Incorrect: Switching to a traditional deployment method such as kubectl is unnecessary and deviates from the GitOps principles that Argo CD is designed to support.
- D. Incorrect.
Incorrect: Manually applying Kubernetes manifests contradicts the GitOps philosophy, as it bypasses the automated and declarative deployment process.
- E. Correct.
Correct: Configuring a webhook in the Git repository allows Argo CD to be immediately notified of changes, reducing delays in syncing the repository state to the cluster.