ElasticSearch – Search Raptors Interview Question-Answer Part – 2

Q.1 What is an API?

       A. Application Program Interference

       B. A set of defined methods of communication between several software programs

       C. Both the options

       D. None of the options

Ans : A set of defined methods of communication between several software programs


Q.2 What does the yellow state of a cluster mean?

       A. It means all the shards are assigned in the cluster

       B. It means any of the replica shard is not assigned

       C. It means any of the primary shard is not assigned

       D. All the options

Ans : It means any of the replica shard is not assigned


Q.3 Which analyzer returns the entire input string as a single token?

       A. Whitespace Analyzer

       B. Simple Analyzer

       C. Stop Analyzer

       D. Keyword Analyzer

Ans : Keyword Analyzer


Q.4 You can delete a document using _________.

       A. curl -XDELETE ‘localhost:9200/aliens/external/1’

       B. curl -XDELETE ‘localhost:9200/aliens/1’

Ans : curl -XDELETE ‘localhost:9200/aliens/external/1’


Q.5 There is a dedicated array type in Elasticsearch.

       A. True

       B. False

Ans : False


Q.6 You can remove a plugin using _______.

       A. sudo bin/elasticsearch-plugin remove

       B. sudo bin/elasticsearch-plugin remove [pluginname]

Ans : sudo bin/elasticsearch-plugin remove [pluginname]


Q.7 You can create an Index using ________.

       A. curl -XPUT ‘localhost:9200/exampleIndex’

       B. curl -XPUT ‘localhost:9200/exampleindex’

       C. Both the options

       D. None of the options

Ans : curl -XPUT ‘localhost:9200/exampleindex’


Q.8 You can check the cluster’s health using _________.

       A. curl -XGET ‘localhost:9200/_cat/health’

       B. curl -XGET ‘localhost:9200/_cat/health?v&pretty’

       C. Both the options

       D. None of the options

Ans : curl -XGET ‘localhost:9200/_cat/health?v&pretty’


Q.9 What of the following is/are the feature(s) of a Fingerprint analyzer?

       A. The input text is normalized

       B. The input text is sorted

       C. The input text is made lowercase

       D. All the options

Ans : All the options


Q.10 How many primary shards are created by default?

       A. 2

       B. 3

       C. 4

       D. 5

Ans : 5


Q.11 What do we use for ‘ in the text I’ve?

       A. \u0027

       B. \u0026

       C. \u0012

       D. \u0018

Ans : \u0027


Q.12 The following languages are supported by the language analyzer, except ________.

       A. Japanese

       B. Hindi

       C. Arabic

       D. English

Ans : Japanese


Q.13 Which is a plugin type in Elasticsearch?

       A. Core plugins

       B. Community contributed plugins

       C. Both the options

       D. None of the options

Ans : Both the options


Q.14 What are Term-based Search Queries?

       A. Queries that search for the exact term that is present within the inverted text.

       B. Queries that search for the nearby terms that are present within the inverted text.

Ans : Queries that search for the exact term that is present within the inverted text.


Q.15 Elasticsearch can automatically create the mapping if the case mapping is not defined.

       A. True

       B. False

Ans : True


Q.16 Documents can have inner objects.

       A. True

       B. False

Ans : True


Q.17 For what purpose is Query DSL used in Elasticsearch?

       A. For Request Body Type search

       B. Only for simple search

Ans : For Request Body Type search


Q.18 You can perform a URI search using ______.

       A. curl -XGET “localhost:9200/_search=lastname:perkins&pretty”

       B. curl -XGET “localhost:9200/_search?q=lastname:perkins&pretty”

Ans : curl -XGET “localhost:9200/_search?q=lastname:perkins&pretty”


Q.19 In range query, what does gte and lt mean?

       A. Greater than or less than

       B. Greater than or equal to

       C. Greater than or equal to/Less than

       D. Greater than/Less than

Ans : Greater than or equal to/Less than


Q.20 Bulk Retrieve is implemented using ________.

       A. multi-get API

       B. mget API

       C. Both the options

       D. None of the options

Ans : Both the options


Q.21 Prequerying each shard to fetch the term and document frequencies is done in ____________.

       A. DFS Query, then in Fetch

       B. Fetch

       C. Query

Ans : DFS Query, then in Fetch


Q.22 How can you perform a match_all?

       A. {
  “query”: {
    “match_all”: {}
  }
}

       B. {
  “query”: {
    “match_all”
  }
}

Ans : {
  “query”: {
    “match_all”: {}
  }
}


Leave a Comment