- Lab
- A Cloud Guru
Elastic Certified Engineer Practice Exam
This practice exam aims to test the readiness of someone who wishes to pass the Elastic Certified Engineer exam. All exam objectives will be tested during this practice exam. Before considering yourself ready to take the Elastic Certified Engineer exam, you should be able to complete this practice exam within the time limit and only using official Elastic documentation as a resource.
Path Info
Table of Contents
-
Challenge
Troubleshooting, Repairing, Snapshotting, and Preparing the Cluster
- Troubleshoot and repair any shard allocation issues on both the
c1
andc2
cluster nodes, such that all non-system indices are green and replicated as much as they can be. - Enable the trial license on the
c1
andc2
clusters. - Create the
sample_data
snapshot repository at/mnt/backups/sample_data
on thec1
cluster. Then, create thenightly
snapshot lifecycle management (SLM) policy as follows:- Back up the
kibana_sample_data_ecommerce
,kibana_sample_data_logs
, andkibana_sample_data_flights
indices everyday at 2:00 a.m. - Back up to the
sample_data
repository. - Name each snapshot
nightly-
, followed by the current date. - Do not include the cluster state.
- Keep at least 7 snapshots but no more than 30.
- Back up the
- Create the
shakespeare
snapshot repository at/mnt/backups/shakespeare
on thec1
cluster. Then, create theoriginal
snapshot of theshakespeare
index at theshakespeare
repository. - Create the
alerts_policy
index lifecycle management (ILM) policy on thec1
cluster with the following criteria:- Hot phase:
- Roll the index over at the max primary shard size of
10gb
. - After rollover, force merge the index into
1
segment for increased read performance. - Set the index as read-only after force merging.
- Roll the index over at the max primary shard size of
- Cold phase:
- Enter the cold phase after
30
days. - Convert the index to a mounted searchable snapshot in the
sample_data
repository.
- Enter the cold phase after
- Delete phase:
- Enter the delete phase after
180
days. - Delete the index.
- Enter the delete phase after
- Hot phase:
- Create the
strings_as_keywords
component template on thec1
cluster to dynamically convert allstring
fields intokeyword
fields with a max size of256
characters. - Create the
shards
component template on thec1
cluster to configure1
primary and0
replica shards. - Create the
alerts_template
index template on thec1
cluster with the following criteria:- Configure the template to manage the
alerts_stream
data stream. - Compose the template of the
stings_as_keywords
andshards
component templates. - Configure the template to use the
alerts_policy
ILM policy.
- Configure the template to manage the
- Start the
alerts_stream
data stream on thec1
cluster.
- Troubleshoot and repair any shard allocation issues on both the
-
Challenge
Ingesting, Updating, and Reindexing Data
- Download and extract the crop_yields dataset. Then use the Data Visualizer to index the dataset to a new
crop_yields
index with1
primary and0
replica shards on thec1
cluster. - Remotely reindex the
accounts
index from thec2
cluster to thec1
cluster with the following transformations:- Remove the
account_number
,age
, andgender
fields. - Index all string fields as type
keyword
with the exception of theaddress
field, which should be indexed as atext
field with akeyword
multi-field that only indexes the first 256 characters. - Index the
balance
field as typedouble
. - Add a
tos_ack
field with typeboolean
. - Set the
tos_ack
field tofalse
for accounts withstate
equal toVA
and set thetos_ack
field totrue
for all other accounts. - Allocate the
accounts
index on thec1
cluster with1
primary and0
replica shards.
- Remove the
- Delete the
accounts
index from thec2
cluster. - Reindex the
shakespeare
index to a new index calledshakespeare_refactored
on thec1
cluster with the following configuration:- Index the
line_number
,play_name
,speaker
, andtype
fields as typekeyword
. - Index the
text_entry
field as typetext
. - Index the
line_id
andspeech_number
fields as typelong
. - Configure the
default
analyzer to use theclassic
tokenizer and remove english stop words case-insensitively. - Configure the index with
1
primary and0
replica shards.
- Index the
- Delete the
shakespeare
index on thec1
cluster and add the aliasshakespeare
to theshakespeare_refactored
index. - Update the
shakespeare
index on thec1
cluster to fix the misspelled "A Winners Tale"play_name
to "A Winter's Tale". - Reindex the
kibana_sample_data_ecommerce
index to a new index calledecommerce_fixed
on thec1
cluster with the following configuration:- Maintain all the same mappings, with the only exception being that the
products
object should maintain the relationships between nested arrays of objects. - Configure the index with
1
primary and0
replica shards.
- Maintain all the same mappings, with the only exception being that the
- Delete the
kibana_sample_data_ecommerce
index on thec1
cluster and add the aliaseskibana_sample_data_ecommerce
andecommerce
to theecommerce_fixed
index.
- Download and extract the crop_yields dataset. Then use the Data Visualizer to index the dataset to a new
-
Challenge
Searching Data
- Create the
products
search template on thec1
cluster to search against theecommerce
dataset with the following requirements:- Paginate and parameterize the search results with a default page size of 25 and display the first page by default.
- Perform a
nested
typematch
query on theproducts
path and theproducts.product_name
field with theproduct
parameter. - Highlight the search term in the
products.product_name
field by wrapping the search term in HTML<mark>
tags (for example,<mark>search_term</mark>
). - Sort the search results by
geoip.continent_name
, then bygeoip.city_name
, and then by relevancy score, all in descending order.
- Use the
products
search template on thec1
cluster to search theecommerce
index for products matching the search term "belt." - Configure and execute a cross-cluster search query from the
c1
cluster to search thefilebeat-7.13.4
index on both thec1
andc2
clusters with the following search criteria:- Return up to
100
search results - All of the following must match:
- The term
system
for theevent.module
field - The term
/var/log/secure
for thelog.file.path
field - The term
sshd
for theprocess.name
field
- The term
- At least one of the following should match:
- The phrase
invalid user
for themessage
field - The phrase
authentication failure
for themessage
field - The phrase
failed password
for themessage
field
- The phrase
- The following must not match:
- The word
cloud_user
for themessage
field
- The word
- Return up to
- Create and execute an asynchronous search query on the
filebeat-7.13.4
dataset on thec1
cluster to search log messages for any mention of "cloud_user" with thewait_for_completion_timeout
parameter set to0
. Then, fetch the async search results.
- Create the
-
Challenge
Aggregating Data
Create an aggregation to answer each of the following questions. Be sure to return a hits array
size
of0
for each aggregation since we only care about the aggregation output.- For the
flights
index on thec1
cluster, how many unique destination locations are there? - For the
flights
index on thec1
cluster, what are the top 3 destination weather conditions? - For the
crop_yields
index on thec1
cluster, what top 5 countries had the highest average rye yields during the 1980s? - For the
crop_yields
index on thec1
cluster, what is the total crop yield of maize in the United States since the year 2000? - For the
logs
index on thec1
cluster, what is the rate of change for the sum of bytes per day and what is the overall min, max, average, and sum rate of change?
- For the
-
Challenge
Replicating, Securing, and Restoring Data
- Replicate the
accounts
index from thec1
cluster to thec2
cluster. - Auto-replicate new indices belonging to the
alerts_stream
data stream from thec1
cluster to thec2
cluster. - Create the
us_customers_read
role on thec1
cluster with the following criteria:- Grants
read
access to theecommerce
index. - Only grants access to the
customer_full_name
,email
,customer_phone
, andcustomer_id
fields. - Only grants access to customers from the United States. (The United States country ISO code is
US
.)
- Grants
- Create the user
mbender
on thec1
cluster with the following criteria:- Full name is Michael Bender
- Email address is [email protected]
- Password is
kUwn7euAj45t
- Roles are
us_customers_read
andkibana_user
- Restore the
shakespeare
index on thec1
cluster from theoriginal
snapshot in theshakespeare
repository as theshakespeare_original
index.
- Replicate the
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.