Bird
Raised Fist0

Which of the following is the correct Elasticsearch aggregation type to use for a bar chart showing counts per category?

easy📝 Syntax Q12 of Q15
Elasticsearch - Kibana and Visualization
Which of the following is the correct Elasticsearch aggregation type to use for a bar chart showing counts per category?
Aterms aggregation
Bdate_histogram aggregation
Cavg aggregation
Dmax aggregation
Step-by-Step Solution
Solution:
  1. Step 1: Identify aggregation for categories

    Terms aggregation groups data by unique values, perfect for categories.
  2. Step 2: Match aggregation to bar chart data

    Bar charts often show counts per category, so terms aggregation is correct.
  3. Final Answer:

    terms aggregation -> Option A
  4. Quick Check:

    Category counts = terms aggregation [OK]
Quick Trick: Use terms aggregation for category counts [OK]
Common Mistakes:
MISTAKES
  • Using avg or max aggregation for counts
  • Choosing date_histogram for non-date data
  • Confusing aggregation types

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes