Kubernetes MCQs – Kubernetes CI/CD Integration

21.) Which file contains deployment configuration for Argo CD?

A) application.yaml
B) Chart.yaml
C) Dockerfile
D) .argo-cd

Answer: Option A

Explanation: Argo CD uses application.yaml to define what to deploy and from where.

22.) Which CI/CD system is most Kubernetes-native?

A) Tekton
B) GitHub Actions
C) Jenkins
D) Bamboo

Answer: Option A

Explanation: Tekton is designed to be Kubernetes-native, leveraging CRDs and native resources.

23.) Which command creates a new namespace in Kubernetes for staging CI/CD environments?

A) kubectl namespace create staging
B) kubectl create namespace staging
C) kubectl new ns staging
D) kubectl start namespace staging

Answer: Option B

Explanation: This creates a new namespace named “staging”.

24.) Which Argo CD CLI command syncs a Git repo with the cluster?

A) argocd pull
B) argocd fetch
C) argocd sync
D) argocd deploy

Answer: Option C

Explanation: This syncs the target state from Git with the live cluster state.

25.) What is a “job” in the context of Kubernetes and CI/CD?

A) A deployment
B) A one-time task
C) A monitoring rule
D) A daemonset

Answer: Option B

Explanation: Jobs are used to run short-lived tasks like database migrations.

Leave a Reply

Your email address will not be published. Required fields are marked *