Courseiva
DeploymentmediumMultiple ChoiceObjective-mapped

CV0-004 Deployment Practice Question

A company is adopting a canary deployment strategy for a microservice running on Kubernetes. They want to initially route 5% of traffic to the new version and monitor for errors before increasing. Which Kubernetes resource is best suited to implement this traffic splitting?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Service with multiple Deployments and replica scaling

Service meshes like Istio provide traffic routing capabilities, but in native Kubernetes, a Service can be used with multiple Deployments, but traffic splitting is not native. However, using a Service with label selectors that match both versions and manually adjusting replica counts is a common approach, but more advanced canary deployments use tools like Flagger or Istio. Among the options, a Service with a canary Deployment and adjusting replicas is most straightforward.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ConfigMap

    Why it's wrong here

    ConfigMap is for configuration data, not traffic routing.

  • Ingress resource

    Why it's wrong here

    Ingress controls external traffic but does not support percentage-based traffic splitting natively.

  • Service with multiple Deployments and replica scaling

    Why this is correct

    Correct. By running two Deployments (stable and canary) and scaling replicas, the Service distributes traffic proportionally based on pod counts.

  • HorizontalPodAutoscaler

    Why it's wrong here

    HPA automatically scales pods based on metrics but does not split traffic.

About these practice questions

This CV0-004 question is part of Courseiva's 977-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This CV0-004 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CV0-004 exam.