Courseiva
Application Deployment and SecuritymediumMultiple SelectObjective-mapped

200-901 Application Deployment and Security Practice Question

A Kubernetes cluster has a deployment named 'frontend' that needs to be updated to a new image version. The update should be performed with zero downtime. Which three kubectl commands or approaches can achieve this? (Choose three.)

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

kubectl set image deployment/frontend frontend=myimage:v2

Rolling updates can be done by editing the deployment, applying a new YAML, or using set image. kubectl edit deployment updates the live config. kubectl apply -f update.yaml applies a new manifest. kubectl set image updates the image directly. kubectl delete and create would cause downtime.

Answer analysis

Option-by-option breakdown

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

  • kubectl set image deployment/frontend frontend=myimage:v2

    Why this is correct

    Directly updates the image, triggers rolling update.

  • kubectl delete deployment frontend and then create a new deployment.

    Why it's wrong here

    Deleting causes downtime.

  • kubectl edit deployment frontend and change the image.

    Why this is correct

    Triggers a rolling update.

  • kubectl rollout undo deployment/frontend

    Why it's wrong here

    Rolls back, not updates to new version.

  • kubectl apply -f updated-frontend.yaml with the new image.

    Why this is correct

    Applies the new desired state, triggering rolling update.

About these practice questions

Courseiva writes every 200-901 question from scratch — 989 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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 200-901 practice question is part of Courseiva's free Cisco 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 200-901 exam.