Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

Docker Interview Questions and Answer Part – 19

What can you use to run multiple containers from a single YAML file?

  • Dockerfile
  • docker run
  • docker-compose (Ans)
  • docker run containers.yml

Which of the following is not a benefit of Virtual Memory?

  • Use more memory than is physically available
  • Processes can use memory as if they are the only process running
  • Compress data stored in memory to increase capacity (Ans)
  • Don’t have to save entire contents of memory when switching processes

Which of the following is not a benefit of a union filesystem for containers?

  • Decrease startup time for containers with images pre-extracted into an image cache
  • Save disk space by sharing common files with the host OS filesystem via symbolic links (Ans)
  • Share page cache entries to reduce memory overhead
  • Save disk space with readonly layers reused among containers

What does it mean for two containers to share a network namespace?

  • They share the host’s (or root) network namespace.
  • They have isolated virtual network adapters.
  • They share a virtual network but still have isolated virtual network adapters.
  • They share a single network stack. (Ans)

Which networking approach would you use if you don’t trust an application?

  • Share network with other containers
  • None (Ans)
  • Share with host
  • Virtual network

When you create a process with separate namespaces (network, mount, IPC, UTS, PID, and user), what is the net effect?

  • It appears as if the process is running on a different machine. (Ans)
  • Processses get their own isolated instances of system resources.
  • Processes can share system resources.

Why do you use tools like Docker, LXC and rkt?

  • To kill processes that consume too much of a system resource
  • To configure the additional isolation necessary to create a container (Ans)
  • To create VMs to isolate processes
  • To emulate virtual resources per process

When a mount namespace is created, what does it contain?

  • An empty list of mount points
  • The list of mount points passed when creating the new mount namespace
  • A default set of mount points from /etc/mountns.defaults
  • Essentially a copy of the existing filesystem (Ans)

What does Layered Responsibility mean?

  • You can rely upon others for base layers in container images. (Ans)
  • You can’t see the layers beneath yours in container images.
  • You don’t ever have to see the layers beneath yours in container images.
  • You need to validate that all layers are built properly when using an image.

What is a context switch?

  • When the executing process is changed (Ans)
  • When the executing cgroup is changed
  • When the contents of virtual memory is loaded into physical memory
  • When the contents of physical memory is swapped to disk

What is a substantial reason for moving from a single node to a multi-node cluster?

  • It’s a best practice to use multi-node clusters in production.
  • It’s a best practice to run individual containers on individual nodes.
  • When containers saturate the resources of a single node (Ans)
  • When containers conflict with each other, i.e. port conflicts or file system conflicts

Where is there a natural separation in responsibility when building a cluster?

  • Running apps & running VMs
  • Node operating system & cluster services
  • Machine hardware & operating system
  • Provisioning nodes & running apps (Ans)

What is the net effect of a separate network namespace? Each process can have an entirely separate __ .

  • hostname
  • IP address (Ans)
  • filesystem
  • list of processes

What runtime or execution environments can be used with a cluster?

  • Containers
  • chroot Processes
  • All of these (Ans)
  • Virtual Machines

What does an Image from a site like Docker Hub provide?

  • A container’s hostname
  • The host filesystem to run a container
  • A container’s network configuration
  • The entire host filesystem
  • A container’s filesystem (Ans)

What is the net effect of a separate IPC namespace? Each process can have an entirely separate ______ .

  • message queue (Ans)
  • IP address
  • filesystem
  • list of processes
  • hostname

What does a system container run?

  • Runs an OS init process, effectively emulating a VM (Ans)
  • Runs a single application
  • Runs the container runtime
  • Runs the host OS init process

Why are images so valuable?

  • Manually configuring a hostname for a container is hard work.
  • Manually building a filesystem for a container is hard work. (Ans)
  • Manually configuring service discovery for a container is hard work.
  • Manually configuring networking for a container is hard work.

What do capabilities isolate?

  • Privileged operations (Ans)
  • Unprivileged processes
  • Privileged processes
  • Unprivileged operations

Which of the following is NOT an analogy for namespaces?

  • A slice of a pizza per process (Ans)
  • A whole pizza per process
  • Database
  • List

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at <a href="https://www.cotocus.com/">Cotocus</a>. I share tech blog at <a href="https://www.devopsschool.com/">DevOps School</a>, travel stories at <a href="https://www.holidaylandmark.com/">Holiday Landmark</a>, stock market tips at <a href="https://www.stocksmantra.in/">Stocks Mantra</a>, health and fitness guidance at <a href="https://www.mymedicplus.com/">My Medic Plus</a>, product reviews at <a href="https://www.truereviewnow.com/">TrueReviewNow</a> , and SEO strategies at <a href="https://www.wizbrand.com/">Wizbrand.</a> Do you want to learn <a href="https://www.quantumuting.com/">Quantum Computing</a>? <strong>Please find my social handles as below;</strong> <a href="https://www.rajeshkumar.xyz/">Rajesh Kumar Personal Website</a> <a href="https://www.youtube.com/TheDevOpsSchool">Rajesh Kumar at YOUTUBE</a> <a href="https://www.instagram.com/rajeshkumarin">Rajesh Kumar at INSTAGRAM</a> <a href="https://x.com/RajeshKumarIn">Rajesh Kumar at X</a> <a href="https://www.facebook.com/RajeshKumarLog">Rajesh Kumar at FACEBOOK</a> <a href="https://www.linkedin.com/in/rajeshkumarin/">Rajesh Kumar at LINKEDIN</a> <a href="https://www.wizbrand.com/rajeshkumar">Rajesh Kumar at WIZBRAND</a> <a href="https://www.rajeshkumar.xyz/dailylogs">Rajesh Kumar DailyLogs</a>

Related Posts

Docker Tutorials: Docker Image – Understanding Dockerfiles instructions & options

Here’s a step-by-step tutorial for Dockerfile, including explanations and examples for each major command. Dockerfile Tutorial A Dockerfile is a text file containing instructions to build a…

Read More

Docker Tutorials: Docker Image – Example and Sample Programs of Dockerfile

Reference Rajesh Kumar I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at Cotocus. I share tech blog at DevOps School, travel stories…

Read More

Docker Tutorials: Installation and Configurations

Docker Installation in Centos/RHEL Method -1: How to install Docker Community Edition via YUM? Step 1 – Install required packages. yum-utils provides the yum-config-manager utility, and device-mapper-persistent-data…

Read More

Docker Tutorials: How to Install Docker in Ubuntu?

Install Docker Engine in Ubuntu NOTE – All commands you must run as root user or add a current user into a linux group name called “docker”…

Read More

Docker Lab, Excercise & Assignment – 7 – Docker Volume

Below is a very detailed tutorial and lab manual for learning Docker Volumes, using the Ubuntu image for practical, hands-on labs. This covers all major types of…

Read More

Docker Lab, Excercise & Assignment – 4 – Docker Networking

Here’s an in-depth, step-by-step tutorial and lab manual for Docker Networking—starting from basics, covering all core concepts, and providing a hands-on guide to every feature and command….

Read More