LPI
701-100
Q1:
What must be the first line of a plain text user-data configuration containing YAML configuration for cloud-init?
○
A
cloud-config:○
B
--- cloud-config○
C
#!/usr/bin/cloud-init○
D
[cloud-config]○
E
#cloud-config
LPI
701-100
Q2:
Which of the following commands lists the nodes in a Docker Swam cluster?
○
A
docker-swarm listnodes○
B
docker engine ls○
C
docker node ls○
D
docker machine ls○
E
docker swarm nodes
LPI
701-100
Q3:
Which of the statements below are true about the volume created by the following command? (Choose two correct answers.)
docker run --v /data --ti debian
☐
A
The new /data volume contains a copy of the complete container's base image.☐
B
The volume containing the container's rootfile system is retained until the /data volume is deleted.☐
C
The /data volume is discarded when the container terminates.☐
D
The /data volume can be attached to another Docker container.☐
E
If the command is run a second time, another volume for /data is created.
LPI
701-100
Q4:
Which of the following mechanisms are used for service discovery in a container environment? (Choose two correct answers.)
☐
A
The container platform offers a command like docker service discover which should be run within a container.☐
B
The container platform sets environment variables containing service information within the containers.☐
C
The container platform lists localhost ports assigned to containers in each container's /etc/services file.☐
D
The container platform mounts the sockets for all available services into the container's file systems.☐
E
The container platforms maintains DNS records which point to containers offering a specific service.
LPI
701-100
Q5:
What statement is true regarding the Swarm service created by the following command?
docker service create --name myweb --network webnet --mode global nginx
○
A
It runs exactly one time in the Swarm and cannot be scaled.○
B
It runs exactly once on each node in a Swarm.○
C
It runs on one node by default and can be scaled to an arbitrary number of replicas.○
D
It runs on all nodes which provide the network webnet.○
E
It runs only on those nodes which support the network type global.