0
0
MongoDBquery~10 mins

Monitoring with Atlas metrics in MongoDB - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to list all Atlas clusters.

MongoDB
atlas [1] list
Drag options to blanks, or click blank then click option'
Aclusters
Bmetrics
CmonitoringMetrics
DatlasMetrics
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'metrics' instead of the resource name.
Confusing with database listing commands.
2fill in blank
medium

Complete the command to fetch CPU usage metric for a cluster in Atlas.

MongoDB
atlas clusters metrics get --clusterName [1] --metricName cpuUsage
Drag options to blanks, or click blank then click option'
AmyCluster
Bmetrics
Ccluster1
DcpuUsage
Attempts:
3 left
💡 Hint
Common Mistakes
Using the metric name instead of the cluster name.
Using a generic word like 'metrics' instead of the cluster name.
3fill in blank
hard

Fix the error in the Atlas metrics query to specify the correct time range option.

MongoDB
atlas clusters metrics get --clusterName myCluster --metricName connections --[1] 1h
Drag options to blanks, or click blank then click option'
Aduration
Bperiod
Ctime
DtimeRange
Attempts:
3 left
💡 Hint
Common Mistakes
Using --timeRange or --duration which are not valid options.
Using --time which is not recognized.
4fill in blank
hard

Fill both blanks to filter Atlas metrics for a specific host and metric type.

MongoDB
atlas clusters metrics get --clusterName myCluster --host [1] --metricName [2]
Drag options to blanks, or click blank then click option'
Ahost1
BcpuUsage
Cconnections
DhostA
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing host names with metric names.
Using invalid host or metric names.
5fill in blank
hard

Fill all three blanks to create a filter for Atlas metrics by cluster, host, and metric type.

MongoDB
atlas clusters metrics get --clusterName [1] --host [2] --metricName [3]
Drag options to blanks, or click blank then click option'
AprodCluster
Bhost2
CdiskUsage
Dhost3
Attempts:
3 left
💡 Hint
Common Mistakes
Using mismatched or invalid names for cluster, host, or metric.
Confusing host names with cluster names.