Datadog Database Monitoring Fundamentals free question 5 / 10 · Domain 3: Metrics, Performance, and Query Analysis
A recommendation on the Recommendations page says that a query’s execution plan performs expensive sequential scans and suggests an index. Which recommendation type is it?
- Unused Index
- High Row Count
- Missing Index
- Function in Filter
Show the answer and explanation
Answer: C
Why this is correct
The Missing Index type says the query’s execution plan performs expensive sequential scans and that Datadog recommends using an index to expedite the query. The recommendation is derived from the plans that DBM collects, so it is available where plans exist, and it points to a concrete action: create an index on the filtered columns.
Why the other options are wrong
"Unused Index" … This type says an index has not appeared in execution plans recently. It points to an index that can be dropped, not one that is missing.
"Function in Filter" … This type describes a function called on filtered columns, which leads to sequential scans for a different reason than a lacking index.
"High Row Count" … This type describes a query that returns a large number of rows in its result set. It does not describe a plan with sequential scans.
Key points
Two other types are close to it. Function in Filter explains a scan that an index cannot fix because a function is applied to the filtered column. Unused Index points the other way and suggests dropping an index that execution plans no longer use. When a recommendation is selected, the page shows a summary of the problem and potential next steps, so the index to create can be worked out from the filtered columns in the plan. The documentation puts it this way: "Missing Index The query’s execution plan performs expensive sequential scans. When detected, Datadog recommends using an index to expedite the query."