ExamGecko
Home Home / LPI / 305-300

LPI 305-300 Practice Test - Questions Answers, Page 4

Question list
Search
Search

List of questions

Search

After setting up a data container using the following command:

docker create -v /data --name datastore debian /bin/true

how is an additional new container started which shares the /data volume with the datastore container?

A.
docker run --share-with datastore --name service debian bash
A.
docker run --share-with datastore --name service debian bash
Answers
B.
docker run -v datastore:/data --name service debian bash
B.
docker run -v datastore:/data --name service debian bash
Answers
C.
docker run --volumes-from datastore --name service debian bash
C.
docker run --volumes-from datastore --name service debian bash
Answers
D.
docker run -v /data --name service debian bash
D.
docker run -v /data --name service debian bash
Answers
E.
docker run --volume-backend datastore -v /data --name service debian bash
E.
docker run --volume-backend datastore -v /data --name service debian bash
Answers
Suggested answer: C

After creating a new Docker network using the following command:

docker network create --driver bridge isolated_nw

which parameter must be added to docker create in order to attach a container to the network?

A.
--eth0=isolated_nw
A.
--eth0=isolated_nw
Answers
B.
--alias=isolated_nw
B.
--alias=isolated_nw
Answers
C.
--ethernet=isolated_nw
C.
--ethernet=isolated_nw
Answers
D.
--network=isolated_nw
D.
--network=isolated_nw
Answers
E.
--attach=isolated_nw
E.
--attach=isolated_nw
Answers
Suggested answer: D

What LXC command lists containers sorted by their CPU, block I/O or memory consumption? (Specify ONLY the command without any path or parameters.)

A.
lxctop
A.
lxctop
Answers
Suggested answer: A

Which of the following network interface types are valid in an LXD container configuration? (Choose three.)

A.
ipsec
A.
ipsec
Answers
B.
macvlan
B.
macvlan
Answers
C.
bridged
C.
bridged
Answers
D.
physical
D.
physical
Answers
E.
wifi
E.
wifi
Answers
Suggested answer: B, C, D

What happens when the following command is executed twice in succession?

docker run -tid -v data:/data debian bash

A.
The container resulting from the second invocation can only read the content of /data/ and cannot change it.
A.
The container resulting from the second invocation can only read the content of /data/ and cannot change it.
Answers
B.
Each container is equipped with its own independent data volume, available at /data/ in the respective container.
B.
Each container is equipped with its own independent data volume, available at /data/ in the respective container.
Answers
C.
Both containers share the contents of the data volume, have full permissions to alter its content and mutually see their respective changes.
C.
Both containers share the contents of the data volume, have full permissions to alter its content and mutually see their respective changes.
Answers
D.
The original content of the container image data is available in both containers, although changes stay local within each container.
D.
The original content of the container image data is available in both containers, although changes stay local within each container.
Answers
E.
The second command invocation fails with an error stating that the volume data is already associated with a running container.
E.
The second command invocation fails with an error stating that the volume data is already associated with a running container.
Answers
Suggested answer: C

What is the purpose of the kubelet service in Kubernetes?

A.
Provide a command line interface to manage Kubernetes.
A.
Provide a command line interface to manage Kubernetes.
Answers
B.
Build a container image as specified in a Dockerfile.
B.
Build a container image as specified in a Dockerfile.
Answers
C.
Manage permissions of users when interacting with the Kubernetes API.
C.
Manage permissions of users when interacting with the Kubernetes API.
Answers
D.
Run containers on the worker nodes according to the Kubernetes configuration.
D.
Run containers on the worker nodes according to the Kubernetes configuration.
Answers
E.
Store and replicate Kubernetes configuration data.
E.
Store and replicate Kubernetes configuration data.
Answers
Suggested answer: D

If docker stack is to be used to run a Docker Compose file on a Docker Swarm, how are the images referenced in the Docker Compose configuration made available on the Swarm nodes?

A.
docker stack builds the images locally and copies them to only those Swarm nodes which run the service.
A.
docker stack builds the images locally and copies them to only those Swarm nodes which run the service.
Answers
B.
docker stack passes the images to the Swarm master which distributes the images to all other Swarm nodes.
B.
docker stack passes the images to the Swarm master which distributes the images to all other Swarm nodes.
Answers
C.
docker stack instructs the Swarm nodes to pull the images from a registry, although it does not upload the images to the registry.
C.
docker stack instructs the Swarm nodes to pull the images from a registry, although it does not upload the images to the registry.
Answers
D.
docker stack transfers the image from its local Docker cache to each Swarm node.
D.
docker stack transfers the image from its local Docker cache to each Swarm node.
Answers
E.
docker stack triggers the build process for the images on all nodes of the Swarm.
E.
docker stack triggers the build process for the images on all nodes of the Swarm.
Answers
Suggested answer: C

What LXC command starts a new process within a running LXC container? (Specify ONLY the command without any path or parameters.)

A.
lxcattach
A.
lxcattach
Answers
Suggested answer: A

Which of the following commands executes a command in a running LXC container?

A.
lxc-accach
A.
lxc-accach
Answers
B.
lxc-batch
B.
lxc-batch
Answers
C.
lxc-run
C.
lxc-run
Answers
D.
lxc-enter
D.
lxc-enter
Answers
E.
lxc-eval
E.
lxc-eval
Answers
Suggested answer: A

Which of the following statements in a Dockerfile leads to a container which outputs hello world? (Choose two.)

A.
ENTRYPOINT 'echo Hello World'
A.
ENTRYPOINT 'echo Hello World'
Answers
B.
ENTRYPOINT [ 'echo hello world' ]
B.
ENTRYPOINT [ 'echo hello world' ]
Answers
C.
ENTRYPOINT [ 'echo', 'hello', 'world' ]
C.
ENTRYPOINT [ 'echo', 'hello', 'world' ]
Answers
D.
ENTRYPOINT echo Hello World
D.
ENTRYPOINT echo Hello World
Answers
E.
ENTRYPOINT 'echo', 'Hello', 'World*
E.
ENTRYPOINT 'echo', 'Hello', 'World*
Answers
Suggested answer: B, C
Total 60 questions
Go to page: of 6