- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud
- Security
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.
Lab Info
Table of Contents
-
Challenge
Troubleshooting, Repairing, Snapshotting, and Preparing the Cluster
- Troubleshoot and repair any shard allocation issues on both the
c1andc2cluster nodes, such that all non-system indices are green and replicated as much as they can be. - Enable the trial license on the
c1andc2clusters. - Create the
sample_datasnapshot repository at/mnt/backups/sample_dataon thec1cluster. Then, create thenightlysnapshot lifecycle management (SLM) policy as follows:- Back up the
kibana_sample_data_ecommerce,kibana_sample_data_logs, andkibana_sample_data_flightsindices everyday at 2:00 a.m. - Back up to the
sample_datarepository. - 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
shakespearesnapshot repository at/mnt/backups/shakespeareon thec1cluster. Then, create theoriginalsnapshot of theshakespeareindex at theshakespearerepository. - Create the
alerts_policyindex lifecycle management (ILM) policy on thec1cluster 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
1segment 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
30days. - Convert the index to a mounted searchable snapshot in the
sample_datarepository.
- Enter the cold phase after
- Delete phase:
- Enter the delete phase after
180days. - Delete the index.
- Enter the delete phase after
- Hot phase:
- Create the
strings_as_keywordscomponent template on thec1cluster to dynamically convert allstringfields intokeywordfields with a max size of256characters. - Create the
shardscomponent template on thec1cluster to configure1primary and0replica shards. - Create the
alerts_templateindex template on thec1cluster with the following criteria:- Configure the template to manage the
alerts_streamdata stream. - Compose the template of the
stings_as_keywordsandshardscomponent templates. - Configure the template to use the
alerts_policyILM policy.
- Configure the template to manage the
- Start the
alerts_streamdata stream on thec1cluster.
- 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_yieldsindex with1primary and0replica shards on thec1cluster. - Remotely reindex the
accountsindex from thec2cluster to thec1cluster with the following transformations:- Remove the
account_number,age, andgenderfields. - Index all string fields as type
keywordwith the exception of theaddressfield, which should be indexed as atextfield with akeywordmulti-field that only indexes the first 256 characters. - Index the
balancefield as typedouble. - Add a
tos_ackfield with typeboolean. - Set the
tos_ackfield tofalsefor accounts withstateequal toVAand set thetos_ackfield totruefor all other accounts. - Allocate the
accountsindex on thec1cluster with1primary and0replica shards.
- Remove the
- Delete the
accountsindex from thec2cluster. - Reindex the
shakespeareindex to a new index calledshakespeare_refactoredon thec1cluster with the following configuration:- Index the
line_number,play_name,speaker, andtypefields as typekeyword. - Index the
text_entryfield as typetext. - Index the
line_idandspeech_numberfields as typelong. - Configure the
defaultanalyzer to use theclassictokenizer and remove english stop words case-insensitively. - Configure the index with
1primary and0replica shards.
- Index the
- Delete the
shakespeareindex on thec1cluster and add the aliasshakespeareto theshakespeare_refactoredindex. - Update the
shakespeareindex on thec1cluster to fix the misspelled "A Winners Tale"play_nameto "A Winter's Tale". - Reindex the
kibana_sample_data_ecommerceindex to a new index calledecommerce_fixedon thec1cluster with the following configuration:- Maintain all the same mappings, with the only exception being that the
productsobject should maintain the relationships between nested arrays of objects. - Configure the index with
1primary and0replica shards.
- Maintain all the same mappings, with the only exception being that the
- Delete the
kibana_sample_data_ecommerceindex on thec1cluster and add the aliaseskibana_sample_data_ecommerceandecommerceto theecommerce_fixedindex.
- Download and extract the crop_yields dataset. Then use the Data Visualizer to index the dataset to a new
-
Challenge
Searching Data
- Create the
productssearch template on thec1cluster to search against theecommercedataset 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
nestedtypematchquery on theproductspath and theproducts.product_namefield with theproductparameter. - Highlight the search term in the
products.product_namefield 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
productssearch template on thec1cluster to search theecommerceindex for products matching the search term "belt." - Configure and execute a cross-cluster search query from the
c1cluster to search thefilebeat-7.13.4index on both thec1andc2clusters with the following search criteria:- Return up to
100search results - All of the following must match:
- The term
systemfor theevent.modulefield - The term
/var/log/securefor thelog.file.pathfield - The term
sshdfor theprocess.namefield
- The term
- At least one of the following should match:
- The phrase
invalid userfor themessagefield - The phrase
authentication failurefor themessagefield - The phrase
failed passwordfor themessagefield
- The phrase
- The following must not match:
- The word
cloud_userfor themessagefield
- The word
- Return up to
- Create and execute an asynchronous search query on the
filebeat-7.13.4dataset on thec1cluster to search log messages for any mention of "cloud_user" with thewait_for_completion_timeoutparameter 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
sizeof0for each aggregation since we only care about the aggregation output.- For the
flightsindex on thec1cluster, how many unique destination locations are there? - For the
flightsindex on thec1cluster, what are the top 3 destination weather conditions? - For the
crop_yieldsindex on thec1cluster, what top 5 countries had the highest average rye yields during the 1980s? - For the
crop_yieldsindex on thec1cluster, what is the total crop yield of maize in the United States since the year 2000? - For the
logsindex on thec1cluster, 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
accountsindex from thec1cluster to thec2cluster. - Auto-replicate new indices belonging to the
alerts_streamdata stream from thec1cluster to thec2cluster. - Create the
us_customers_readrole on thec1cluster with the following criteria:- Grants
readaccess to theecommerceindex. - Only grants access to the
customer_full_name,email,customer_phone, andcustomer_idfields. - Only grants access to customers from the United States. (The United States country ISO code is
US.)
- Grants
- Create the user
mbenderon thec1cluster with the following criteria:- Full name is Michael Bender
- Email address is [email protected]
- Password is
kUwn7euAj45t - Roles are
us_customers_readandkibana_user
- Restore the
shakespeareindex on thec1cluster from theoriginalsnapshot in theshakespearerepository as theshakespeare_originalindex.
- Replicate the
About the author
Real skill practice before real-world application
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.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.