DCA Exam Question 51

Does this command create a swarm service that only listens on port 53 using the UDP protocol?
Solution. 'docker service create -name dns-cache -p 53:53 -udp dns-cache'
  • DCA Exam Question 52

    The Kubernetes yaml shown below describes a networkPolicy.

    Will the networkPolicy BLOCK this traffic?
    Solution: a request issued from a pod lacking the tier: api label, to a pod bearing the tier: backend label
  • DCA Exam Question 53

    You are troubleshooting a Kubernetes deployment called api, and want to see the events table for this object.
    Does this command display it?
    Solution: kubectl logs deployment api
  • DCA Exam Question 54

    The following Docker Compose file is deployed as a stack:

    Is this statement correct about this health check definition?
    Solution. Health checks lest for app health ten seconds apart. Three failed health checks transition the container into "unhealthy" status.
  • DCA Exam Question 55

    Are these conditions sufficient for Kubernetes to dynamically provision a persistentVolume, assuming there are no limitations on the amount and type of available external storage?
    Solution: A default storageClass is specified, and subsequently a persistentVolumeClaim is created.