Bird
0
0

Given this Elasticsearch mapping snippet, what is the maximum value that can be stored in the age field?

medium📝 Predict Output Q4 of 15
Elasticsearch - Mappings and Data Types
Given this Elasticsearch mapping snippet, what is the maximum value that can be stored in the age field?
{ "age": { "type": "short" } }
A2147483647
B32767
C127
D255
Step-by-Step Solution
Solution:
  1. Step 1: Understand the 'short' numeric type range

    The 'short' type in Elasticsearch is a 16-bit signed integer with a range from -32768 to 32767.
  2. Step 2: Identify the maximum value

    The maximum positive value for 'short' is 32767.
  3. Final Answer:

    32767 -> Option B
  4. Quick Check:

    Max value for short = 32767 [OK]
Quick Trick: Short type max value is 32767 (16-bit signed) [OK]
Common Mistakes:
MISTAKES
  • Confusing short max with integer max
  • Choosing unsigned max values
  • Mixing byte and short ranges

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes