ElasticSearch Flashcards

1
Q

What is ElasticSearch?

A

It is a highly scalable open-source full-text search and analytics engine. It allows you to store, search and analyze big volumes of data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is an Index and a Document in ES?

A

Index is a collection of documents

Document is a basic unit expressed in JSON format

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are Shards in ES?

A

Suppose you want to store billions of documents in a single index. The size could easily exceed several TBs. For that reason, you can divide the index into several parts, called shards. It allows you to horizontally split your data.

To tolerate failures, you can maintain or more copies of the shards which are called replicas.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the types of nodes in ES?

A

Master Nodes: Controls the cluster
Data Nodes: Holds data and performs data related operations such as CRUD.
Ingest Nodes: Apply an ingest pipeline to a document in order to transform and enrich the document before indexing.
Remote Nodes: Remote client
Transform Nodes: If you want to use transforms

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is Logstash?

A

It is a data processing pipeline. Allows you to collect data from a variety of sources, transform it on the fly, and send it to your desired destination

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the ELK stack?

A

It is collection of three products: ElasticSearch, Logstash and Kibana

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a replica in ElasticSearch?

A

A replica is an exact copy of the Shard which helps with high-availability and fault-tolerance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the main operations you can perform on a document?

A

Indexing, Fetching, Updating and Deleting

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Compare the different entities between ElasticSearch and a RDMBS

A
Index - Database
Type - Table
Document - Row
Field - Column
Mapping - Schema
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is Type in ES?

A

Type is like a table. It holds multiple documents.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How is Lucene related to ElasticSearch?

A

ES is built over Lucene and provides a JSON based REST API to refer to Lucene features
ES provides a distributed system on top of Lucene.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly