DCA Exam Question 51

Will this command mount the host's '/data' directory to the ubuntu container in read-only mode?
Solution: 'docker run --add-volume /data /mydata -read-only ubuntu'
  • DCA Exam Question 52

    During development of an application meant to be orchestrated by Kubernetes, you want to mount the /data directory on your laptop into a container.
    Will this strategy successfully accomplish this?
    Solution: Create a PersistentVolume with storageciass: "" and hostPath: /data, and a persistentVolumeClaim requesting this PV. Then use that PVC to populate a volume in a pod
  • 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 events deployment api
  • DCA Exam Question 54

    A company's security policy specifies that development and production containers must run on separate nodes in a given Swarm cluster.
    Can this be used to schedule containers to meet the security policy requirements?
    Solution: resource reservation
  • DCA Exam Question 55

    The following Docker Compose file is deployed as a stack:

    Is this statement correct about this health check definition?
    Solution: Health checks test for app health ten seconds apart. If the test fails, the container will be restarted three times before it gets rescheduled.