1Z0-997-25 Question 164
Select 2Your organization runs multiple microservices in dev, QA, and production compartments within a single OCI region. They need to centralize logs from across these compartments, analyze those logs in real time, and set alarms when microservice latency exceeds thresholds. Which TWO approaches should you implement using the OCI Observability platform to achieve unified log collection, analytics, and alerts?
- A
Deploy a separate instance of Logging in each compartment and duplicate logs to a single Object Storage bucket for manual analysis.
- B
Use Logging to collect logs from all compartments, route them to Logging Analytics for deeper insights, and configure Monitoring plus Alarms for metrics-based notifications.
- C
Enable debug-level logging in each microservice container and rely on Oracle Database to store these logs for real-time processing.
- D
Leverage the Service Connector Hub to automatically route logs and metrics from multiple compartments into the Observability services for comprehensive analysis.
Show answer and explanation
Correct answers: B, D
Explanation
In OCI, the Observability services (Logging, Logging Analytics, Monitoring, and Alarms) work together to provide real-time visibility across compartments. Using Logging and Logging Analytics for log collection and insights, combined with Monitoring and Alarms for threshold-based alerts, constitutes a solid observability strategy. The Service Connector Hub further simplifies routing logs and metrics from multiple compartments to the correct Observability services without requiring custom scripts. For more details, consult OCI Observability and Management documentation.
- A. Incorrect.
Option 1 is incorrect: Manually duplicating logs to Object Storage does not leverage the centralized Observability services (Logging, Logging Analytics, Monitoring) for real-time analytics, making it inefficient for quick insights and alerting.
- B. Correct.
Option 2 is correct: Logging can centralize logs from all compartments, Logging Analytics provides powerful log analysis, and Monitoring with Alarms offers thresholds-based alerts. This is a recommended best practice for OCI Observability.
- C. Incorrect.
Option 3 is incorrect: Relying on Oracle Database alone is not part of the OCI Observability platform. Debug logs should be sent to OCI Logging, not stored in the database, for effective real-time analysis.
- D. Correct.
Option 4 is correct: Service Connector Hub can seamlessly send logs and metrics from multiple compartments to Observability services (Logging, Logging Analytics, Monitoring), enabling consolidated data analysis and streamlined alerting.