1Z0-997-25 Question 161
Select 2You have a microservices-based application running on Oracle Kubernetes Engine (OKE) and need to aggregate logs from both containers and worker nodes into Oracle Cloud Infrastructure (OCI) Logging Analytics for unified monitoring. You also want to correlate these logs with performance metrics for faster troubleshooting. Which two actions should you take to accomplish this?
- A
Enable built-in logging for OKE clusters in the cluster� Logging settings to route logs directly to Logging Analytics without additional configuration.
- B
Configure an OCI Service Connector to forward logs from OCI Logging to Logging Analytics.
- C
Deploy the OCI Logging Analytics agent on each OKE worker node for more granular container-level log collection.
- D
Create a custom metric alarm that streams logs into Logging Analytics.
Show answer and explanation
Correct answers: B, C
Explanation
In OCI, you first enable and collect logs in the Logging service. Then, you use a Service Connector to transport those logs to Logging Analytics if you want sophisticated log analysis and correlation. For more detailed container-level information, deploying a Logging Analytics agent on each OKE worker node is recommended. Refer to the official OCI Logging and Logging Analytics documentation (https://docs.oracle.com/en-us/iaas/Content/logging/home.htm and https://docs.oracle.com/en-us/iaas/Content/logginganalytics/home.htm) for best practices and detailed configuration steps.
- A. Incorrect.
Option 1: INCORRECT. While you can enable built-in logging at the OKE cluster level to send logs to the OCI Logging service, it does not automatically deliver logs to Logging Analytics. You must configure a service connector or an agent to forward logs to Logging Analytics.
- B. Correct.
Option 2: CORRECT. A Service Connector is the recommended method to forward logs from the OCI Logging service to Logging Analytics, allowing you to centralize analysis without manually redirecting logs.
- C. Correct.
Option 3: CORRECT. Installing the Logging Analytics agent on OKE worker nodes can provide deeper insights for container-level logs, especially if you need more granular data than what the default Logging service captures.
- D. Incorrect.
Option 4: INCORRECT. OCI Alarms work with metrics rather than logs. You cannot redirect logs to Logging Analytics using an alarm. Logs must be transferred through a service connector or by using an agent.