nerdexam
Cisco

300-910 · Question #107

A developer must deploy a new application in Kubernetes. The deployment has these requirements: The application must be deployed in a new pod. A new node is required. Avoid disruption on existing runn

The correct answer is D. Enable the cluster autoscaler feature. To deploy a new application requiring a new node without disrupting existing pods, enabling the Kubernetes cluster autoscaler feature will automatically add nodes as needed, ensuring sufficient resources.

Application Deployment and Operations

Question

A developer must deploy a new application in Kubernetes. The deployment has these requirements:
  • The application must be deployed in a new pod.
  • A new node is required.
  • Avoid disruption on existing running pods. Which action meets these requirements?

Options

  • APut the cluster into maintenance mode.
  • BResize the cluster
  • CUpgrade the cluster.
  • DEnable the cluster autoscaler feature

How the community answered

(36 responses)
  • A
    3% (1)
  • B
    3% (1)
  • C
    6% (2)
  • D
    89% (32)

Why each option

To deploy a new application requiring a new node without disrupting existing pods, enabling the Kubernetes cluster autoscaler feature will automatically add nodes as needed, ensuring sufficient resources.

APut the cluster into maintenance mode.

Putting a cluster into maintenance mode typically involves taking nodes offline or preventing new workloads, which would likely disrupt existing pods and prevent new deployments.

BResize the cluster

Resizing the cluster is a general term; while it could mean adding nodes, simply stating 'resize' doesn't specify an automated, non-disruptive method like the autoscaler.

CUpgrade the cluster.

Upgrading the cluster involves updating Kubernetes components and can cause temporary disruptions or require careful planning to avoid downtime for existing pods, which contradicts the requirement to avoid disruption.

DEnable the cluster autoscaler featureCorrect

The Kubernetes Cluster Autoscaler automatically adjusts the number of nodes in a cluster when pods fail to run due to resource constraints or when nodes are underutilized. By enabling this feature, if the new application's pod requires a new node (due to insufficient resources on existing nodes), the autoscaler will detect this pending pod and automatically provision a new node, satisfying the requirement without manual intervention and avoiding disruption to existing workloads.

Concept tested: Kubernetes Cluster Autoscaling

Source: https://kubernetes.io/docs/concepts/cluster-administration/cluster-autoscaler/

Topics

#Kubernetes#Cluster Autoscaler#Node Management#Scalability

Community Discussion

No community discussion yet for this question.

Full 300-910 Practice