[Interview] Kubernetes Quiz Solution of Turing

 


Solution of Turing Kubernetes Quiz

You are a DevOps at Turing. You want to open up a proxy port on localhost for Kubernetes cluster. Which of the following is correct command to do it?

1. Kubect! localhost
2. Kubect! proxy
3. Kubect! proxy create
4. Kubect! create

The correct command to set up a proxy to the Kubernetes API server on your local machine is kubectl proxy. So, the correct answer is option 2: Kubect! proxy


You are a DevOps at Turing. You want to look at an object's details. Which of the following subcommands of ‘kubect!' do you need to use in this case?

1. Details
2. Describe
3. Check
4. Info

The correct command to get detailed information about a specific object in Kubernetes using kubectl is kubectl describe. So, the correct answer is option 2: Describe

You are a DevOps at Turing. You take care a microservice system on AWS. You need to config Service Discovery in the system. How can you do it?

1. None of the above
2. Via environment variables for the socket of the service.
3. All of the above
4. Via kube-proxy
5. Via DNS.

Kubernetes provides two primary modes of service discovery, environment variables and DNS. The kube-proxy component also plays a part in service discovery by load balancing across different pods of a service. So, the correct answer is option 3: All of the above.


You are a DevOps at Turing. You need to logically group a set of Pods. Which Services supports this case?

1. Pod names
2. Labels and Selectors
3. IP Address attached to Pods
4. Current state

The correct answer is option 2: Labels and Selectors. Labels are key/value pairs that are attached to objects, such as pods, and Selectors are how you specify which Labels to match when grouping objects.

You are a DevOps at Turing. You need to config customer to work with a cloud provider. What does the Service Type work only in this case?

1. NodePort
2. ClusterIP
3. LoadBalancer
4. ExternalName

In the context of working with a cloud provider in Kubernetes, the Service Type that is specifically designed to work with cloud providers is LoadBalancer. This service type provisions a load balancer for your application in supported cloud providers (like AWS, GCP, Azure, etc.). So, the correct answer is option 3: LoadBalancer.


You are a DevOps at Turing. Which of the following statement is correct about the target of this command

“kubect1 explain pod.metadata --recursive”

1. Explains what metadata is for a pod
2. Give a brief overview of a pod
3. Explains how to uses a pod in detail, with examples
4. Lists all options available in a podas metadata

The kubectl explain command is used to get documentation about different Kubernetes resources and their fields. When you use kubectl explain pod.metadata --recursive, it will recursively explain all the fields under pod.metadata.

So, the correct answer is option 4: Lists all options available in a pod's metadata


You are a DevOps at Turing. You need to manage the assigning nodes to pods depending on resource availability. Which component do you use in this case?

1. Flanneld
2. ETCD
3. Scheduler
4. Kubect!

The correct answer is option 3: Scheduler. The Kubernetes Scheduler is responsible for scheduling pods onto nodes. It selects a suitable node for each pod based on resource availability, among other factors

You are a DevOps at Turing. You are using The Ingress controller to create a Load Balancer. Which is the layer that it's based on?

1. Layer 4
2. Layer 3
3. None of the above
4. Layer 7

The Ingress controller in Kubernetes is used for handling HTTP and HTTPS routing to services within the cluster. This corresponds to Layer 7 (the application layer) in the OSI model. So, the correct answer is option 4: Layer 7.


Download Coding Interview Book and Get More Tutorials for Coding and Interview Solution: Click Here

Download System Design Interview Book and Get More Tutorials and Interview Solution: Click Here

Do you need more Guidance or Help? Then Book 1:1 Quick Call with Me: Click Here

Share on Google Plus

About Ashadullah Shawon

I am Ashadullah Shawon. I am a Software Engineer. I studied Computer Science and Engineering (CSE) at RUET. I Like To Share Knowledge. Learn More: Click Here
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment