Bird
0
0

After installing and starting Elasticsearch, what is the expected output of curl -X GET http://localhost:9200/?

medium📝 Predict Output Q4 of 15
Elasticsearch - Basics and Architecture
After installing and starting Elasticsearch, what is the expected output of curl -X GET http://localhost:9200/?
A{"name":"node-1","cluster_name":"elasticsearch","version":{"number":"8.0.0"}}
B404 Not Found
CConnection refused
DSyntax error
Step-by-Step Solution
Solution:
  1. Step 1: Understand curl request to Elasticsearch root

    Requesting the root URL returns JSON with cluster and node info.
  2. Step 2: Match expected JSON output

    {"name":"node-1","cluster_name":"elasticsearch","version":{"number":"8.0.0"}} shows typical JSON with name, cluster_name, and version fields.
  3. Final Answer:

    JSON with cluster and node info -> Option A
  4. Quick Check:

    Root curl returns JSON info [OK]
Quick Trick: Curl root URL returns cluster info JSON [OK]
Common Mistakes:
MISTAKES
  • Expecting 404 or errors if Elasticsearch is running
  • Confusing with syntax errors

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes