Developing Applications Using Cisco Core Platforms and APIs (DEVCOR) — Question 151
What is an effective logging strategy according to the 12-factor app tenets?
Answer options
- A. Tag and save logs in a local document database that has querying capabilities.
- B. Back up log files in a high-availability remote cluster on the public cloud.
- C. Timestamp and save logs in a local time-series database that has querying capabilities.
- D. Capture logs by the execution environment and route to a centralized destination.
Correct answer: D
Explanation
The correct answer is D because it emphasizes the importance of capturing logs in the execution environment and sending them to a central location for easier management and analysis. Options A, B, and C suggest storing logs locally or in specific formats, which does not align with the 12-factor app's focus on centralized logging for scalability and efficiency.