{"id":8994,"date":"2020-01-18T07:17:52","date_gmt":"2020-01-18T07:17:52","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=8994"},"modified":"2025-02-01T23:03:13","modified_gmt":"2025-02-01T23:03:13","slug":"docker-interview-questions-and-answer-part-12","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/docker-interview-questions-and-answer-part-12\/","title":{"rendered":"Docker Interview Questions and Answer Part \u2013 12"},"content":{"rendered":"\n<p><strong>Which of the following flags tells the Swarm Manager process that it will be part of a highly available multi-manager configuration?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>&#8211;replicate<\/li><li><strong>&#8211;replication (Ans)<\/strong><\/li><li>&#8211;multi-manager<\/li><li>&#8211;multi-master<\/li><\/ul>\n\n\n\n<p><strong>Which three scheduling strategies does Swarm currently support?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Random, fastest response, spread<\/li><li>Random, round-robin, binpack<\/li><li><strong>Random, spread, binpack (Ans)<\/strong><\/li><li>Random, spread, stack<\/li><\/ul>\n\n\n\n<p><strong>What are the two major services required for a Swarm cluster to operate correctly?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Directory service and Swarm manager<\/li><li><strong>Discovery service and Swarm manager (Ans)<\/strong><\/li><li>Discovery service and Directory service<\/li><li>Docker Hub and Discovery service<\/li><\/ul>\n\n\n\n<p><strong>What is the recommended way for clients to communicate with Swarm nodes in the Docker Swarm cluster?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Directly to the engine daemon on each node<\/li><li><strong>Via the Swarm manager (Ans)<\/strong><\/li><li>Via Docker Hub<\/li><li>Via Docker Trusted Registry<\/li><\/ul>\n\n\n\n<p><strong>Why does the binpack scheduling strategy choose the smallest node in the cluster when choosing new nodes to schedule containers on?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Larger nodes take longer to query<\/li><li>To keep operational costs as low as possible<\/li><li><strong>To save larger nodes for larger containers (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>You have a node in your Swarm cluster that does not have any running containers but is being overlooked when new containers are scheduled against the cluster. <br>     Which of the following could be a reason for this?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The node has too many images in its local store.<\/li><li><strong>The node has a lot of containers in the stopped state. (Ans)<\/strong><\/li><li>The node has a lot of containers in the destroyed state.<\/li><li>The node has rebooted within the last two hours.<\/li><\/ul>\n\n\n\n<p><strong>Who is the founder and current CTO of Docker Inc.?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Ben Golub<\/li><li>Linux Torvalds<\/li><li>Mark Zuckerberg<\/li><li><strong>Solomon Hykes (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Which open source license is the Docker project licensed?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>CDDL<\/li><li><strong>Apache License 2.0 (Ans)<\/strong><\/li><li>GPL v3.0<\/li><li>MIT<\/li><\/ul>\n\n\n\n<p><strong>Which of the following describes the relationship between repositories and registries?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Repositories contain one or more registries.<\/li><li><strong>Registries contain one or more repositories. (Ans)<\/strong><\/li><li>Repositories are always public, while registries are always private.<\/li><li>Registries are always public, while repositories are always private.<\/li><\/ul>\n\n\n\n<p><strong>Which of the following is driving stateful workloads towards becoming first-class citizens on the Docker ecosystem?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Docker Content Trust<\/li><li>Data volumes<\/li><li><strong>The pluggable storage backend (Ans)<\/strong><\/li><li>The key\/value store used in multi-host networking<\/li><\/ul>\n\n\n\n<p><strong>Which of the following problems did hypervisor virtualization solve for businesses and IT?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Data Center security<\/li><li>Operating System management overhead<\/li><li><strong>Wasted physical server resources (Ans)<\/strong><\/li><li>Re-writing of legacy monolithic apps<\/li><\/ul>\n\n\n\n<p><strong>If you were using container orchestration tools from Docker Inc., which tool would manage your cluster of Docker hosts?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Docker Machine<\/li><li><strong>Docker Swarm (Ans)<\/strong><\/li><li>Docker Compose<\/li><li>Docker Clustering<\/li><\/ul>\n\n\n\n<p><strong>Which of the following advantages do containers have over virtual machines?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>They are more fault-tolerant.<\/li><li><strong>They are more efficient with system resources. (Ans)<\/strong><\/li><li>They are more mature. <\/li><li>They are more secure.<\/li><\/ul>\n\n\n\n<p><strong>Which of the following does the author believe will best help you prepare to thrive in a container world?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Partnerships with strategic vendors<\/li><li>A Windows only infrastructure<\/li><li><strong>Knowledge and experience (Ans)<\/strong><\/li><li>Good change-management processes<\/li><\/ul>\n\n\n\n<p><strong>Which of the following is a popular place to get developers started with containers in your infrastructure?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Continuous Integration\/Continuous Delivery solutions<\/li><li>Your production estate<\/li><li>Deploying infrastructure services such as DNS and Active Directory<\/li><li><strong>New software defined networking solutions (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Which of the following best describes the Commercially Supported Docker Engine (CS Engine)?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Released every ~6 months, supported by Docker Inc., and based on the same codebase as the stable release of the Docker Engine (Ans)<\/strong><\/li><li>Released every ~6 months containing proprietary code contributed by 3rd parties such as IBM, Microsoft, and Red Hat<\/li><li>Released every ~6 months, hosted and managed by Docker Inc. on the dotCloud cloud platform<\/li><li>Released by 3rd parties such as IBM and Red Hat but based on the stable release of the Docker Engine<\/li><\/ul>\n\n\n\n<p><strong>Which of the following container registries will be used in a default installation of Docker?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Docker Hub (Ans)<\/strong><\/li><li>Quay Enterprise<\/li><li>Docker Trusted Registry<\/li><li>GitHub<\/li><\/ul>\n\n\n\n<p><strong>Where can the Docker project and its source code be found?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>BitBucket<\/li><li>It is proprietary code owned and kept in-house at Docker Inc.<\/li><li><strong>GitHub (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Which of the following best describes a stateless app or workload?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>One that stores changed data<\/li><li>One that does not care which public cloud platform it runs on <\/li><li><strong>One that does not store any changed data (Ans)<\/strong><\/li><li>One that can run in any state or territory without legal issues<\/li><\/ul>\n\n\n\n<p><strong>Which of the following is described in the course as being a pro and a con of the hypervisor virtualization model?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Being able to move existing apps directly into virtual machines (Ans)<\/strong><\/li><li>The need to change existing apps before they can run inside of virtual machines<\/li><li>Virtual machines can run on existing x86 and x64 hardware<\/li><li>Hypervisors contain a lot of code, making them feature rich but vulnerable to more attacks<\/li><\/ul>\n\n\n\n<p><strong>Which of the following does container orchestration help with?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Interal cross charging<\/li><li><strong>Scaling (Ans)<\/strong><\/li><li>Unit testing<\/li><li>Data volume management<\/li><\/ul>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_37447\"><iframe loading=\"lazy\"  id=\"_ytid_14854\"  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_37447\"  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>Which of the following flags tells the Swarm Manager process that it will be part of a highly available multi-manager configuration? &#8211;replicate &#8211;replication (Ans) &#8211;multi-manager &#8211;multi-master Which three scheduling strategies&#8230; <\/p>\n","protected":false},"author":1,"featured_media":9827,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[4862],"tags":[],"class_list":["post-8994","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-docker"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/8994","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=8994"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/8994\/revisions"}],"predecessor-version":[{"id":25085,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/8994\/revisions\/25085"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/9827"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=8994"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=8994"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=8994"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}