Bird
0
0

You want to create an ILM policy that:

hard🚀 Application Q15 of 15
Elasticsearch - Index Management
You want to create an ILM policy that:
- Rolls over an index at 30GB or 15 days
- Moves the index to warm phase after rollover
- Deletes the index 60 days after rollover

Which policy configuration correctly implements this?
A{"phases": {"hot": {"actions": {"rollover": {"max_size": "30gb"}}}, "warm": {"min_age": "30d", "actions": {}}, "delete": {"min_age": "60d", "actions": {"delete": {}}}}}
B{"phases": {"hot": {"actions": {"rollover": {"max_age": "15d"}}}, "warm": {"min_age": "15d", "actions": {"shrink": {}}}, "delete": {"min_age": "60d", "actions": {"delete": {}}}}}
C{"phases": {"hot": {"actions": {"rollover": {"max_size": "30gb", "max_age": "15d"}}}, "warm": {"min_age": "15d", "actions": {}}, "delete": {"min_age": "60d", "actions": {"delete": {}}}}}
D{"phases": {"hot": {"actions": {"rollover": {"max_size": "15gb", "max_age": "30d"}}}, "warm": {"min_age": "15d", "actions": {}}, "delete": {"min_age": "60d", "actions": {"delete": {}}}}}
Step-by-Step Solution
Solution:
  1. Step 1: Verify rollover conditions

    {"phases": {"hot": {"actions": {"rollover": {"max_size": "30gb", "max_age": "15d"}}}, "warm": {"min_age": "15d", "actions": {}}, "delete": {"min_age": "60d", "actions": {"delete": {}}}}} uses max_size 30gb and max_age 15d, matching requirements.
  2. Step 2: Check warm and delete phases

    Warm phase starts at 15d (after rollover), delete at 60d, as required.
  3. Step 3: Confirm other options

    Other options have wrong sizes, ages, or missing actions.
  4. Final Answer:

    {"phases": {"hot": {"actions": {"rollover": {"max_size": "30gb", "max_age": "15d"}}}, "warm": {"min_age": "15d", "actions": {}}, "delete": {"min_age": "60d", "actions": {"delete": {}}}}} -> Option C
  5. Quick Check:

    Rollover at 30gb/15d, warm at 15d, delete at 60d = B [OK]
Quick Trick: Match rollover size and age, then warm and delete min_age [OK]
Common Mistakes:
MISTAKES
  • Swapping max_size and max_age values
  • Setting warm min_age too late
  • Missing delete action or wrong min_age

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes