{"id":9041,"date":"2020-01-20T08:57:06","date_gmt":"2020-01-20T08:57:06","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=9041"},"modified":"2021-11-13T07:05:08","modified_gmt":"2021-11-13T07:05:08","slug":"docker-interview-questions-and-answer-part-20","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/docker-interview-questions-and-answer-part-20\/","title":{"rendered":"Docker Interview Questions and Answer Part \u2013 20"},"content":{"rendered":"\n<p><strong>What type of software deals with running (placement) applications on a given node in the cluster?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Placer<\/li><li>VM runtime<\/li><li>Container runtime<\/li><li>Provisioner <\/li><li><strong>Scheduler (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>What is the net effect of a separate PID namespace? Each process can have an entirely separate <em>__<\/em> .<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>filesystem<\/li><li>network stack<\/li><li>hostname<\/li><li><strong>list of processes  (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>How would you avoid port conflicts? Use separate _ namespaces per process.<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>mount<\/li><li>PID<\/li><li><strong>network (Ans)<\/strong><\/li><li>IPC<\/li><li>UTS<\/li><\/ul>\n\n\n\n<p><strong>How would you avoid shared library conflicts between processes? Use separate _______ namespaces per process.<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>UTS<\/li><li><strong>mount (Ans)<\/strong><\/li><li>network<\/li><li>PID<\/li><li>IPC<\/li><\/ul>\n\n\n\n<p><strong>What is the net effect of a separate UTS namespace? Each process can have an entirely separate <em>_<\/em>_________ .<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>list of processes<\/li><li>filesystem<\/li><li><strong>hostname (Ans)<\/strong><\/li><li>IPC<\/li><li>IP address<\/li><\/ul>\n\n\n\n<p><strong>What&#8217;s the benefit of a user namespace?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Provide each process with its own networking stack and IP addresses<\/li><li><strong>Allow privileged operations on resources in the namespaces associated with a process but not system-wide (Ans)<\/strong><\/li><li>Allow privileged operations on all system resources<\/li><li>Create users specific to only a given user namespace<\/li><li>Provide each process with its own filesystem<\/li><\/ul>\n\n\n\n<p><strong>What does an app container run?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>A single application (Ans)<\/strong><\/li><li>Runs the container runtime<\/li><li>Runs the host OS init process<\/li><li>Runs an OS init process to emulate a VM<\/li><\/ul>\n\n\n\n<p><strong>What aspect of a scheduler handles app failure?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Load Balancing<\/li><li>Service Discovery<\/li><li><strong>Enforce Desired State (Ans)<\/strong><\/li><li>Scaler<\/li><\/ul>\n\n\n\n<p><strong>What is a root namespace, i.e. a root network namespace?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>A namespace for processes run by root, i.e. a network namespace for processes run by root<\/li><li>A type of namespace with access to all system resources, i.e. to all network devices in all network namespaces<\/li><li><strong>A default namespace, i.e. the default network namespace (Ans)<\/strong><\/li><li>A namespace for root processes, i.e. a network namespace for root processes<\/li><\/ul>\n\n\n\n<p><strong>What can you use to find vulnerabilities in images?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Isolate container networking to avoid malicious processes from talking to other processes<\/li><li>Run anti-virus services inside containers<\/li><li><strong>Image registries with security scanning (Ans)<\/strong><\/li><li>Image signing and verification<\/li><\/ul>\n\n\n\n<p><strong>What do cgroups isolate?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Which CPUs a process can use<\/li><li>None of these<\/li><li>Specific device access<\/li><li><strong>All of these (Ans)<\/strong><\/li><li>The amount of a resource a process can use<\/li><\/ul>\n\n\n\n<p><strong>Docker Images consist of read-only layers.<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>False<\/li><li><strong>True (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>What task does Docker Machine perform?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>All of these<\/li><li>Find and install Docker images<\/li><li><strong>Create and manage local machines (Ans)<\/strong><\/li><li>Create and manage Docker images<\/li><li>Create and manage containers<\/li><\/ul>\n\n\n\n<p><strong>Specific framework versions (Node.js, ASP.NET, etc.) can be loaded on a developer machine by creating a custom Dockerfile.<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>True (Ans)<\/strong><\/li><li>False<\/li><\/ul>\n\n\n\n<p><strong>What file does Docker Compose use to define services?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>compose.xml<\/li><li>Dockerfile<\/li><li>docker- compose.son<\/li><li><strong>docker- compose.yml (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>What Dockerfile instruction can be used to execute &#8220;npm install&#8221; when creating a custom Image?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>None of these<\/li><li>npm install<\/li><li>EXECUTE npm install<\/li><li><strong>RUN npm install (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>What command- line switches are used with legacy linking?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>&#8211;run and &#8211;link<\/li><li>&#8211;com and &#8211;name<\/li><li><strong>&#8211;link and &#8211;name (Ans)<\/strong><\/li><li>&#8211;net and &#8211;name<\/li><\/ul>\n\n\n\n<p><strong>Bridge networks can be defined in Docker Compose files.<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>True (Ans)<\/strong><\/li><li>False<\/li><\/ul>\n\n\n\n<p><strong>Docker Kitematic provides a way to visually search for images hosted on <em>_<\/em>_________?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Docker Hub (Ans)<\/strong><\/li><li>VirtualBox<\/li><li>Docker Client<\/li><li>Docker Machine<\/li><\/ul>\n\n\n\n<p><strong>Docker containers can be started and stopped.<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>True (Ans)<\/strong><\/li><li>False <\/li><\/ul>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_85556\"><iframe loading=\"lazy\"  id=\"_ytid_79236\"  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_85556\"  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 class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>What type of software deals with running (placement) applications on a given node in the cluster? Placer VM runtime Container runtime Provisioner Scheduler (Ans) What is the net effect of&#8230; <\/p>\n","protected":false},"author":1,"featured_media":10443,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[4862],"tags":[567],"class_list":["post-9041","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-docker","tag-docker"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/9041","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=9041"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/9041\/revisions"}],"predecessor-version":[{"id":25046,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/9041\/revisions\/25046"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/10443"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=9041"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=9041"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=9041"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}