{"id":8687,"date":"2020-01-13T07:17:38","date_gmt":"2020-01-13T07:17:38","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=8687"},"modified":"2021-11-13T11:45:49","modified_gmt":"2021-11-13T11:45:49","slug":"kubernetes-interview-questions-and-answer-part-6","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/kubernetes-interview-questions-and-answer-part-6\/","title":{"rendered":"Kubernetes Interview Questions and Answer Part \u2013 6"},"content":{"rendered":"\n<p><strong>Which of the following is correct about Kubernetes Pods?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Pods can only contain a single VM<\/li><li>Pods can only contain a single container<\/li><li><strong>Pods can contain one or more containers (Ans)<\/strong><\/li><li>Pods must contain at least two containers <\/li><\/ul>\n\n\n\n<p><strong>What is the smallest deployable object in Kubernetes?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Pod (Ans)<\/strong><\/li><li>Replication Controller<\/li><li>Deployment<\/li><li>Container<\/li><\/ul>\n\n\n\n<p><strong>How can you filter the output of a kubectl command to only show a Pod called &#8220;mypod&#8221;<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>kubectl get pods &#8211;filter mypod<\/li><li><strong>kubctl get pods\/mypod (Ans)<\/strong><\/li><li>kubectl get mypod<\/li><\/ul>\n\n\n\n<p><strong>Which of the following tools is good for installed Kubernetes in the AWS cloud?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>kops (Ans)<\/strong><\/li><li>docker-machine<\/li><li>kubeaws<\/li><li>kubectl <\/li><\/ul>\n\n\n\n<p><strong>Which of the following is a best practice for running workloads on a Kubernetes cluster?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>User workloads should only run on Nodes. (Ans)<\/strong><\/li><li>User workloads should only run on Masters.<\/li><li>User workloads should be evenly balanced across Masters and Nodes.  <\/li><\/ul>\n\n\n\n<p><strong>Which of the following Master components are the front-end to the Kubernetes control plane?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The Controller Manager<\/li><li><strong>The apiserver (Ans)<\/strong><\/li><li>The Cluster Store<\/li><li>The Scheduler<\/li><\/ul>\n\n\n\n<p><strong>Which of the following is the only stateful component on a Kubernetes Master?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>The Cluster Store (Ans)<\/strong><\/li><li>The Controller Manager<\/li><li>The Scheduler<\/li><li>The apiserver <\/li><\/ul>\n\n\n\n<p><strong>Which of the following is the most common container runtime on Kubernetes Nodes? <\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>rkt<\/li><li><strong>Docker (Ans)<\/strong><\/li><li>systemd<\/li><li>Parallels<\/li><\/ul>\n\n\n\n<p><strong>Which component of the Kubernetes worker stack implements networking?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Container runtime<\/li><li>Kubelet<\/li><li><strong>kube-proxy (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Which of the following is the preferred method of issuing work to Kubernetes?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Via manifest files in a declarative fashion (Ans)<\/strong><\/li><li>Via individual commands in an imperative fashion <\/li><\/ul>\n\n\n\n<p><strong>Which of the following best describes a Pod?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>An isolated instance of Linux like aVirtual Machine<\/li><li>A unikernel<\/li><li>A Docker container<\/li><li><strong>A ring-fenced environment (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Which of the following is the best option for two containers that need to share memory and access to a common volume?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Put each container in its own Pod and couple them over the network<\/li><li>Package them as a deployment<\/li><li>Rewrite the code so that both services run inside a single container<\/li><li><strong>Put both container sinde the same Pod (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Which of the following is a major reason for Kubernetes Services?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>K8s Services allow Pods to scale<\/li><li>Services are highly available<\/li><li>Services allow for simple rollbacks<\/li><li><strong>We cannot rely on Pod IPs (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>How are Services linked to Pods?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>TCP port bindings<\/li><li>Docker Links<\/li><li><strong>Label Selectors  (Ans) <\/strong><\/li><\/ul>\n\n\n\n<p><strong>Which of the following best describes the benefits of Kubernetes Deployment objects?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Declarative formatting, rolling updates, and simple rollback capabilty (Ans)<\/strong><\/li><li>They provide High Availability to the Kubernetes control plane<\/li><li>Imperative formatting, rolling updates, and simple rollback capabilty<\/li><li>They hugely simplify the deployment and management of Masters and Nodes<\/li><\/ul>\n\n\n\n<p><strong>Which component of the Kubernetes Master is responsible for issuing work to Nodes?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>The Scheduler (Ans)<\/strong><\/li><li>The controller Manager<\/li><li>The apiserver<\/li><li>The Cluster Store <\/li><\/ul>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_24384\"><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_95539\"  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_24384\"  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 is correct about Kubernetes Pods? Pods can only contain a single VM Pods can only contain a single container Pods can contain one&#8230; <\/p>\n","protected":false},"author":1,"featured_media":8693,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[4859],"tags":[5665,5667,5664,5666],"class_list":["post-8687","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kubernetes","tag-kubectl-command","tag-kubernetes-master","tag-kubernetes-pods","tag-kubernetes-services"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/8687","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=8687"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/8687\/revisions"}],"predecessor-version":[{"id":25144,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/8687\/revisions\/25144"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/8693"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=8687"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=8687"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=8687"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}