0
0
Kubernetesdevops~20 mins

GitOps with ArgoCD in Kubernetes - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
GitOps with ArgoCD Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
What is the primary role of ArgoCD in a GitOps workflow?

Choose the best description of what ArgoCD does in a GitOps setup.

AIt provides a graphical interface for writing Kubernetes manifests manually.
BIt builds Docker images from source code and pushes them to container registries.
CIt manages user authentication and authorization for Kubernetes clusters.
DIt continuously monitors a Git repository and syncs Kubernetes clusters to match the declared state.
Attempts:
2 left
💡 Hint

Think about how GitOps keeps Kubernetes clusters in sync with Git.

💻 Command Output
intermediate
1:00remaining
What is the output of this ArgoCD CLI command?

Given the command argocd app list, what output will you see if no applications are currently managed by ArgoCD?

Kubernetes
argocd app list
A
NAME  PROJECT  SYNC STATUS  HEALTH STATUS
BError: No connection to cluster
CNo applications found
DApplication list is empty
Attempts:
2 left
💡 Hint

Consider the default table headers ArgoCD shows even if no apps exist.

🔀 Workflow
advanced
2:00remaining
Identify the correct sequence to deploy an app with ArgoCD using GitOps

Put these steps in the correct order to deploy a Kubernetes app using ArgoCD and GitOps.

A2,1,3,4
B1,2,3,4
C1,3,2,4
D3,1,2,4
Attempts:
2 left
💡 Hint

Think about how GitOps starts from Git and then ArgoCD syncs.

Troubleshoot
advanced
1:30remaining
What error will occur if ArgoCD cannot access the Git repository due to wrong credentials?

When ArgoCD tries to sync an application but the Git repository credentials are incorrect, what error message will you most likely see?

AError: Kubernetes API server not reachable
BSync successful: no changes detected
CFailed to sync: repository unreachable: authentication failed
DApplication health status: Healthy
Attempts:
2 left
💡 Hint

Think about what happens when authentication to Git fails.

Best Practice
expert
2:30remaining
Which practice ensures safe automated syncs in ArgoCD for production environments?

Choose the best practice to avoid accidental overwrites or downtime when ArgoCD automatically syncs changes to a production Kubernetes cluster.

AUse automated sync only for development clusters and manual sync for production.
BDisable automated sync and perform all syncs manually to avoid any risk.
CEnable automated sync with <code>prune</code> and <code>selfHeal</code> without any manual intervention.
DEnable automated sync with <code>prune</code> and <code>selfHeal</code> but require manual approval for syncs.
Attempts:
2 left
💡 Hint

Consider balancing automation benefits and safety in production.