CompTIA Linux+ (XK0-005) — Question 237
A Linux administrator deployed a large-scale application service as a containerized pod. The Linux administrator needs to continually send the application's log file to the company's central log store. Which of the following should the Linux administrator do to efficiently perform this task?
Answer options
- A. Configure a sidecar to perform log shipping.
- B. Run docker exec to access the logs within the container.
- C. Execute docker inspect and run a log rsync replication.
- D. Set up a custom task scheduler via kubectl.
Correct answer: A
Explanation
The correct answer is A, as configuring a sidecar allows for efficient log shipping without impacting the main application container. Options B and C involve manual processes that are not efficient for continuous log shipping, while D does not specifically address the need for log shipping and may introduce unnecessary complexity.