1Z0-997-25 Question 166
Select 2You manage a multi-tier enterprise application running in multiple OCI compartments. The application team needs a single platform to observe logs, metrics, and traces for faster troubleshooting. Which two steps would help you achieve this integrated observability using OCI services?
- A
Create a single logging compartment for the entire application and rely on automatic log forwarding to Logging Analytics.
- B
Set up a Service Connector to route logs from each compartment to a central Logging Analytics instance.
- C
Use the default trace aggregator in the Virtual Cloud Network to collect transaction traces without deploying any additional agents.
- D
Configure a Logging Search that automatically gathers logs from all existing compartments without further setup.
- E
Deploy the OCI Application Performance Monitoring (APM) agents on your application hosts and link trace data to logs in Logging Analytics.
Show answer and explanation
Correct answers: B, E
Explanation
OCI provides various observability services�Logging, Service Connector Hub, Logging Analytics, and Application Performance Monitoring (APM)�to unify monitoring, log analytics, and distributed tracing. To get a single, integrated view, you must set up connectors to route logs (Option 2) and deploy agents to capture application traces (Option 5). For more details, refer to Oracle Cloud Infrastructure documentation on Observability & Management, specifically the Logging and APM service guides.
- A. Incorrect.
Option 1: Incorrect. Simply creating a single logging compartment and expecting automatic log forwarding is not sufficient. You still need to configure log sources and forwarding, as logs do not automatically flow to Logging Analytics without an explicit connector or agent setup.
- B. Correct.
Option 2: Correct. Using Service Connector Hub to route logs from individual compartments to a central Logging Analytics instance is a recommended approach. This ensures that logs from multiple compartments are aggregated in one place, making it easier to search and analyze them.
- C. Incorrect.
Option 3: Incorrect. There is no 'default trace aggregator' in the VCN. Tracing typically requires an agent (for example, an APM agent) to instrument your code or environment; you cannot gather transaction traces automatically at the network layer without deploying additional components.
- D. Incorrect.
Option 4: Incorrect. While Logging Search can help you search logs once they are ingested, it does not auto-collect logs across compartments without proper log configuration and forwarding. You must explicitly enable logging and set up the routes to the logging destination or analytics.
- E. Correct.
Option 5: Correct. Deploying OCI APM agents on your application instances allows you to capture transaction-level traces. By integrating this data with Logging Analytics, you can correlate trace spans with relevant logs, giving you comprehensive visibility across metrics, logs, and traces.