Docsity

Elastic Stack Elastic Certified Engineer Practice Exam, Exams of Technology

Toggle sidebar
bg1
Elastic Stack Elastic Certified Engineer
Practice Exam
**Question 1.** Which setting determines how many primary shards an index will have when it
is created?
A) number_of_replicas
B) index.routing.allocation.enable
C) number_of_shards
D) index.refresh_interval
Answer: C
Explanation: The `number_of_shards` index setting defines the count of primary shards
allocated at index creation time.
**Question 2.** In Elasticsearch 7.x, what happened to mapping types?
A) They were renamed to “document types”
B) They were completely removed
C) They became mandatory for each index
D) They were merged into a single global type
Answer: B
Explanation: Starting with Elasticsearch 7.0, mapping types were removed; an index can contain
only one type of document.
**Question 3.** Which component is used to automatically apply settings and mappings to
newly created indices that match a naming pattern?
A) Index alias
B) Index template
C) Data stream
D) ILM policy
Answer: B
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62

Partial preview of the text

Download Elastic Stack Elastic Certified Engineer Practice Exam and more Exams Technology in PDF only on Docsity!

Practice Exam

Question 1. Which setting determines how many primary shards an index will have when it is created? A) number_of_replicas B) index.routing.allocation.enable C) number_of_shards D) index.refresh_interval Answer: C Explanation: The number_of_shards index setting defines the count of primary shards allocated at index creation time. Question 2. In Elasticsearch 7.x, what happened to mapping types? A) They were renamed to “document types” B) They were completely removed C) They became mandatory for each index D) They were merged into a single global type Answer: B Explanation: Starting with Elasticsearch 7.0, mapping types were removed; an index can contain only one type of document. Question 3. Which component is used to automatically apply settings and mappings to newly created indices that match a naming pattern? A) Index alias B) Index template C) Data stream D) ILM policy Answer: B

Practice Exam

Explanation: Index templates define settings and mappings applied to any index whose name matches the template’s pattern. Question 4. When defining a component template, what is the primary purpose? A) To store snapshot configurations B) To hold reusable settings or mappings that can be composed into an index template C) To create a searchable snapshot tier D) To define a data stream lifecycle Answer: B Explanation: Component templates are building blocks that contain settings, mappings, or aliases and can be combined into a full index template. Question 5. Which of the following best describes a data stream in Elasticsearch? A) A virtual index that automatically rolls over based on time or size B) A snapshot of an index stored on cold tier C) A static backup of a cluster D) An ingest pipeline that enriches data in real time Answer: A Explanation: Data streams are logical collections of backing indices that roll over automatically, ideal for time‑series data. Question 6. How would you configure a dynamic template to map all fields ending with “_id” as keyword type? A) Use a runtime field definition in the search request B) Define a dynamic template with a match_pattern of “regex” and match “.*_id” C) Set the field’s analyzer to “keyword” in the index settings

Practice Exam

A) Nested field B) Multi‑field C) Object field D) Join field Answer: B Explanation: Multi‑fields let a field have multiple representations, e.g., text for full‑text search and keyword for aggregations. Question 10. To store an array of objects where each object contains its own fields, which mapping type should be used? A) keyword B) nested C) flattened D) binary Answer: B Explanation: The nested type preserves the relationship between objects in an array, allowing accurate queries on individual objects. Question 11. Which ingest processor would you use to convert a string field containing a date into an actual date type? A) convert B) date C) dissect D) set Answer: B

Practice Exam

Explanation: The date processor parses a string according to a specified format and stores it as a date type. Question 12. The grok processor is primarily used for which purpose? A) Enriching IP addresses with geo‑location data B) Splitting a string into multiple fields using regular expressions C) Adding a timestamp to documents D) Removing unwanted fields from a document Answer: B Explanation: grok applies patterns (regular expressions) to extract structured fields from unstructured text. Question 13. Which ingest processor can expand dot‑notation field names into nested objects? A) dot_expander B) rename C) split D) json Answer: A Explanation: The dot_expander processor creates nested objects from field names that contain dots. Question 14. When using the Reindex API to move data from index A to index B while changing a field’s type, which parameter is essential? A) conflicts=proceed B) script with a painless script that modifies the field

Practice Exam

B) should C) filter D) must_not Answer: C Explanation: The filter clause is cached and does not contribute to the relevance score. Question 18. To search across multiple remote clusters, which feature must be enabled? A) Snapshot Lifecycle Management (SLM) B) Cross‑Cluster Search (CCS) C) Index Lifecycle Management (ILM) D) Remote reindex Answer: B Explanation: CCS allows a single query to target indices residing in different clusters. Question 19. Which API is used to run a search request asynchronously, returning a task ID that can be polled later? A) _search with wait_for_completion=false B) _async_search C) _search/template D) _tasks Answer: B Explanation: The _async_search API executes a search in the background and provides a task ID for later retrieval. Question 20. Which aggregation type would you use to calculate the average value of a numeric field?

Practice Exam

A) sum aggregation B) avg aggregation C) min aggregation D) max aggregation Answer: B Explanation: The avg aggregation computes the arithmetic mean of the specified numeric field. Question 21. A date_histogram aggregation is best suited for which purpose? A) Grouping documents by discrete categories B) Creating buckets based on time intervals (e.g., daily) C) Calculating statistical metrics on a field D) Returning the top N terms Answer: B Explanation: date_histogram creates time‑based buckets, such as per hour, day, or month. Question 22. In a terms aggregation, what does the size parameter control? A) Number of documents returned per bucket B) Number of buckets (terms) returned C) Maximum length of each term string D) Number of shards to query Answer: B Explanation: size defines how many term buckets are returned, typically the top N terms by doc count.

Practice Exam

Explanation: The sort parameter expects an array of field specifications, each with an order key. Question 26. Which pagination method is more efficient for deep paging (e.g., page 1000) and why? A) from/size because it’s simple to implement B) search_after because it avoids skipping large numbers of hits internally C) scroll because it returns a snapshot of the index D) pit (point‑in‑time) because it caches the result set Answer: B Explanation: search_after uses the sort values of the last hit to continue, avoiding the performance penalty of large from offsets. Question 27. How does the highlight feature work in Elasticsearch? A) It stores a separate copy of the document with marked terms B) It returns snippets of the original _source with matching terms wrapped in tags C) It modifies the index mapping to include highlighted fields D) It creates a new index containing only highlighted fragments Answer: B Explanation: Highlighting extracts fragments from the _source (or stored fields) and wraps matching terms with pre/post tags. Question 28. An index alias can point to multiple indices. Which option is true when querying such an alias? A) Results are merged and de‑duplicated automatically B) Only the first index in the alias list is queried

Practice Exam

C) All indices are queried, and results are combined as if they were a single index D) Aliases cannot be used for search operations Answer: C Explanation: An alias that references multiple indices behaves like a virtual index; queries are executed against all linked indices and results are combined. Question 29. Which API allows you to store a reusable search request that can be referenced later? A) _search/template B) _search/template (PUT) to create a stored search template C) _search/template (GET) to retrieve a template D) Both B and C are correct Answer: D Explanation: You can create a stored search template with a PUT request and later retrieve or execute it with GET. Question 30. When a shard is in the unassigned state, which action can help the cluster recover it? A) Increase cluster.routing.allocation.enable to all B) Delete the index containing the shard C) Set cluster.routing.rebalance.enable to none D) Disable shard allocation entirely Answer: A Explanation: Setting cluster.routing.allocation.enable to all allows the cluster to allocate unassigned shards to suitable nodes.

Practice Exam

Explanation: The _tasks API provides detailed information about ongoing tasks across the cluster. Question 34. To configure a snapshot repository that stores data on Amazon S3, which setting is mandatory? A) type: s3 B) location: /mount/s3 C) compress: true D) max_snapshot_bytes_per_sec Answer: A Explanation: The repository definition must specify type: s3 along with credentials and bucket information. Question 35. Which of the following statements about Snapshot Lifecycle Management (SLM) is correct? A) SLM can only create snapshots of a single index at a time B) SLM policies are stored as documents in the .slm-history index C) SLM can automatically delete older snapshots based on a retention policy D) SLM snapshots are always stored on the frozen tier Answer: C Explanation: SLM policies can define retention rules to automatically delete snapshots after a certain age or count. Question 36. When restoring a snapshot, which option allows you to rename the restored index? A) rename_pattern and rename_replacement B) index_settings with index.name

Practice Exam

C) target_index parameter D) snapshot_name can include the new index name Answer: A Explanation: rename_pattern and rename_replacement let you transform the original index name during restore. Question 37. What does the freeze action in an ILM policy do to an index’s performance characteristics? A) Improves query latency by loading all segments into memory B) Reduces memory usage by loading only necessary segments on demand C) Moves the index to hot nodes for fast access D) Deletes the index after archiving it to cold tier Answer: B Explanation: Frozen indices keep most data on disk and load only required segments, drastically lowering memory consumption while still being searchable. Question 38. To enable Cross‑Cluster Replication (CCR), which component must be configured on the follower cluster? A) Remote cluster settings for the leader cluster B) Snapshot repository pointing to the leader C) Index alias named leader-* D) ILM policy with follow phase Answer: A Explanation: The follower cluster needs a remote cluster configuration that points to the leader cluster to pull replication data.

Practice Exam

Answer: B Explanation: index.number_of_replicas sets the default replica count applied when a new index is created. Question 42. When using the geoip processor in an ingest pipeline, what is the required input field? A) source.ip B) ip (a string containing an IP address) C) location (latitude,longitude) D) geo_point Answer: B Explanation: The geoip processor expects a field containing an IP address string to enrich it with geographic information. Question 43. Which of the following is NOT a valid bool query clause? A) must B) filter C) should_not D) must_not Answer: C Explanation: The correct clause for negative logic is must_not; should_not does not exist. Question 44. What does the size parameter control in a search request? A) Number of shards to query B) Maximum number of documents returned in the response C) Number of terms per bucket in aggregations

Practice Exam

D) Maximum size of the request body in bytes Answer: B Explanation: size determines how many top hits are returned for the query. Question 45. Which of the following best describes the purpose of the split processor? A) Divide a string field into an array using a separator B) Split a large document into multiple smaller documents C) Separate an index into multiple shards D) Partition a cluster into zones Answer: A Explanation: The split processor takes a string and splits it into an array based on a delimiter. Question 46. When defining a date_histogram aggregation, which parameter specifies the bucket interval? A) interval (deprecated) B) fixed_interval or calendar_interval C) bucket_size D) time_zone Answer: B Explanation: Modern date_histogram uses fixed_interval (exact milliseconds) or calendar_interval (e.g., "1d") to define bucket spacing. Question 47. Which ILM phase is typically responsible for deleting indices after they are no longer needed? A) Hot B) Warm

Practice Exam

B) The field name that is defined as nested in the mapping C) The index alias used for the query D) The name of the shard containing the nested documents Answer: B Explanation: The path parameter tells Elasticsearch which nested field to search within. Question 51. Which ingest processor can be used to remove fields that match a wildcard pattern? A) remove with field: "metadata.*" B) rename with a wildcard C) dissect with a pattern D) convert with a target field Answer: A Explanation: The remove processor accepts field patterns, allowing you to delete multiple fields matching a wildcard. Question 52. What does the fail processor do in an ingest pipeline? A) It logs a warning but continues processing B) It throws an exception, causing the document to be rejected C) It retries the pipeline after a delay D) It silently drops the document without error Answer: B Explanation: The fail processor stops pipeline execution and rejects the document with the provided error message. Question 53. Which API can be used to retrieve the mapping of an existing index?

Practice Exam

A) GET /<index>/_settings B) GET /<index>/_mapping C) GET /_cat/indices D) GET /_cluster/state Answer: B Explanation: The _mapping endpoint returns the field definitions for the specified index. Question 54. When configuring a remote cluster for CCS, which setting must be added to the follower cluster’s elasticsearch.yml? A: cluster.remote.<cluster_alias>.seedswith the seed node addresses B)cluster.ccs.enabled: trueC)node.attr.ccs: trueD)search.remote.enabled: trueAnswer: A Explanation:cluster.remote..seedsdefines the remote cluster’s transport addresses for cross‑cluster search. **Question 55.** Which of the following is a valid reason to use ashrinkaction in the warm phase of an ILM policy? A) To increase the number of primary shards for better parallelism B) To reduce the shard count, consolidating data onto fewer nodes to save resources C) To convert the index into a frozen searchable snapshot D) To delete the index after archiving Answer: B Explanation:shrink` reduces the number of primary shards, allowing the index to occupy fewer nodes and lower storage costs.