Quiz about Kubernetes-5

Kubernetes-5

Last Updated :
Discuss
Comments

Question 1

 Why are Kubernetes Services necessary when Pods already have IP addresses?

  • A

     Pod IPs are not routable

  • B

    Pod IPs change frequently due to Pod recreation

  • C

    Pod IPs cannot handle traffic

  • D

    Pod IPs are shared across nodes

Question 2

What is the primary role of a selector in a Kubernetes Service?

  • A

    Assign a ClusterIP to the Service

  • B

    Filter traffic at the ingress level

  • C

    Identify the set of Pods backing the Service

  • D

    Configure DNS records

Question 3

What happens when a Service is created without a selector?

  • A

    The Service becomes headless automatically

  • B

    Kubernetes creates Pods automatically

  • C

    The Service cannot receive traffic

  • D

    Endpoints must be managed manually via EndpointSlices

Question 4

Why were EndpointSlices introduced instead of using a single Endpoints object?

  • A

    To support encrypted traffic

  • B

    To reduce API server load by segmenting large endpoint sets

  • C

    To replace Services

  • D

    To allow multi-port Services

Question 5

 Which Service type exposes Pods directly without allocating a ClusterIP?

  • A

    ExternalName

  • B

    NodePort

  • C

    LoadBalancer

  • D

    Headless

Question 6

 In a NodePort Service, which component actually forwards traffic from the node port to Pod IPs?

  • A

    kube-proxy

  • B

    kube-scheduler

  • C

    API Server

  • D

    CoreDNS

Question 7

Why can a LoadBalancer Service behave differently in Minikube compared to a managed cloud cluster?

  • A

    Minikube blocks external traffic


  • B

    Minikube lacks a cloud provider integration for external load balancers

  • C

    Minikube uses only UDP

  • D

    Minikube does not support Services

Question 8

What is the advantage of using named ports instead of numeric targetPort values?

  • A

    Faster networking

  • B

    Improved security

  • C

    Decoupling Service configuration from container port numbers

  • D

    Automatic port discovery

Question 9

Which DNS record type is created when using an ExternalName Service?

  • A

    A record

  • B

    AAAA record

  • C

    SRV record

  • D

    CNAME record

Tags:

There are 9 questions to complete.

Take a part in the ongoing discussion