Docker Certified Associate (DCA) — Question 32
When an application being managed by UCP fails, you would like a summary of all requests made to the UCP API in the hours leading up to the failure.
What must be configured correctly beforehand for this to be possible?
Answer options
- A. UCP audit logs must be set to the ‘metadata’ or ‘request’ level.
- B. All engines in the cluster must have their log driver set to the ‘metadata’ or ‘request’ level.
- C. UCP logging levels must be set to the ‘info’ or ‘debug’ level.
- D. Set the logging level in the config object for the ucp-kube-api-server container to warning or higher.
Correct answer: A
Explanation
The correct answer is A because configuring UCP audit logs to the ‘metadata’ or ‘request’ level allows for detailed tracking of API requests, which is essential for diagnosing issues post-failure. Options B and C do not specifically pertain to UCP audit logs, and option D relates to the logging level of a specific container, which does not provide the comprehensive request summary needed for analysis.