When you deploy a TensorFlow model in production, why is it important to monitor it continuously?
Think about what can change after deployment that affects model accuracy.
Monitoring helps detect when the input data or environment changes, causing the model to perform worse. This is called data drift or model degradation.
What is the output of running this command to log predictions for monitoring?
import tensorflow as tf model = tf.keras.Sequential([tf.keras.layers.Dense(1, input_shape=(2,))]) predictions = model.predict([[1.0, 2.0]]) print(predictions)
The model is untrained and initialized randomly.
The model has random weights initially, so predictions will be small random numbers close to zero, not exactly zero.
Which Prometheus scrape configuration correctly scrapes metrics from a TensorFlow model server exposing metrics at /metrics on port 8501?
Remember Prometheus separates target host:port and metrics path.
Prometheus expects targets as host:port and metrics_path separately. Option C correctly sets both.
You set up monitoring for your deployed TensorFlow model, but the monitoring dashboard shows no metrics data. What is the most likely cause?
Check if the metrics endpoint is reachable and correctly configured.
If the model server does not expose metrics on the configured endpoint, monitoring tools cannot collect data.
Put these steps in the correct order to set up continuous monitoring for a deployed TensorFlow model.
Think about what must happen before monitoring and alerting.
First deploy with metrics, then configure scraping, then alerting, finally analyze and retrain.
