Release Desk
Challenge on lesson: Checkpoint: Release Engineer
CHALLENGE
Difficulty: intermediate+25 XP
Write THREE functions. 1) envVerdict(config) โ config is { secretsInEnv: bool, validated: bool, devBuild: bool }. Return "ready" when secretsInEnv AND validated AND NOT devBuild; "unsafe-secrets" when secretsInEnv is false; "invalid-config" when validated is false (when both wrong: "unsafe-secrets" first); "dev-build" for the devBuild case. 2) releaseStrategy(risk, users) โ risk "low" => "rolling"; risk "high" && users > 10000 => "canary"; risk "high" => "blue-green". 3) triage(alert) โ alert is { kind, actionable, urgent }; return "page" when actionable && urgent, "ticket" when actionable only, "dashboard" otherwise (noise).
Press Submit to check your solution.
Back to lesson: Checkpoint: Release Engineer