Bird
0
0

After starting Elasticsearch, what is the expected output of running curl http://localhost:9200/?

medium📝 Predict Output Q13 of 15
Elasticsearch - Basics and Architecture
After starting Elasticsearch, what is the expected output of running curl http://localhost:9200/?
A{"name":"your-node-name","cluster_name":"elasticsearch","version":{"number":"8.0.0"},"tagline":"You Know, for Search"}
BError: Connection refused
C404 Not Found
DElasticsearch service stopped
Step-by-Step Solution
Solution:
  1. Step 1: Understand the curl command purpose

    The curl command requests the root URL of Elasticsearch, which returns JSON with node and cluster info.
  2. Step 2: Recognize the expected JSON response

    The response includes keys like 'name', 'cluster_name', 'version', and 'tagline' confirming the service is running.
  3. Final Answer:

    {"name":"your-node-name","cluster_name":"elasticsearch","version":{"number":"8.0.0"},"tagline":"You Know, for Search"} -> Option A
  4. Quick Check:

    curl root URL returns JSON info [OK]
Quick Trick: curl localhost:9200 returns JSON if Elasticsearch runs [OK]
Common Mistakes:
MISTAKES
  • Expecting plain text instead of JSON
  • Not starting Elasticsearch before curl
  • Using wrong URL or port

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes