{"id":9139,"date":"2020-01-22T06:17:07","date_gmt":"2020-01-22T06:17:07","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=9139"},"modified":"2025-07-12T05:41:46","modified_gmt":"2025-07-12T05:41:46","slug":"docker-interview-questions-and-answer-part-32","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/docker-interview-questions-and-answer-part-32\/","title":{"rendered":"Docker Interview Questions and Answer Part \u2013 32"},"content":{"rendered":"\n<p><strong>Which of the following are true about Docker volumes?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>They must exist on a SAN or NAS<\/li><li><strong>They are decoupled from containers (Ans)<\/strong><\/li><li>They are higher performance than graph driver (snapshotter) storage<\/li><li>They are RAID protected<\/li><\/ul>\n\n\n\n<p><strong>Which of the following commands will list all of the Docker volumes on a particular Docker host?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>docker system info | grep volumes<\/li><li>docker node volumes<\/li><li><strong>docker volume ls (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Which of the following can be a Docker Secret? <\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Just SSH keys<\/li><li>Just .pem and .crt files<\/li><li>Passwords less than 100KB<\/li><li><strong>Passwords, SSH keys, service ports and names (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Which component of the Docker Engine interfaces with the kernel primitives that are used to build containers?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>The OCI layer (runc) (Ans)<\/strong><\/li><li>The REST API<\/li><li>The Docker daemon<\/li><\/ul>\n\n\n\n<p><strong>What currently replaces containerd and the OCI layer in the Docker Engine on the Windows platform?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The smss process<\/li><li><strong>The Compute Services Layer (Ans)<\/strong><\/li><li>The Windows Registry<\/li><li>Hyper-V<\/li><\/ul>\n\n\n\n<p><strong>How do you tell Docker on Windows to deploy a container as a Hyper-V container?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Build the image with the <code>isolation=hyperv<\/code> tag<\/li><li>Use the <code>hyper-v container run<\/code> command instead of the <code>docker container run<\/code> command<\/li><li><strong>Pass the <code>docker container run<\/code> command the <code>--isolation=hyperv<\/code> switch (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>What are some of the features of Docker Universal Control Plane?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Docker Content Trust (DCT)<\/li><li>Management of containers and virtual machines via a single web UI<\/li><li><strong>RBAC, image scanning, image promotions (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Which of the following explains the relationship between a Docker image and a Docker container?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>A Docker container is two or more images that share a common execution environment<\/li><li>A Docker container is used to start a Docker image<\/li><li>A Docker container is a collection of image layers<\/li><li><strong>A Docker container is a running instance of an image (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Which of the following commands will initialize a new Swarm on the current node?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>docker swarm init (Ans)<\/strong><\/li><li>docker swarm create<\/li><li>docker init<\/li><\/ul>\n\n\n\n<p><strong>Which Dockerfile instruction sets the default program for a container to run, but can be overridden on the CLI at runtime?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>ENTRYPOINT<\/li><li>RUN<\/li><li><strong>CMD (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Where do you specify the default logging driver for all containers on a particular Docker host?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>logs.json<\/li><li>daemon.json<\/li><li>The Registry<\/li><li><strong>config.json (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>What underlying Windows technology, used to build containers, is broadly referred to as control groups?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The Registry<\/li><li>Hyper-V<\/li><li>Active Directory<\/li><li><strong>Job objects (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Which of the following Docker Engine components is part of the Open Container Initiative (OCI)?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>runc (Ans)<\/strong><\/li><li>containerd<\/li><li>The API<\/li><li>The daemon<\/li><\/ul>\n\n\n\n<p><strong>Which component of the Docker Engine implements the Docker API?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>The Docker daemon (Ans)<\/strong><\/li><li>The Docker client<\/li><li>The OCI layer<\/li><li>containerd<\/li><\/ul>\n\n\n\n<p><strong>Which of the following is needed to deploy a Docker Stack?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Compose v2 file format<\/li><li>Kubernetes<\/li><li><strong>Compose v3 file format (Ans)<\/strong><\/li><li>Docker Cloud<\/li><\/ul>\n\n\n\n<p><strong>What is the name of the configuration file that describes how to build a new Docker image with your app-code inside?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>dockerfile (Ans)<\/strong><\/li><li>config.json<\/li><li>docker-file<\/li><li>dockerfile.json<\/li><\/ul>\n\n\n\n<p><strong>Which of the following is the worst number of managers for high availability?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>1<\/li><li>5<\/li><li><strong>2 (Ans)<\/strong><\/li><li>7<\/li><\/ul>\n\n\n\n<p><strong>Which command can you use to get a shell session inside of a container?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>docker container login<\/li><li><strong>docker container exec (Ans)<\/strong><\/li><li>docker container shell<\/li><li>docker container ssh<\/li><\/ul>\n\n\n\n<p><strong>Which Docker EE technology performs layer-7 (application layer) load balancing?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The ingress network<\/li><li>The Service Mesh<\/li><li><strong>The HTTP Routing Mesh (HRM) (Ans)<\/strong><\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li><\/li><\/ul>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_93521\"><iframe loading=\"lazy\"  id=\"_ytid_73494\"  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_93521\"  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 are true about Docker volumes? They must exist on a SAN or NAS They are decoupled from containers (Ans) They are higher performance than graph driver&#8230; <\/p>\n","protected":false},"author":1,"featured_media":9474,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[4862],"tags":[767,567,766,482],"class_list":["post-9139","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-docker","tag-answer","tag-docker","tag-interview","tag-questions"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/9139","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=9139"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/9139\/revisions"}],"predecessor-version":[{"id":25009,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/9139\/revisions\/25009"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/9474"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=9139"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=9139"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=9139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}