0
0
MLOpsdevops~10 mins

Pipeline scheduling and triggers in MLOps - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to schedule a pipeline to run every day at midnight.

MLOps
schedule: cron: "[1]"
Drag options to blanks, or click blank then click option'
A0 0 * * 0
B0 12 * * *
C0 0 * * *
D0 6 * * *
Attempts:
3 left
💡 Hint
Common Mistakes
Using 12 instead of 0 for hour runs at noon, not midnight.
Setting day of week to 0 runs only on Sundays.
2fill in blank
medium

Complete the code to trigger a pipeline when a new commit is pushed to the main branch.

MLOps
trigger:
  branches:
    include:
      - [1]
Drag options to blanks, or click blank then click option'
Amain
Bdevelop
Cfeature
Drelease
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'develop' triggers on the wrong branch.
Using 'feature' triggers only feature branches.
3fill in blank
hard

Fix the error in the pipeline trigger to run only on tags starting with 'v'.

MLOps
trigger:
  tags:
    include:
      - [1]
Drag options to blanks, or click blank then click option'
A*v
Bv*
Cv
Dversion*
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'v' matches only the tag named exactly 'v'.
Using '*v' matches tags ending with 'v', not starting.
4fill in blank
hard

Fill both blanks to schedule a pipeline to run every 15 minutes only on weekdays.

MLOps
schedule:
  cron: "[1] [2] * * 1-5"
Drag options to blanks, or click blank then click option'
A*/15
B0
C*/5
D30
Attempts:
3 left
💡 Hint
Common Mistakes
Using '*/5' runs every 5 minutes, not 15.
Using '30' runs only at 30 minutes past the hour.
5fill in blank
hard

Fill all three blanks to define a pipeline trigger that runs on pushes to the 'dev' branch, on tags starting with 'release', and on a schedule every Sunday at 3 AM.

MLOps
trigger:
  branches:
    include:
      - [1]
  tags:
    include:
      - [2]
schedule:
  cron: "[3] 3 * * 0"
Drag options to blanks, or click blank then click option'
Adev
Brelease*
C0
Dmain
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'main' instead of 'dev' triggers on the wrong branch.
Using 'release' without '*' matches only exact tag 'release'.
Setting minute to '3' runs at 3 minutes past the hour, not 3 AM.