C. Histogram aggregation cannot be nested inside aggs
D. The interval value should be a number, not a string
Solution
Step 1: Check the type of the interval parameter
The interval must be a numeric value, but here it is given as a string "100".
Step 2: Understand impact of wrong interval type
Using a string instead of a number causes a syntax error or unexpected behavior in Elasticsearch.
Final Answer:
The interval value should be a number, not a string -> Option D
Quick Check:
Interval must be numeric, not string [OK]
Hint: Interval must be numeric, not quoted string [OK]
Common Mistakes:
Using string instead of number for interval
Assuming field name is wrong without checking
Thinking histogram can't be inside aggs
5.
You want to group sales data by price ranges of 100 units and then within each price range, group by product category. Which aggregation structure should you use?