How to log time-series data and track artifacts in Vertex AI?
Short answer
C 1. Create a Vertex AI TensorBoard instance and use the Vertex AI SDK to create an experiment and associate the TensorBoard instance.
Question
Key Takeaways
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.
Common mistake: 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.
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 function log_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 of log_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
- https://cloud.google.com/vertex-ai/docs/experiments/log-data
- https://github.com/GoogleCloudPlatform/vertex-ai-samples/blob/main/notebooks/official/experiments/get_started_with_vertex_experiments.ipynb
- https://cloud.google.com/python/docs/reference/aiplatform/latest/google.cloud.aiplatform.Execution
These links open the official vendor documentation in a new tab.
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.
Community Votes
50% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 8 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 8
-
gscharly 👍 6 Answered Clog_time_series_metrics requires setting Tensorboard: https://cloud.google.com/vertex-ai/docs/experiments/log-data assign_input_artifacts can be used to track input data: https://github.com/GoogleCloudPlatform/vertex-ai-samples/blob/main/notebooks/official/experiments/get_started_with_vertex_experiments.ipynb
-
fitri001 👍 4 Answered BVertex AI Experiment and ML Metadata: This is the foundation for tracking experiments and artifacts within Vertex AI.expand_more Creating an experiment allows you to group related runs and log data associated with those runs. ML Metadata helps manage the lineage of data and models used in your experiments.expand_more Logging Data: log_time_series_metrics: This function is specifically designed for tracking time-series data, making it suitable for logging the preprocessed multivariate time series data in your experiment. log_metrics: This function is appropriate for logging loss values during model training. It can handle numerical values like loss efficiently. By combining these techniques, you can effectively track both the preprocessed data (time series) and the training performance metrics (loss values) within your Vertex AI Experiment.
-
omermahgoub 👍 2 Answered BWhy B? 1. Experiment Creation: Vertex AI SDK establishes a context for grouping your training runs and facilitates experiment management. 2. By setting up Vertex ML Metadata (only can be done when creating an experiment with the Vertex AI SDK), you enable tracking of artifacts and metrics associated with each experiment run. 3. log_time_series_metrics function is well-suited for tracking the preprocessed multivariate time series data associated with each experiment run. This allows you to analyze how preprocessing impacts model performance.
-
guilhermebutzke 👍 2 Answered CMy Answer: C assign_input_artifact method is a method to Vertex Ai Experiment to track the preprocessed data while log_time_series_metrics is a function of Vertex AI TensorBoard to log metrics along time. look: https://github.com/GoogleCloudPlatform/vertex-ai-samples/blob/main/notebooks/official/experiments/build_model_experimentation_lineage_with_prebuild_code.ipynb https://github.com/GoogleCloudPlatform/vertex-ai-samples/blob/main/notebooks/official/experiments/comparing_local_trained_models.ipynb
-
b1a8fae 👍 2 Answered CC. Tensorboard for experimentation and comparison of different model runs. assign_input_artifacts to track preprocessed data, since it links artifacts as inputs to the execution. https://cloud.google.com/python/docs/reference/aiplatform/latest/google.cloud.aiplatform.Execution#google_cloud_aiplatform_Execution_assign_input_artifacts Using log_time_series_metrics would make sense if what we were doing is logging a metric, which we aren't when we track the preprocessed data not yet ran by the model.
Show 3 more comments
-
Yan_X 👍 2 Answered BB The assign_input_artifacts method is used to associate input artifacts with an experiment, that is not used for log time series and labels. A and B is just with a minor typo (metric vs merric), so select B.
-
tungdeptraiqua 👍 3 Answered BA and B are the same
-
Dirtie_Sinkie 👍 1 Answered CC sounds more correct
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All PMLE Questions
Access 65 questions with complete answers and detailed explanations.
View Full PMLE Practice Test →