DCA Exam Questions
166 real DCA exam questions with expert-verified answers and explanations. Page 1 of 4.
- Question #1Storage and Volumes
Which of the following commands wifi automatically create a volume when a container is started?
Docker Volumesdocker run commandAnonymous VolumesVolume creation - Question #2Storage and Volumes
Which one of the following commands will show a list of volumes for a specific container?
docker inspectcontainer managementvolumescontainer metadata - Question #3Storage
Which of the following constitutes a production-ready devicemapper configuration for the Docker engine?
devicemapperstorage driverproduction configurationLVM - Question #4Storage and Volumes
Which one of the following commands will result in the volume being removed automatically once the container has exited?
Docker run commandVolume ManagementContainer LifecycleAnonymous Volumes - Question #5Storage and Volumes
A container named "analytics" that stores results in a volume called "data" was created. docker run -d --name=analytics -v data:/data app1 How are the results accessed in "data" wi...
Docker VolumesNamed VolumesContainer Data Sharing--volumes-from - Question #6Storage and Volumes
A server is running low on disk space. What command can be used to check the disk usage of images, containers, and volumes for Docker engine?
Disk UsageDocker System CommandsResource MonitoringStorage Management - Question #7Security
Which of the following are types of namespaces used by Docker to provide isolation? (Choose 2.)
Linux namespacesContainer isolationDocker runtimeProcess isolation - Question #8Security
Which of the following namespaces is disabled by default and must be enabled at Docker engine runtime in order to be used?
Linux NamespacesUser NamespacesDocker SecurityDaemon Configuration - Question #9Security
Which of the following statements is true about secrets?
Docker SecretsSecret ManagementDocker SwarmSecurity Best Practices - Question #10Security
Following the principle of least privilege, which of the following methods can be used to securely grnt access to the specific user to communicate to a Docker engine? (Choose two.)
Docker daemon securityTLSLeast privilegeRemote access - Question #11Installation and Configuration
Which of the following is supported by control groups?
cgroupsresource managementcontainer resourcesCPU limits - Question #12Security
Wha is the purpose of Docker Content Trust?
Docker Content TrustImage SigningImage VerificationImage Security - Question #13Security
What is the purpose of a client bundle in the Universal Control Plane?
UCP Client BundleClient CertificatesAuthenticationAccess Control - Question #14Image Creation, Management, and Registry
When using the Docker client to push an image to a registry, what environment variable is used to instruct the client to perform signing of the image?
Docker Content TrustImage SigningRegistry PushEnvironment Variables - Question #15Networking
You have created a Docker bridge network on a host with three containers attached, how do you make this containers accessible outside of the host?
Port MappingExternal AccessDocker Bridge Networks--publish - Question #16Networking
Which of the following commands will ensure that overlay traffic between service tasks is encrypted?
Overlay NetworksNetwork EncryptionDocker Networkingdocker network create - Question #17Container Orchestration
Which of the following commands will create a swarm service which only listens on port 53 using the UDP protocol?
Docker SwarmService CreationPort PublishingUDP Protocol - Question #18Networking
Which of the following is true about using the '-P' option when creating a new container?
Docker runPort mappingExposed portsNetwork binding - Question #19Orchestration
What behavior is expected when a service is created with the following command: 'docker service create --publish 8000:80 nginx'
Docker SwarmService NetworkingPort MappingRouting Mesh - Question #20Networking
Which set of commands can identify the publishd port(s) for a container? (Choose 1.)
Docker CLIPort MappingContainer InspectionNetworking - Question #21Networking
Which of the following is true about overlay networks?
Overlay NetworksDocker SwarmCluster NetworkingNetwork Architecture - Question #22Container Orchestration
Which of the following modes can be used for service discovery of a Docker swarm service (Pick 2 correct answers)
Docker SwarmService DiscoveryEndpoint ModesNetworking - Question #23Installation and Configuration
A user is having problems running Docker. Which of the following will start Docker in debug mode?
Docker daemon configurationDebug modeTroubleshootingdaemon.json - Question #24Installation and Configuration
Which command interactively monitors all container activity in the Docker engine?
Docker CLIMonitoringDocker Events - Question #25Security
What is used by the kernel to Isolate resources when running Docker containers?
cgroupsresource isolationkernelcontainer runtime - Question #26Installation and Configuration
A host machine has four CPUs available and two running containers. The sysadmin would like to assign two CPUs to each container. Which of the following commands achieves this?
Docker resource limitsCPU allocationContainer configurationControl Groups (cgroups) - Question #27Installation and Configuration
Which of the following commands is used to display system-wide Docker configuration on a host?
Docker CLISystem InformationConfigurationdocker info - Question #28Storage
If installing Docker using devicemapper for storage with the Intent to run production workloads, how should devicemapper be configured
Docker storagedevicemapperproduction workloadsLVM - Question #29Installation and Configuration
Which of the following is required to install Docker EE from a package repository?
Docker EEInstallationPackage RepositoryDocker Store - Question #30Installation and Configuration
How do you configure Docker engine to use a registry that is not configured with TLS certificates from a trusted CA?
Docker Daemon ConfigurationInsecure RegistryTLS BypassDaemon Flags - Question #31Image Creation, Management, and Registry
The output of which command can be used to find the architecture and operating system an image is compatible with?
Docker image inspectImage metadataGo templatePlatform compatibility - Question #32Image Creation, Management, and Registry
An application image runs in multiple environments, and each environment uses different certificates and ports, what is the best practice to deploy the containers?
Configuration ManagementContainer DeploymentBest PracticesEnvironment Management - Question #33Image Creation, Management, and Registry
What is the purpose of multi-stage builds?
Multi-stage buildsDockerfileImage optimizationImage size - Question #34Image Creation, Management, and Registry
From a DevOps process standpoint, it is best practice to keep changes to an application in version control. Which of the following will allow changes to a docker Image to be stored...
docker commitImage CreationImage VersioningVersion Control - Question #35Container Orchestration
When seven managers are in a swarm cluster how would they be distributed across three datacenters or availability zones?
Docker SwarmHigh AvailabilityManager NodesQuorum - Question #36Container Orchestration
What is the difference between a resource limit and a resource reservation when scheduling services?
Resource ManagementDocker SwarmService ConfigurationResource Limits and Reservations - Question #37Container Orchestration
You have just executed 'docker swarm leave' on a node. What command can be run on the same node to confirm it has left the cluster?
Docker SwarmSwarm Node ManagementSystem Information - Question #38Installation and Configuration
What is the recommended way to configure the daemon flags and environment variables for your Docker daemon in a platform independent way?
Docker DaemonConfigurationdaemon.jsonPlatform Independent - Question #39Container Orchestration
You have deployed a service to swarm. Which command uses the Docker CLI to set the number of tasks of the services to 5? (choose 2)
Docker SwarmService ScalingDocker CLIService Management - Question #40Security
A service 'wordpress' is running using a password string to connect to a non-Dockerized database service. The password string is passed into the 'wordpress' service as a Docker sec...
Docker SecretsSecret RotationService ManagementSecurity Policy - Question #41Container Orchestration
What service mode is used to deploy a single task of a service to each node?
Docker SwarmService ModesGlobal ServiceDeployment Strategy - Question #42Container Orchestration
A docker service 'web' is running with a scale factor of 1 (replicas = 1). Bob intends to use the command 'docker service update --replicas=3 web'. Alice intends to use the command...
Docker SwarmService ScalingService ManagementCLI - Question #43Container Orchestration
The following health check exists in a Dockerfile: Which of the following describes its purpose?
HEALTHCHECKDockerfileContainer HealthContainer Lifecycle - Question #44Container Orchestration
Which of these swarm manager configurations will cause the cluster to be in a lost quorum state?
Docker SwarmSwarm ManagersQuorumHigh Availability - Question #45Installation and Configuration
Which of the following commands starts a Redis container and configures it to always restart unless it is explicitly stopped or Docker is restarted?
docker runRestart policiesContainer lifecycleContainer management - Question #46Container Orchestration
After creating a new service named 'http', you notice that the new service is not registering as healthy. How do you view the list of historical tasks for that service by using the...
Docker ServicesDocker Swarm CLIService MonitoringService Tasks - Question #47Container Orchestration
Which flag for a service would allow a container to consume more than 2 GB of memory only when there is no memory contention but would also prevent a container from consuming more...
Docker Service ConfigurationResource ManagementMemory LimitsSwap Usage - Question #48Image Creation, Management, and Registry
In Docker Trusted Registry, how would a user prevent an image, for example 'nginx:latest' from being overwritten by another user with push access to the repository?
Docker Trusted RegistryImage immutabilityTag managementRegistry features - Question #49Image Creation, Management, and Registry
Which of the following is NOT backed up when performing a Docker Trusted backup operation?
DTR BackupImage RegistryBackup and RestoreData Persistence - Question #50Image Creation, Management, and Registry
Which statement is true?
DockerfileCMDENTRYPOINTContainer startup