0
0
MongoDBquery~20 mins

Monitoring with Atlas metrics in MongoDB - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Atlas Metrics Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2:00remaining
Understanding Atlas Metrics Query Output
You run the following Atlas API command to fetch CPU usage metrics for your cluster over the last hour:

curl -X GET 'https://cloud.mongodb.com/api/atlas/v1.0/groups/{GROUP-ID}/processes/{HOST}:{PORT}/measurements?granularity=PT1M&period=PT1H&metrics=CPU_USER'

What type of data will the response contain?
AA JSON object containing only the cluster name and status without metrics.
BA JSON object with timestamped CPU usage percentages sampled every minute for the last hour.
CAn error message indicating invalid API endpoint.
DA plain text list of CPU usage values without timestamps.
Attempts:
2 left
💡 Hint
Think about what 'measurements' and 'granularity' parameters imply in the API call.
🧠 Conceptual
intermediate
2:00remaining
Choosing Metrics for Performance Monitoring
Which Atlas metric is best to monitor if you want to detect slow query performance caused by disk I/O bottlenecks?
ADISK_QUEUE_DEPTH
BCONNECTIONS_CURRENT
CNETWORK_BYTES_IN
DOPCOUNTERS_COMMAND
Attempts:
2 left
💡 Hint
Disk queue depth indicates how many operations are waiting for disk access.
Troubleshoot
advanced
2:00remaining
Diagnosing Missing Metrics in Atlas Dashboard
You notice that your Atlas cluster dashboard is not showing any data for the 'MEMORY_RESIDENT' metric for the past day. What is the most likely cause?
AYour API key lacks permissions to view memory metrics.
BThe MEMORY_RESIDENT metric is deprecated and no longer available.
CThe cluster is paused or stopped, so no metrics are collected.
DThe Atlas UI has a bug and needs a browser refresh.
Attempts:
2 left
💡 Hint
Think about what happens to metrics collection when the cluster is not running.
🔀 Workflow
advanced
2:00remaining
Setting Up Alerts for High CPU Usage
You want to create an alert in Atlas that triggers when CPU usage exceeds 80% for more than 5 minutes. Which steps correctly describe this setup?
AEnable cluster auto-scaling to automatically reduce CPU usage above 80%.
BModify the cluster configuration to limit CPU usage to 80%.
CSet up a backup schedule to run when CPU usage is above 80%.
DCreate an alert configuration with metric CPU_USER, threshold 80%, duration 5 minutes, and notification channel.
Attempts:
2 left
💡 Hint
Alerts are based on metric thresholds and notification settings.
Best Practice
expert
2:00remaining
Optimizing Atlas Monitoring Costs
To reduce costs while maintaining effective monitoring in Atlas, which practice is recommended?
AAdjust metric granularity to a coarser level like 5 minutes instead of 1 minute for less frequent data points.
BDisable all metrics except CPU usage to minimize data collection.
CIncrease the retention period of metrics to keep data longer for analysis.
DRun multiple monitoring agents on the same cluster to ensure data accuracy.
Attempts:
2 left
💡 Hint
Less frequent data points reduce storage and processing costs.