Learn Everything

Paths/Data Engineer/Modeling & Warehousing / Layers & Partitions

Practice Taskintermediateubuntu:24.04Ask AI

Define the Medallion Layers

Bronze, silver and gold - three layers with three different contracts. Write the definition so every producer knows where its data belongs.

Validator

⏱ 0:00

IDLE — checks run live as you type commands; submit when done

01Requirements

live checks
  • File ~/warehouse/model/layers.yaml exists○
  • The config defines the bronze, silver and gold layers○
  • Each layer states what it contains and how long it is kept○

02Walkthrough

1 of 3 revealed
  1. 01

    Write the layer definitions

    bronze is the raw landing zone - append only, never transformed. silver is typed and deduplicated. gold is shaped for a specific question.

    echo 'layers:\n bronze:\n description: raw events as they arrive, never modified\n retention_days: 90\n silver:\n description: typed, deduplicated and joined to the model\n retention_days: 365\n gold:\n description: curated tables for analytics and ML\n retention_days: 1095' > ~/warehouse/model/layers.yaml
  2. 2 locked · each failed submit reveals one

03Stuck?

0 of 3 revealed

Take a hint without losing the lab — each one points at the thing to look at, not at the answer.

04AI Tutor

guides, never solves

Tell me what you're stuck on — I'll nudge, not solve. Which requirement are you looking at?

04Notebook

saved locally in this browser

learner@lab — ubuntu:24.04

↑/↓ recalls commands · Ctrl+Enter submits · type help for the command list