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.
Which elements exist on the highest level of the definition of every Kubernetes Objects? (Specify the name of one of the elements, without any values.)
A. apiVersion
Which property of a Kubernetes Deployment specifies the number of instances to create for a specific Pod? (Specify ONLY the option name, no matter of its location in the object hierarchy)
A. The property you are looking for is replicas. This is a field directly under the Deployment object and specifies the number of Pod replicas that should be maintained by the Deployment.
Given the following Kubernetes deployment:
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
myapp 2 2 2 0 17s
Which command scales the application to five containers?
A. Kubectl edit deployment/myapp replicas=5
B. Kubectl deployment myapp replicas=5
C. Kubectl scale deployment/myapp -replicas=5
D. Kubectl replicate deployment/myapp +3
E. Kubectl clone deployment/myapp 3
If a Dockerfile contains the following lines:
Run cd /tmp Run echo test > test
Where is the file test located?
A. /tmp/test within the container image
B. test in the directory holding the Dockerfile
C. /root/test within the container image
D. /tmp/test on the system running docker build
E. /test within the container image
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 Compase configuration made available on the Swarm nodes?
A. Docker stack intructs the Swarm nodes to pull the images from a registry, although it does not upload the images to the registry.
B. Docker stack transfers the image from its local Docker cache to each Swarm node.
C. Docker stack passes the images to the Swarm master which distributes the images to all other Swarm nodes.
D. Docker stack builds the images locally and copies them to only those Swarm nodes which run the service.
E. Docker stack triggers the build process for the images on all nodes of the Swarm.
Which of the following expressions are valid Ansible varible names? (Choose TWO correct answers)
A. example_var
B. examplevar
C. example-var
D. example.var
E. example var
What has to be done to configure Filebeat to submit log information to Logstash? (Choose TWO correct answers)
A. Replace the input section of the Logstash configuration by a filebeat section.
B. Ad dan output.logstash section to the Filebeat configuration and specify the Logstash server in that section's hosts attribute.
C. Install Filebeat on the Logstash server and allow the Linux user running the Filebeat daemon to login to the remote host via SSH without using a password.
D. Add a beats section to the input section of the Logstash configuration.
E. Add the IP address of the Filebeat node to the option accept option in the section acl of the Logstash input configuration.