ElasticSearch – Search Raptors Interview Question-Answer Part – 3

Q.1 Scoring adds ___________.

       A. Simplicity to the document

       B. Redundancy to the document

       C. Relevancy to the document

Ans : Relevancy to the document


Q.2 The following are full-text search based queries, except ________

       A. multi_match

       B. match_all

       C. match

       D. match_every

Ans : match_every


Q.3 Which is the correct structure of a query clause?

       A. {QUERY_NAME: { ARGUMENTS} }

       B. {QUERY_NAME: {VALUES} }

       C. {QUERY_NAME: { ARGUMENT: VALUE,…} }

Ans : {QUERY_NAME: { ARGUMENT: VALUE,…} }


Q.4 Production environment queries have which kind of search?

       A. Simple search

       B. Python search

       C. Query DSL search

       D. Java search

Ans : Query DSL search


Q.5 The process of changing unstructured text into tokens or terms is known as ____________.

       A. Hierarchy Tokenization

       B. Classical Tokenization

       C. Filtration

       D. Document Analysis

Ans : Classical Tokenization


Q.6 Every shard in the index is broadcasted with the query in the _______.

       A. Fetch phase

       B. Query phase

Ans : Query phase


Q.7 Bulk API in Elasticsearch enables us to perform ___________.

       A. Create or delete operations of a single document

       B. Multiple create or delete operations

Ans : Multiple create or delete operations


Q.8 What should you use to fetch a document?

       A. curl -XGET ‘localhost:9200/aliens/external/1’?pretty

       B. curl -XPUT ‘localhost:9200/aliens/external/1’?pretty

Ans : curl -XGET ‘localhost:9200/aliens/external/1’?pretty


Q.9 What is mapping in Elasticsearch?

       A. A process of storing and indexing a document and its fields

       B. A process of copying documents

       C. A backup process so that we always have uninterrupted service

Ans : A process of storing and indexing a document and its fields


Q.10 In the command: curl -XPUT ‘localhost:9200/aliens/external/1’ -d ‘{ “name”: “Kryption”}’ , which is the type?.

       A. alien

       B. 1

       C. external

       D. None of the options

Ans : alien


Q.11 A mapping type contains ___________.

       A. Meta-fields

       B. Fields/properties

       C. Both the options

       D. None of the options

Ans : Both the options


Q.12 How many replica shards are created by default?

       A. 1

       B. 3

       C. 4

       D. 5

Ans : 5


Q.13 What does the _all field do?

       A. It comprises of a list of fields/properties and corresponding type/data types

       B. It splits the values of the big string to small keywords

       C. It concatenates the values of all the other fields to form one big string

       D. It routes a document to a particular shard

Ans : It concatenates the values of all the other fields to form one big string


Q.14 In a RESTful web service, requests to the resource URI evoke a response in _______.

       A. XML

       B. JSON

       C. HTML

       D. Any of the options

Ans : Any of the options


Q.15 A text data type is used when ________.

       A. We want to index a field having full-text values

       B. A field with structured content is indexed

Ans : We want to index a field having full-text values


Q.16 An array is a complex data type.

       A. True

       B. False

Ans : True


Q.17 With pattern analyzer, __________.

       A. Texts are split into terms

       B. Texts are preserved from being split

Ans : Texts are split into terms


Q.18 The Keyword data type is used with _________.

       A. Unstructured content

       B. Structured content

Ans : Structured content


Q.19 What does pretty perform in CRUD commands?

       A. Makes the response in readable form

       B. Makes the response more beautiful

       C. Both the options

       D. None of the options

Ans : Makes the response in readable form


Q.20 Apart from the Elasticsearch’s usability as a text search engine, it can also be used as a _________.

       A. Java development tool

       B. SQL tool

       C. Data storage tool

       D. JSON development tool

Ans : Data storage tool


Q.21 Which is the type in the command curl -XPUT ‘localhost:9200/aliens/external/1’ -d ‘{ “name”: “Kryption”}’?

       A. 1

       B. external

       C. alien

       D. None of the options

Ans : external


Q.22 Standard tokenizer implements __________.

       A. Grammar-based tokenization

       B. Keyword Token Filter

       C. Breaking text into terms whenever it encounters a character

       D. Keyword Repeat Token Filter

Ans : Grammar-based tokenization


Leave a Comment