0
0
MLOpsdevops~20 mins

Kubeflow Pipelines overview in MLOps - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Kubeflow Pipelines Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
What is the primary purpose of Kubeflow Pipelines?

Choose the best description of what Kubeflow Pipelines is mainly used for.

ATo monitor server health and resource usage in Kubernetes clusters.
BTo automate and manage machine learning workflows on Kubernetes.
CTo deploy web applications using container orchestration.
DTo store large datasets for machine learning training.
Attempts:
2 left
💡 Hint

Think about what Kubeflow Pipelines helps automate in ML projects.

💻 Command Output
intermediate
1:30remaining
Output of listing Kubeflow Pipelines runs

What is the expected output of the command kubectl get runs -n kubeflow if there are two pipeline runs named 'train-model' and 'data-prep'?

MLOps
kubectl get runs -n kubeflow
A
NAME          STATUS    AGE
train-model   Succeeded  2h
data-prep    Running    30m
B
NAME          STATUS    AGE
train-model   Running    2h
data-prep    Succeeded  30m
C
NAME          STATUS    AGE
train-model   Failed     2h
data-prep    Pending    30m
D
NAME          STATUS    AGE
train-model   Succeeded  2h
 data-prep    Running    30m
Attempts:
2 left
💡 Hint

Look carefully at the status and spacing in the output.

Configuration
advanced
2:30remaining
Correct YAML snippet for a Kubeflow Pipeline component

Which YAML snippet correctly defines a Kubeflow Pipeline component that runs a Python script with an input parameter?

A
apiVersion: v1
kind: Component
metadata:
  name: example-component
spec:
  implementation:
    container:
      image: python:3.8
      command: ["python", "script.py", "--input", "{{inputs.parameters.input_param}}"]
  inputs:
    - name: input_param
B
apiVersion: v1
kind: Component
metadata:
  name: example-component
spec:
  implementation:
    container:
      image: python:3.8
      command: ["python", "script.py", "--input", {input_param}]
  inputs:
    - name: input_param
C
apiVersion: v1
kind: Component
metadata:
  name: example-component
spec:
  implementation:
    container:
      image: python:3.8
      command: ["python", "script.py", "--input", input_param]
  inputs:
    - name: input_param
D
apiVersion: v1
kind: Component
metadata:
  name: example-component
spec:
  implementation:
    container:
      image: python:3.8
      command: ["python", "script.py", "--input", "$input_param"]
  inputs:
    - name: input_param
Attempts:
2 left
💡 Hint

Look for the correct syntax to reference input parameters in Kubeflow component YAML.

🔀 Workflow
advanced
2:00remaining
Order of steps in a Kubeflow Pipeline workflow

Arrange the following steps in the correct order for a typical Kubeflow Pipeline workflow:

A3,1,2,4
B2,1,3,4
C1,3,2,4
D1,2,3,4
Attempts:
2 left
💡 Hint

Think about how you build and run a pipeline step by step.

Troubleshoot
expert
2:30remaining
Identifying cause of pipeline run failure

A Kubeflow Pipeline run fails immediately with the error message: "Failed to pull image 'myregistry/myimage:latest': unauthorized: authentication required". What is the most likely cause?

AThe container image does not exist in the registry.
BThe pipeline YAML file has syntax errors causing the failure.
CThe Kubernetes cluster nodes lack permission to access the private container registry.
DThe pipeline components are missing required input parameters.
Attempts:
2 left
💡 Hint

Think about what "unauthorized: authentication required" means when pulling images.