Elasticsearch easy
Elasticsearch is a 'document-oriented' database. In what standard format does it store and transmit these documents?
- A Protocol Buffers (Protobuf)
- B BSON (Binary JSON)
- C YAML (Yet Another Markup Language)
- D JSON (JavaScript Object Notation)
Answer: D. JSON (JavaScript Object Notation)
Elasticsearch uses semi-structured JSON. This allows for a flexible schema where different documents in the same index can have different fields, making it ideal for the evolving data structures found in logs and web applications.
One system design question a day, with spaced repetition so the ones you miss come back.
Get the appRelated questions
- What are the two primary reasons for configuring one or more 'Replica Shards' for an index?
- When a String field is mapped as `text`, what process is performed to enable full-text search capability?
- What is the primary benefit of splitting an Elasticsearch index into multiple 'Primary Shards'?
- Every document stored in an Elasticsearch index is uniquely tracked by which mandatory metadata field?
- Elasticsearch search results include a metadata field called `_score`. What does this value primarily indicate?
- What is the primary architectural purpose of Elasticsearch in a modern software stack?