Bird
0
0

Which of the following is the correct JSON syntax to define a rollover action in an ILM policy?

easy📝 Syntax Q3 of 15
Elasticsearch - Index Management
Which of the following is the correct JSON syntax to define a rollover action in an ILM policy?
A{"rollover": {"max_size": "50gb", "max_age": "30d"}}
B{"actions": {"rollover": {"max_size": "50gb", "max_age": "30d"}}}
C{"rollover": {"max_size": 50, "max_age": 30}}
D{"rollover": {"size": "50gb", "age": "30d"}}
Step-by-Step Solution
Solution:
  1. Step 1: Understand ILM rollover action structure

    The rollover action must be inside an "actions" object with correct keys like "max_size" and "max_age" as strings with units.
  2. Step 2: Check each option's syntax

    {"actions": {"rollover": {"max_size": "50gb", "max_age": "30d"}}} correctly wraps rollover inside actions and uses proper key names and value formats.
  3. Final Answer:

    {"actions": {"rollover": {"max_size": "50gb", "max_age": "30d"}}} -> Option B
  4. Quick Check:

    Rollover action syntax = actions wrapper + correct keys [OK]
Quick Trick: Rollover must be inside 'actions' with correct keys [OK]
Common Mistakes:
MISTAKES
  • Missing 'actions' wrapper object
  • Using numeric values without units
  • Incorrect key names like 'size' or 'age'

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes