How to log time-series data and track artifacts in Vertex AI?
You are developing a model to predict whether a failure will occur in a critical machine part. You have a dataset consisting of a multivariate time series and labels indicating whether the machine part failed. You recently started experimenting with a few different preprocessing and modeling approaches in a Vertex AI Workbench notebook. You want to log data and track artifacts from each run. How should you set up your experiments?
Community Votes
50% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
The question tests the ability to distinguish between general artifact tracking (ML Metadata) and the specific requirement for logging time-series metrics, which necessitates associating a TensorBoard instance with the experiment.
To log data and track artifacts for a multivariate time series model in Vertex AI, you should create a Vertex AI TensorBoard instance and associate it with your experiment using the Vertex AI SDK. This setup enables the use of log_time_series_metrics for visualization and assign_input_artifacts for lineage tracking.
Selecting the option to only set up Vertex ML Metadata (Option B) is incorrect because, while it tracks lineage, it does not support the logging and visualization of time-series metrics required for the multivariate dataset.
Community Discussion (8 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
The correct approach involves creating a Vertex AI TensorBoard instance and associating it with the experiment. As noted in community comments, the functionlog_time_series_metrics is specifically designed for the multivariate time series data mentioned in the scenario and explicitly requires a TensorBoard instance to function. Furthermore, the Vertex AI SDK allows tracking input artifacts via assign_input_artifacts, satisfying the requirement to track artifacts alongside the metric logging.Why the Other Options Are Wrong
Options A and B focus solely on creating an experiment and setting up Vertex ML Metadata. While ML Metadata is the underlying engine for tracking artifacts and lineage, it does not provide the infrastructure to visualize time-series metrics. Given the specific mention of a "multivariate time series," the solution must support time-series logging, which is a capability provided by TensorBoard, not ML Metadata alone.Community Comment Notes
There was a 50/50 split in the voting, with some users advocating for B due to the importance of ML Metadata in tracking artifacts. However, top-rated comments supporting C highlighted the technical dependency oflog_time_series_metrics on a TensorBoard instance. Commenters also pointed out that assign_input_artifacts handles the artifact tracking within the experiment, making C the more comprehensive solution for the specific data type described. Official Reference
Exam Strategy
When you see keywords like "time series" or "metrics over time" in a Vertex AI question, immediately look for options that include creating or associating a TensorBoard instance, as standard experiment logging is insufficient for time-series visualization.
Related Analysis
Practice All PMLE Questions
Access 65 questions with complete answers and detailed explanations.
View Full PMLE Practice Test →