CompTIA Linux+ XK0-006 (V8) Practice Question

You need to update a production Deployment that currently runs 4 replicas of an API service in your Kubernetes cluster. The Deployment manifest (simplified) is shown below:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: api
spec:
  replicas: 4
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxUnavailable: 1
      maxSurge: 2
  template:
    metadata:
      labels:
        app: api
    spec:
      containers:
      - name: api
        image: registry.example.com/api:2.0

Immediately after you change the container image tag from api:1.0 to api:2.0, what is the greatest number of Pods (old + new) that Kubernetes might have running for this Deployment at any single point in time during the rolling update?

  • 7

  • 6

  • 4

  • 5

CompTIA Linux+ XK0-006 (V8)
Automation, Orchestration, and Scripting
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot