01. How does UCP provide authorized client certificate?
a) As a Client Bundle (zip file)
b) As a QR code
c) As pop-up dialog box (zip file download link)
d) None of the above
02. Where does the docker daemon persist all docker related data on host machine?
a) /var/lib/docker-ce
b) /var/lib/docker
c) none
d) /etc/docker
03. A developer is trying to push an image to the registry (dtr.example.com). The push fails with the error "denied: requested access to the resource is denied".
What should you verify the user has completed?
a) docker push <username>/<image:tag> dtr.example.com
b) docker registry login -u username -p <password> dtr.example.com
c) docker login -u <username> -p <password> dtr.example.com
d) docker images login -u <username> -p <password> dtr.example.com
04. When querying the configuration of a running container called ‘myweb’, which command would display the container’s IP address?
a) Docker run inspect myweb |grep IP
b) Docker inspect myweb | grep IP
c) Docker myweb inspect |grewp IP
d) All of the above
05. You have been asked to back up the swarm state on a Linux installation.By default where do Docker manager nodes store the swarm state and manager logs?
a) /var/lib/docker/swarm
b) /var/run/docker/swarm
c) /etc/docker/swarm
d) /run/docker/swarm
06. A node has 10 cores and 4 GB of memory available for scheduling Kubernetes workloads. Under the following specification, what is the maximum number of pods that can be scheduled on this host?
apiVersion: v1
kind: Pod
metadata:
name: busybox3
spec:
containers:
- name: dca
image: busybox
resources:
limits:
memory: "500M"
cpu: "2"
requests:
memory: "250M"
cpu: "1"
a) 4
b) 16
c) 10
d) 8
07. Docker image consists of _____ layers each of which represents a Dockerfile instruction. The layers are stacked and each one is a delta of the changes from the previous layer.
a) Movable
b) write only
c) read and write
d) read only
08. The Kubernetes yaml shown below describes a clusterIP service:
yaml
apiVersion: v1
kind: Service
metadata:
name: dca
spec:
type: clusterIP
selector:
app: nginx
ports:
- port: 8080
targetPort: 80
- port: 4443
targetPort: 443
What port on pods matching this service's selector will receive traffic sent to the service on port 8080?
a) 80/udp
b) 80/tcp
c) 8080/udp
d) 8080/tcp
09. Which of these swarm manager configurations will cause the cluster to be in a lost quorum state?
a) 5 managers of which 3 are healthy
b) 3 managers of which 2 are healthy
c) 1 managers of which 1 are healthy
d) 4 managers of which 2 are healthy
10. Bob wants to update the secret being used by one of his service. What is the correct sequence of actions to be performed by him?
a) Update the existing secret using docker secret update
b) Update the existing secret , restart all the services using this secret
c) Create a new secret, update the service to use this new secret , delete the old secret
d) Create a new secret, create a new service with this new secret, delete old secret and old service