Database Monitoring Fundamentals Certification / 05 / 05
Database Troubleshooting and Optimization
What this domain covers
This domain covers the flow of pinpointing the cause of a problem with DBM data and fixing it. There are four pillars. First, investigating latency, load, and blocking: the Blocking Queries and Calling Services tabs in the host details, and active connections. Second, diagnosing root causes: the average and p90 in the sample details, wait events, the calling service, and changes on the table side. Third, identifying performance regressions: comparing multiple explain plans, Query Regression, and outliers seen from APM views. Fourth, optimizing with Recommendations: what each type means, severity, and schema recommendations with suggested fixes. The exam asks questions such as "Which tab or which recommendation fits this symptom?" Figures are based on the official documentation as of October 2026.
Topics listed in the official guide
- Investigate latency, load, and blocking issues
- Use DBM data to diagnose root causes
- Identify performance regressions
- Apply DBM Recommendations to optimize performance
Key points
- On the Blocking Queries tab in the host details, look at the duration and executions of blocking queries and the number of waiting queries.
- On the Calling Services tab, check the deployment times of calling services and their requests per second, and match them against changes in load.
- The Explain Plan section of the sample details shows the current sample's duration and cost alongside the average and p90 over the time range.
- Moving from the Client IP tile to the network traffic view and grouping by service shows which services are issuing queries from that IP.
- In the table details of the Schemas view, you can check the definition, metrics, queries that use the table, and schema changes (the last 7 days by default).
- Even with the same text, a change in plan changes performance. Compare whether a different plan with a higher relative cost was used during the slow period.
- Recommendation types include High Impact Blocker, Long Running Query (over 30 seconds), Missing Index, Function in Filter, Query Regression, Unused Index, and High Row Count.
- High Disk Queue Depth and Low Disk Space are available only for Amazon RDS.
- Each recommendation has a severity; handle high ones first as urgent problems and treat low ones later as preventive work.
- Schema recommendations include the detected problem, an explanation of its impact, and a suggested fix that often includes an SQL statement you can run.
Terms and concepts
Investigating blocking
When update processing gets stuck, open the Blocking Queries tab in the host details on the Databases page. It visualizes blocking query duration, blocking query executions, and the number of waiting queries, and you can search and filter queries and samples and open a row to check its details. The single query making many queries wait is shown as High Impact Blocker in Recommendations.
- Database MonitoringProduct
Changes in load and calling services
If the time host load rose is close to an upstream deployment, use the Calling Services tab in the host details to check the list of services that called the host, their deployment times, requests per second, and the number of queries they ran. Opening a row takes you to the service's APM dashboard. With APM correlation, you can also break down active connections by calling service.
- APMProduct
- Service (APM)Glossary
Judging outliers in the sample details
Whether a sample from the time of an incident is anomalous compared with usual is judged in the Explain Plan section of the sample details. Along with the current sample's duration and cost, it shows the average and p90 of all snapshots collected over the time range, so you can see how far the current execution deviates. The Source, Host, and Client IP tiles at the top let you filter and move to other information.
- PercentileGlossary
Finding the service behind a client IP
If you know a sample's client IP but not which service is issuing the queries, open the network traffic view from the Client IP tile and group by service. This shows which services are issuing queries from that IP. There is no need to search every service's logs for the IP.
- Network MonitoringProduct
Narrowing down the layer of latency with wait events
To tell whether latency comes from lock waits or I/O waits, compare values by wait event type. The MySQL integration collects the average wait time per occurrence, count, maximum, and total for wait events as DBM-only metrics, tagged with wait_event. On the Queries tab of the APM service page, you can also check wait events, average latency, and the most recent explain plan for queries similar to the one in a trace.
- IntegrationsProduct
- TraceGlossary
Checking changes on the table side
When queries that read a certain table become slow, open the table details in the Schemas view. You can see the definition including columns, indexes, and foreign keys, the related table instances, metrics such as table size and sequential scans, the queries that use the table, and schema changes that affected the table (the last 7 days by default). The Metrics overview dashboard also shows the instances with the most dead rows and the instances with the longest time since the last autovacuum.
- Database MonitoringProduct
Identifying performance regressions
If a query became slow even though its text did not change, compare the multiple explain plans collected for the query and check whether a different plan with a higher relative cost was used during the slow period. Queries whose total duration increased significantly are shown as Query Regression in Recommendations. Matching the timing of the change against deployments helps narrow down candidate causes.
- Explain PlanGlossary
Types of recommendations
The main types are High Impact Blocker, which causes significant wait time for blocked queries; Long Running Query, whose duration exceeded 30 seconds; Missing Index, which recommends an index for a costly sequential scan; Function in Filter, which cannot use an index because a function is applied to a filter column; Query Regression, whose total duration increased significantly; Unused Index, which is not used in recent plans; and High Row Count, which returns many rows. High Disk Queue Depth and Low Disk Space are available only for Amazon RDS.
- Database MonitoringProduct
Deciding priority by severity
Datadog analyzes DBM metrics and samples, calculates a severity for each recommendation, and shows where the impact is greatest. High-severity recommendations may indicate urgent problems and are handled first. Low-severity ones are handled later as preventive work to keep the database healthy. Recommendations are not a feature that changes the database automatically; they show problems and next steps.
- Database MonitoringProduct
Schema recommendations and suggested fixes
Recommendations in the Schemas view include the detected problem, such as a missing primary key or an inefficient index, an explanation of why it matters and how it affects performance or integrity, and a suggested fix that is often an SQL statement you can run against the database. Users check the contents before running a fix. Unused indexes incur maintenance cost on every write, so consider whether to keep them together with Unused Index recommendations.
- Database MonitoringProduct
Check your understanding
Check what you have learned with 5 questions