Question 380
An advertising data mart needs reliable revenue and impression metrics. A production deployment uses Use supported `ROLLUP` or grouping sets with correct aggregate columns to address: A roll-up requires subtotals for each geography and a final grand total. Which signal should QA check?
Explanation
Correct Answer
The acceptance criterion for “A roll-up requires subtotals for each geography and a final grand total” is The output contains both dimensional subtotals and overall total; this is the expected evidence after Use supported `ROLLUP` or grouping sets with correct aggregate columns.
Incorrect Answers
This signal belongs to the adjacent case “Daily aggregates contain duplicate transaction IDs from retries,” whose remedy is Deduplicate by the stable transaction identifier before summing amounts. The observed result for the present requirement is The output contains both dimensional subtotals and overall total.
Each account-region-month has the correct gross total pertains to a different control (Use `GROUP BY account_id, region, month` with `SUM(revenue)`) and a different need (The pipeline must aggregate monthly gross revenue by account and region). It cannot establish that Use supported `ROLLUP` or grouping sets with correct aggregate columns met the stated goal.
This signal belongs to the adjacent case “Null monetary amounts must not silently become fabricated transactions,” whose remedy is Treat nulls under the documented business policy before aggregation. The observed result for the present requirement is The output contains both dimensional subtotals and overall total.