Skip to content
LakeBench
ProblemsCommunityPricing
Sign inStart practicing

Infrastructure & Engineering Practices

Progress0/10
x

Git and Linux

  • Git: working tree, index, commit12m
  • Merge conflicts14m
  • PATH, pipes, and exit codes12m

Docker

  • Read a Dockerfile14m
  • Dockerfile bugs: USER root12m

Kubernetes and Terraform

  • Deployment vs CronJob14m
  • Terraform: the missing resource14m

CI/CD

  • CI/CD stages12m
  • CI order on main12m

Capstone

  • Capstone: ship checklist16m
Back to track
  1. Learn
  2. Infrastructure & Engineering Practices
  3. Kubernetes and Terraform
  4. Deployment vs CronJob

Lesson 6 of 10 · Case study

Deployment vs CronJob

pythonintermediate14 min

Overview

A Deployment keeps replicas running. A CronJob fires on a schedule. The nightly ingest is a CronJob. No kube cluster lives here.

Module: Kubernetes and Terraform

This section walks through the idea with a short example, then the trade-offs you should mention in an interview.

In practice you start from the raw rows, apply the transform step by step, and check the shape of the result before you move on.

A common mistake is to jump straight to the final query without naming the grain or the join keys that keep the result correct.

Once the core path works, you harden it for nulls, duplicates, and late data so the pipeline stays reliable under load.

The Pro write-up covers the full explanation, worked examples, and the code you can run in the studio.

# Locked example
result = transform(frame)
print(result.head())

This lesson requires Pro

This lesson is part of Kubernetes and Terraform. Pro opens the full lesson and the exercises.

Compare Free vs Pro