Free DCA Exam Braindumps (page: 18)

Page 17 of 47

Will this Linux kernel facility limit a Docker container's access to host resources, such as CPU or memory?

Solution: namespaces

  1. Yes
  2. No

Answer(s): A

Explanation:

Namespaces are a Linux kernel feature that isolate containers from each other and from the host system. They limit the access of a container to host resources, such as CPU or memory, by creating a separate namespace for each aspect of a container, such as process IDs, network interfaces, user IDs, etc. This way, a container can only see and use the resources that belong to its own namespace, and not those of other containers or the host.


Reference:

Isolate containers with a user namespace | Docker Docs

Docker overview | Docker Docs



Will this Linux kernel facility limit a Docker container's access to host resources, such as CPU or memory?

Solution: cgroups

  1. Yes
  2. No

Answer(s): A

Explanation:

= (Please check the official Docker site for the comprehensive explanation)


Reference:

(Some possible references from the web search results are)

Docker Certified Associate (DCA) Study Guide

[Docker Certified Associate (DCA) Practice Exam Questions]

[Docker Certified Associate (DCA) Exam Preparation Guide]

I hope this helps you in your exam preparation. Good luck!



An application image runs in multiple environments, with each environment using different certificates and ports.

Is this a way to provision configuration to containers at runtime?

Solution: Provision a Docker config object for each environment.

  1. Yes
  2. No

Answer(s): A

Explanation:

= Provisioning a Docker config object for each environment is a way to provision configuration to containers at runtime. Docker configs allow services to adapt their behaviour without the need to rebuild a Docker image. Services can only access configs when explicitly granted by a configs attribute within the services top-level element. As with volumes, configs are mounted as files into a service's container's filesystem. Docker configs are supported on both Linux and Windows services.


Reference:

Docker Documentation, Configs top-level element



During development of an application meant to be orchestrated by Kubernetes, you want to mount the /data directory on your laptop into a container.

Will this strategy successfully accomplish this?

Solution: Add a volume to the pod that sets hostPath.path: /data, and then mount this volume into the pod's containers as desired.

  1. Yes
  2. No

Answer(s): B

Explanation:

The solution will not work because a hostPath volume mounts a file or directory from the host node's filesystem into the pod, not from the laptop. The host node is the VM or machine where the pod is scheduled to run, not the machine where the kubectl commands are executed. Therefore, the /data directory on the laptop will not be accessible to the pod unless it is also present on the host node. A better solution would be to use a persistent volume that can be accessed from any node in the cluster, such as NFS, AWS EBS, or Azure Disk.


Reference:

1: Volumes | Kubernetes

2: Persistent Volumes | Kubernetes






Post your Comments and Discuss Docker DCA exam with other Community members:

DCA Discussions & Posts