A data science team is designing a Vertex AI pipeline that includes a loop over a list of hyperparameter sets. They want to run training jobs in parallel for each hyperparameter set and then collect the results for comparison. Which two Kubeflow Pipelines SDK v2 features should they use? (Choose two.)
dsl.ParallelFor iterates over items and runs tasks in parallel.
Why this answer
`dsl.ParallelFor` is the Kubeflow Pipelines SDK v2 feature that enables iterating over a list of hyperparameter sets and executing the training tasks in parallel. This directly supports the team's requirement to run multiple training jobs concurrently for each hyperparameter configuration.
Exam trap
The trap here is that candidates may confuse `dsl.ParallelFor` with `dsl.If` for conditional logic, or mistakenly think `dsl.importer` can handle result collection, when in fact only `dsl.ParallelFor` and `dsl.Collected` together provide the parallel iteration and result aggregation needed for this use case.