0
0
Elasticsearchquery~20 mins

Application performance monitoring in Elasticsearch - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
APM Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
1:30remaining
Understanding APM transaction search query output
You run this Elasticsearch query to find APM transactions with duration over 500ms:
{
  "query": {
    "range": {
      "transaction.duration.us": { "gt": 500000 }
    }
  }
}

What does the query output represent?
Elasticsearch
{
  "query": {
    "range": {
      "transaction.duration.us": { "gt": 500000 }
    }
  }
}
ADocuments where transaction duration is missing
BDocuments where transaction duration equals exactly 500 milliseconds
CDocuments where transaction duration is greater than 500 milliseconds
DDocuments where transaction duration is less than 500 milliseconds
Attempts:
2 left
💡 Hint
Look at the 'range' query and the 'gt' operator meaning.
🧠 Conceptual
intermediate
1:00remaining
Purpose of APM agents in application monitoring
What is the main role of an APM agent installed in an application?
ACollect performance data and send it to the APM server
BStore logs locally on the application server
CReplace the application’s database for faster queries
DManage user authentication and authorization
Attempts:
2 left
💡 Hint
Think about what data helps monitor app performance remotely.
Troubleshoot
advanced
2:00remaining
Diagnosing missing APM data in Elasticsearch
You notice no APM transaction data appears in Elasticsearch after deploying the agent. Which is the most likely cause?
AThe APM server is running on a different port than Elasticsearch
BElasticsearch cluster is running out of disk space
CThe application code has no functions
DThe APM agent is not configured with the correct server URL
Attempts:
2 left
💡 Hint
Check the agent’s connection settings to the APM server.
🔀 Workflow
advanced
2:30remaining
Steps to set up APM monitoring for a new service
What is the correct order of steps to enable APM monitoring for a new application service?
A1,2,3,4
B2,1,3,4
C2,3,1,4
D1,3,2,4
Attempts:
2 left
💡 Hint
Think about infrastructure setup before code changes.
Best Practice
expert
3:00remaining
Choosing the best APM data retention strategy
Your Elasticsearch cluster stores APM data for 90 days but is running low on disk space. What is the best practice to manage data retention without losing critical monitoring info?
AUse ILM (Index Lifecycle Management) to delete old data and keep recent data optimized
BManually delete random old indices to free space
CIncrease the cluster size without changing retention policies
DDisable APM data collection temporarily
Attempts:
2 left
💡 Hint
Think about automated management of data lifecycle.