Elasticsearch MCQ Questions And Answers
Elasticsearch MCQs : This section focuses on "Basics" of Elasticsearch. These Multiple Choice Questions (MCQ) should be practiced to improve the Elasticsearch skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.
1. Elasticsearch Initial release?
A. 2009
B. 2010
C. 2011
D. 2012
View Answer
Ans : B
Explanation: Initial release: 8 February 2010
2. Elasticsearch Developer?
A. Elastic NV
B. Elastic AB
C. Elastic FB
D. Elastic ZV
View Answer
Ans : A
Explanation: Developer: Elastic NV
3. Programming language used in Elasticsearch?
A. C
B. C++
C. Java
D. Python
View Answer
Ans : C
Explanation: Programming language: Java
4. The default Elasticsearch log level is?
A. Error
B. Trace
C. Warn
D. Info
View Answer
Ans : D
Explanation: For its application logs, Elasticsearch uses Apache Log4j 2 and its built-in log levels (from least to most severe) of TRACE, DEBUG, INFO, WARN, ERROR, and FATAL. The default Elasticsearch log level is INFO.
5. The Elasticsearch default communication port is?
A. 9300/tcp
B. 3000/ip
C. 9300/utp
D. 3000/tcp
View Answer
Ans : A
Explanation: The Elasticsearch default communication port is 9300/tcp (not to be confused with the HTTP interface running on port 9200/tcp by default).
6. elasticsearch instance has a maximum disk size of?
A. 256 GiB
B. 512 GiB
C. 1024 GiB
D. 128 GiB
View Answer
Ans : B
Explanation: elasticsearch instance has a maximum disk size of 512 GiB. If you stay below 80% disk usage and size your shards at 20 GiB, it can accommodate approximately 20 shards
7. Elasticsearch 7. x and later have a limit of ________ shards per node?
A. 1
B. 10
C. 100
D. 1000
View Answer
Ans : D
Explanation: Elasticsearch 7. x and later have a limit of 1,000 shards per node, adjustable using the cluster.
8. Which of the following is true about Elasticsearch?
A. Elasticsearch is a real-time distributed and open source full-text search and analytics engine.
B. Elasticsearch is scalable up to petabytes of structured and unstructured data
C. Both A and B
D. None of the above
View Answer
Ans : C
Explanation: Both A and B is true about elasticsearch.
9. Which of the following collection of one or more nodes?
A. Node
B. Cluster
C. Index
D. Document
View Answer
Ans : B
Explanation: Cluster : It is a collection of one or more nodes. Cluster provides collective indexing and search capabilities across all the nodes for entire data.
10. Which of the following is a collection of fields in a specific manner defined in JSON format?
A. Node
B. Shard
C. Replicas
D. Document
View Answer
Ans : D
Explanation: Document : It is a collection of fields in a specific manner defined in JSON format. Every document belongs to a type and resides inside an index. Every document is associated with a unique identifier called the UID.
11. Which of the following are Advantages of elasticsearch?
A. Elasticsearch is real time
B. Elasticsearch is distributed
C. Elasticsearch uses JSON objects as responses
D. All of the above
View Answer
Ans : D
Explanation: All of the above are Advantages of elasticsearch.
12. Which command to create an index?
A. PUT
B. USE
C. CREATE
D. SET
View Answer
Ans : A
Explanation: You can use the following command to create an index : PUT letsfindcourse
13. Which versioning is the default version that starts with 1 and increments with each update, deletes included?
A. Internal
B. External
C. Both A and B
D. None of the above
View Answer
Ans : A
Explanation: Internal Versioning : Internal versioning is the default version that starts with 1 and increments with each update, deletes included.
14. In URI Search, which parameter is used to specify query string?
A. lenient
B. Q
C. fields
D. sort
View Answer
Ans : B
Explanation: Q : This parameter is used to specify query string.
15. In URI Search, which parameter denotes the number of hits to return?
A. from
B. terminate_after
C. size
D. timeout
View Answer
Ans : C
Explanation: size : It denotes the number of hits to return. Defaults to 10.
16. Elasticsearch can be used as a replacement of document stores like MongoDB and RavenDB.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: Elasticsearch can be used as a replacement of document stores like MongoDB and RavenDB.
17. Handling multi-tenancy is very hard in Elasticsearch when compared to Apache Solr.
A. TRUE
B. Fasle
C. Can be true or false
D. Can not say
View Answer
Ans : B
Explanation: False, Handling multi-tenancy is very easy in Elasticsearch when compared to Apache Solr.
18. Each shard in ElasticSearch has _____________ copy of the shard.
A. 4
B. 1
C. 2
D. 3
View Answer
Ans : C
Explanation: Each shard in ElasticSearch has 2 copy of the shard. These copies are called replicas. They serve the purpose of high-availability and fault-tolerance.
19. A __________ breakdown fields values of a document into a stream, and inverted indexes are created and updates using these values, and these stream of values are stored in the document.
A. Analyzer
B. Shard
C. Filter
D. Tokenizer
View Answer
Ans : D
Explanation: A Tokenizer breakdown fields values of a document into a stream, and inverted indexes are created and updates using these values, and these stream of values are stored in the document.
20. Which aggregation is used to get the average of any numeric field present in the aggregated documents?
A. Max
B. Min
C. Count
D. Avg
View Answer
Ans : D
Explanation: Avg Aggregation : This aggregation is used to get the average of any numeric field present in the aggregated documents
Discussion