0
0
MLOpsdevops~20 mins

Evidently AI for monitoring in MLOps - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Evidently AI Monitoring Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Understanding Evidently AI's primary purpose
What is the main function of Evidently AI in a machine learning workflow?
ATo train machine learning models faster using GPU acceleration
BTo monitor data and model performance over time to detect drift and anomalies
CTo deploy machine learning models as REST APIs automatically
DTo generate synthetic data for training machine learning models
Attempts:
2 left
💡 Hint
Think about what happens after a model is deployed and needs ongoing checks.
💻 Command Output
intermediate
2:00remaining
Evidently AI report generation output
What output will the following Evidently AI Python code produce?
MLOps
from evidently.dashboard import Dashboard
from evidently.tabs import DataDriftTab
import pandas as pd

reference_data = pd.DataFrame({'feature': [1, 2, 3, 4, 5]})
curr_data = pd.DataFrame({'feature': [1, 2, 2, 4, 5]})

dashboard = Dashboard(tabs=[DataDriftTab()])
dashboard.calculate(reference_data, curr_data)
result = dashboard.json()
print(result)
AA runtime error because DataDriftTab requires target data
BA SyntaxError due to missing import statements
CA JSON string summarizing data drift metrics showing slight drift in 'feature'
DAn empty JSON string because no drift is detected
Attempts:
2 left
💡 Hint
DataDriftTab compares distributions between reference and current data.
Configuration
advanced
2:30remaining
Configuring Evidently AI for model performance monitoring
Which configuration snippet correctly sets up Evidently AI to monitor model prediction quality with a threshold for accuracy drop?
A
from evidently.metric_preset import ClassificationPreset
from evidently import ColumnMapping

column_mapping = ColumnMapping(prediction='pred', target='target')
metrics = ClassificationPreset()
metrics.add_metric('accuracy', threshold=0.8)
B
from evidently.metric_preset import ClassificationPreset
from evidently import ColumnMapping

column_mapping = ColumnMapping(prediction='pred', target='target')
metrics = ClassificationPreset()
metrics.accuracy_threshold = 0.8
C
from evidently.metric_preset import ClassificationPreset
from evidently import ColumnMapping

column_mapping = ColumnMapping(prediction='pred', target='target')
metrics = ClassificationPreset(accuracy_threshold=0.8)
D
from evidently.metric_preset import ClassificationPreset
from evidently import ColumnMapping

column_mapping = ColumnMapping(prediction='pred', target='target')
metrics = ClassificationPreset()
metrics.add_accuracy_threshold(0.8)
Attempts:
2 left
💡 Hint
Look for the method that explicitly sets a threshold for accuracy in the preset.
Troubleshoot
advanced
2:00remaining
Diagnosing Evidently AI dashboard calculation error
You run Evidently AI's dashboard.calculate(reference_data, current_data) but get a KeyError: 'target'. What is the most likely cause?
AThe current_data or reference_data is missing the 'target' column required for metrics
BThe Python environment is missing the pandas package
CThe dashboard object was not initialized with the DataDriftTab tab
DEvidently AI requires the 'target' column to be named 'label' instead
Attempts:
2 left
💡 Hint
Check if your data frames contain all columns needed by the metrics.
🔀 Workflow
expert
3:00remaining
Optimal Evidently AI monitoring workflow integration
Which sequence correctly describes the best workflow to integrate Evidently AI monitoring into a CI/CD pipeline for ML models?
A1,2,3,4
B2,1,3,4
C1,3,2,4
D3,1,2,4
Attempts:
2 left
💡 Hint
Think about the logical order from data preparation to deployment to monitoring.