{"id":8677,"date":"2020-01-13T06:44:54","date_gmt":"2020-01-13T06:44:54","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=8677"},"modified":"2021-11-13T11:46:20","modified_gmt":"2021-11-13T11:46:20","slug":"kubernetes-interview-questions-and-answer-part-4","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/kubernetes-interview-questions-and-answer-part-4\/","title":{"rendered":"Kubernetes Interview Questions and Answer Part \u2013 4"},"content":{"rendered":"\n<p><strong>Which of the following best describes Kubernetes from a licensing standpoint?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Proprietary technology under a subscription license from Google, Inc<\/li><li>Open-source under the OpenStack Foundation<\/li><li>Proprietary technology under a subscription license from Docker, Inc.<\/li><li><strong>Open-source under the Cloud Native Computing Foundation (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Which programming language is Kubernetes written in?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Swift<\/li><li>Cobol<\/li><li><strong>Go\/Golang (Ans)<\/strong><\/li><li>Python<\/li><\/ul>\n\n\n\n<p><strong>What are the two main benefits that Deployments offer that Replication Controllers do not?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Strong update nd rollback model (Ans)<\/strong><\/li><li>Clinet-side updates and rollbacks<\/li><li>A declarative interface<\/li><li>Desired state<\/li><\/ul>\n\n\n\n<p><strong>Which of the following commands allows you to validate a cluster created with kops?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>kubectl validate cluster<\/li><li><strong>kubeadm validate cluster (Ans)<\/strong><\/li><li>kops validate cluster<\/li><\/ul>\n\n\n\n<p><strong>Which of the following kubeadm command creates a new cluster?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>kubeadm create cluster<\/li><li><strong>kubeadm init (Ans)<\/strong><\/li><li>kubeadm initialize cluster<\/li><\/ul>\n\n\n\n<p><strong>What is the default range of ports used to expose a NodePort service?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>30000-32767 (Ans)<\/strong><\/li><li>500-1000<\/li><li>60000-65536<\/li><li>1024-32767 <\/li><\/ul>\n\n\n\n<p><strong>You want to deploy two tightly coupled containers that share a volume and some memory. What is the best option?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Deploy them in separate Pods and couple them over the network<\/li><li>Deploy them as two processes in a single container<\/li><li><strong>Deploy them in a single Pod (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Which Operating System does Kubernetes run on?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Windows<\/li><li><strong>Linux (Ans)<\/strong><\/li><li>OS X<\/li><li>FreeBSD<\/li><\/ul>\n\n\n\n<p><strong>Which of the following commands gives you detailed info on a Pod?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>kubectl describe pods (Ans)<\/strong><\/li><li>kubectl get pods -vvv<\/li><li>kubectl get pods &#8211;detail<\/li><li>kubectl pods inspect<\/li><\/ul>\n\n\n\n<p><strong>Which component of the Kubernetes worker stack registers Nodes with the cluster and watches the apiserver for new work?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>kube-proxy<\/li><li><strong>Kubelet (Ans)<\/strong><\/li><li>Container runtime <\/li><\/ul>\n\n\n\n<p><strong>Where did Kubernetes originate?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Docker<\/li><li>Twitter<\/li><li>Facebook<\/li><li><strong>Google (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Which of the following options is best for creating a local Kubernetes development environment on your laptop?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Minikube (Ans)<\/strong><\/li><li>Google Container Engine<\/li><li>Kubernetes for Mac<\/li><li>Docker for Mac<\/li><\/ul>\n\n\n\n<p><strong>Which of the following best describes the Google Container Engine (GKE)?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Packaged Kubernetes that can be installed on several cloud platforms<\/li><li><strong>Packaged Kubernetes hosted in the Google Cloud Platform (Ans)<\/strong><\/li><li>Packaged Kubernetes that can be installed on OpenStack<\/li><li>Packaged Kubernetes that can be installed on premises in your data center<\/li><\/ul>\n\n\n\n<p><strong>You have updated the manifest file for an existing deployment and need to push the changes to the cluster. Which of the following command lets you do this?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>kubectl create -f <\/li><li><strong>kubectl apply -f  (Ans)<\/strong><\/li><li>kubectl rollout apply -f <\/li><\/ul>\n\n\n\n<p><strong>What is the default Service type (ServiceType) if you do NOT specify a value?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>LoadBalancer<\/li><li>NodePort<\/li><li><strong>ClusterIP (Ans)<\/strong><\/li><li>Ingress <\/li><\/ul>\n\n\n\n<p><strong>What is the default protocol for a Service?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>TCP (Ans)<\/strong><\/li><li>UDP<\/li><li>HTTP<\/li><li>SSH<\/li><\/ul>\n\n\n\n<p><strong>What is the atomic unit of scheduling in Kubernetes?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Pod (Ans)<\/strong><\/li><li>VM<\/li><li>Container<\/li><li>Deployment <\/li><\/ul>\n\n\n\n<p><strong>Which of the following is true about Pods and IP addressing?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Pods only work with IPv6 addresses<\/li><li>All containers in a Pod get unique IP addresses<\/li><li>An external DHCP server is required for Pod IP addressing<\/li><li><strong>All containers in a Pod share a single IP address (Ans)<\/strong><\/li><\/ul>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_23885\"><figure class=\"wp-block-embed wp-block-embed-youtube is-type-video is-provider-youtube epyt-figure\"><div class=\"wp-block-embed__wrapper\"><iframe loading=\"lazy\"  id=\"_ytid_75758\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_23885\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><\/div><\/figure><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Which of the following best describes Kubernetes from a licensing standpoint? Proprietary technology under a subscription license from Google, Inc Open-source under the OpenStack Foundation Proprietary technology under a subscription license from Docker, Inc. Open-source under the Cloud Native Computing Foundation (Ans) Which programming language is Kubernetes written in? Swift Cobol Go\/Golang (Ans) Python What&#8230;<\/p>\n","protected":false},"author":1,"featured_media":8695,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[4859],"tags":[5660,4860,686],"class_list":["post-8677","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kubernetes","tag-deployments","tag-kubernetes","tag-programming-language"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/8677","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=8677"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/8677\/revisions"}],"predecessor-version":[{"id":25146,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/8677\/revisions\/25146"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/8695"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=8677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=8677"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=8677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}