Bird
Raised Fist0

What is wrong with this PIT open request?

medium📝 Debug Q7 of Q15
Elasticsearch - Advanced Patterns

What is wrong with this PIT open request?
POST /_search/point_in_time
{"index": "sales", "keep_alive": "5m"}

A"keep_alive" is not supported when opening a PIT.
B"keep_alive" should be a number, not a string.
CThe <code>keep_alive</code> parameter is valid and correctly used.
D"keep_alive" must be inside the <code>pit</code> object, not at root.
Step-by-Step Solution
Solution:
  1. Step 1: Check PIT open parameters

    "keep_alive" is a valid parameter to specify PIT lifetime and accepts string durations.
  2. Step 2: Verify usage

    In the request body, "keep_alive" is correctly placed alongside "index".
  3. Final Answer:

    The keep_alive parameter is valid and correctly used. -> Option C
  4. Quick Check:

    keep_alive allowed in PIT open body [OK]
Quick Trick: Use string durations for keep_alive in PIT open [OK]
Common Mistakes:
MISTAKES
  • Thinking keep_alive is invalid in PIT open
  • Passing keep_alive as number instead of string
  • Misplacing keep_alive parameter

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes