Bird
0
0

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

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

    Rollover requires conditions like max_size and max_age in a JSON object.
  2. Step 2: Validate options

    "rollover": { "max_size": "50gb", "max_age": "30d" } correctly uses max_size and max_age keys with proper values.
  3. Final Answer:

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

    Rollover needs max_size and max_age keys = A [OK]
Quick Trick: Rollover needs max_size and max_age keys in JSON [OK]
Common Mistakes:
MISTAKES
  • Using string 'true' instead of object for rollover
  • Missing max_age or max_size keys
  • Using incorrect key names like 'size'

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes