← Complete program

Chapter 22 · Course 1 c22-m01

What must be handed over?

Your goal Prepare a complete inventory of components, dependencies, data, access, and owners before handover to Noor.

The lesson, the vocabulary, the worked example and the mission are separate blocks. You can follow them in order or return to the one you need.

Video explanation

This English explanation has English subtitles. Its examples may use a separate practice dataset; use the data stated in the written mission for your answers.

01

Story · optional context

The story so far

You are Aster Motors' data recruit. Luca was hurt when a shell resembling Noctis 01 crashed; old register versions defended you against the false authorization Voss presented. The real prototype was found and payments with an insurance file suggest fraud, without final personal attribution. Luca and Imani use the timeline dossier. Noor must now take over its operation. But a false line in your name reappears after Voss's personal access was revoked: something still runs under a technical identity.

This lesson stands alone. Handing over a service means more than giving someone its code. Noor needs its components, data, dependencies, technical identities, access rights, secrets to manage, and owners. You will build a fictional inventory and spot an unowned replay task. Never put a secret's value in the inventory; record where and by whom it is managed.

02

Before the lesson

Purpose of this course

Prepare a complete inventory of components, dependencies, data, access, and owners before handover to Noor.

Topics covered

List parts needed to display and verify the timeline.; Map dependencies among storage, change stream, and final view.; Distinguish revoked personal access from an active task using a technical identity.; Find an unowned component and document secrets without exposing values.

What you will learn

  • List parts needed to display and verify the timeline.
  • Map dependencies among storage, change stream, and final view.
  • Distinguish revoked personal access from an active task using a technical identity.
  • Find an unowned component and document secrets without exposing values.

PART 1 · THE LESSON

Understand step by step

1

Lesson · explanation

Handing over a service means handing over its map

You are Aster Motors' new data engineer. Luca was injured when a shell resembling the Noctis 01 prototype crashed. An authorization in your name was planted in the register to accuse you, but an older version shows it was not there. The real prototype has been found; Imani is investigating payments and insurance. Noor must now take over the service that displays the timeline. A suspicious row returns even after Voss's personal access is revoked. This independent lesson teaches you to map the entire service before the handover.

Imagine asking someone else to care for an aquarium. A list of fish is not enough. They need to know the pump, filter, power supply, instructions, and whom to call if the water stops flowing. A data service is similar: its code is only one part. It reads sources, uses jobs and identities, produces a view, and depends on people who watch its health.

Build an inventory. For each component, note its name, purpose, input, output, version, dependencies, health check, and owner. Noor should be able to begin with a displayed row and trace it back to a source. The map must also reveal programs that continue to run while no person is signed in. In this mission, one such program is a scheduled task called scheduled_replay.

The components and secrets in the exercise are fictional; copy no real key into the lesson. The incident is urgent in the story, but there is no countdown on this exercise. Who planted the false row remains an open question. A service map explains how a row can appear and where to look; it does not decide who committed fraud. Learn to draw dependencies and name missing information that blocks a safe transfer.

Pause and think

Why is handing Noor only the code insufficient?

See the explanation

She also needs sources, jobs, access, dependencies, health checks, and responsible people.

2

Lesson · explanation

List what enters, what transforms, and what leaves

Start with inputs. Snapshots S100 and S101 are two preserved states of the register. The CDC feed describes changes observed between states. Vehicle messages help place facts in time. A computation builds a timeline; a page presents it to Imani; a summary helps Luca. A scheduled job may reread older messages to reconstruct a view. These elements have different roles. Treating the displayed page as the raw source would hide how its contents were produced.

Draw arrows. For example, snapshots and the change feed enter the computation, which produces timeline_view. Luca's summary depends on checked facts and must not invent them. scheduled_replay may reread the feed and publish to the view again. An arrow means that if the upstream part stops or changes, the downstream part may be affected. From a visible timeline_view, trace backward to cdc_feed to ask whether a page can be stale when the feed is stopped.

Ask three beginner questions about each box: where do its data come from, what does it give to others, and how will we know when it fails? Storage may be healthy while computation is stuck. A page may open normally but fail to receive new events. A health check must therefore go beyond 'the screen responds'. It can inspect the latest message time, position read, and expected event identifiers.

Include at least storage, CDC feed, view, and scheduled replay in the mission inventory. Add vehicle sources and Luca's summary when useful. The small course program displays only four components to keep the example readable; it is not a universal production diagram. The important skill is linking inputs and outputs correctly. Given a row, Noor should be able to follow arrows to the snapshot or message that supports it.

Pause and think

The page opens, but the CDC feed has stopped. What risk does the inventory reveal?

See the explanation

The timeline may be stale, so check feed freshness and position rather than only page availability.

3

Lesson · explanation

Add an owner, alert, and stop rule to every box

A component without an owner is a trap. If scheduled_replay republishes a row at three in the morning, who receives the alert? Who may read its log, approve a pause, and restore the view? The exercise inventory leaves that owner empty. This is an operational gap, not a formatting mistake. Noor cannot become responsible just because someone writes her name in a cell. She must accept the role and demonstrate that she has the rights and guide needed to perform it.

For each component, fill in purpose, input, output, version, trigger, owner, backup contact, health check, stop procedure, and log location. A job can be triggered by a clock or an event. Its log describes executions; a position such as P0/42 helps identify the message it read. These details let Noor compare the current incident with a particular execution instead of guessing which of many programs changed the row.

Think of a fairground ride programmed to restart every night. Turning off the former worker's personal switch does not tell you who can stop the automatic motor. If nobody knows the schedule or the motor's key, the ride may start again. scheduled_replay is that motor in the story. The inventory needs its schedule, technical identity, permissions, version, history of change requests, and an authorized person who can stop it after preserving traces.

A stop rule also tells Noor when not to improvise. If she cannot identify the job, cannot find logs, or lacks approval to pause, she should keep the observed state and contact the on-call owner. Randomly stopping several services might destroy facts Imani needs. The map does not replace the next lesson's runbook; it supplies the names, people, and paths that runbook will require.

Pause and think

Which gap makes scheduled_replay difficult to manage?

See the explanation

Its owner and authorized pause decision maker are missing; its schedule, rights, and logs also need documenting.

4

Lesson · explanation

Distinguish a personal account from a service identity

A personal account belongs to a person signing in to work. A service identity belongs to a program that may run when nobody is signed in. In the story, Voss's personal access was revoked, yet a row in your name reappears. That does not prove his personal account signed in again. An already scheduled job might continue under SUPPLIER-SVC or reread an old message. Logs and positions must test that possibility; it is not a verdict on a human.

Picture a coffee maker set to start at seven. The person who set its timer may have left the house, but the machine still starts. Disconnecting that person's phone does not stop it. Likewise, revoking a personal account does not necessarily suspend a previously installed job. Inventory the schedules, technical identities, rights, and requests that created or changed tasks. Without that map, Noor might think a personal revocation solved everything.

To investigate the returned row, compare the personal revocation time, appearance time, scheduled_replay log, and source position reread. Preserve these facts before changing the program. SUPPLIER-SVC in a log does not by itself identify who requested the job. Imani needs a change request and independent material. The service map points to a useful search location, while human responsibility requires a separate investigation.

Record Noor's reading rights separately from the service account's permissions. She must not use the program's key as her personal password. Her actions should be logged under her account; the job's actions under its technical identity. This separation improves monitoring and makes decisions easier to explain. It also avoids granting one person far more access than her work requires.

Pause and think

Does revoking Voss's personal account automatically stop scheduled_replay?

See the explanation

No. A scheduled task can continue under a technical identity; inspect its schedule, permissions, and logs.

5

Lesson · explanation

Document secrets without recording their values

A secret may be a password, key, or token that lets a program connect. Pasting it into an inventory would be like taping a door key onto a plan shared with the whole team. Record instead the secret's name, purpose, reference in the approved vault, responsible person, required rights, and rotation procedure. Rotation means preparing a replacement value, testing it, and removing the old one through an approved process.

An exercise row might read: 'SUPPLIER-SVC key; used by scheduled_replay to read the feed; reference in approved vault; owner to confirm; last review to complete.' It must never include the key value. If Noor lacks an appropriate right, arrange the right role; do not send her the secret in a message. The vault reference should be precise enough for an authorized person to locate it without exposing it to everyone.

Secrets also have dependencies. Changing a key without knowing which jobs use it might stop the view or replay unexpectedly. Keeping the old key active forever might leave too much access. Connect each secret to the jobs that depend on it and the person who may approve a change. In this lesson, map those connections; the controlled rotation comes later in the handover.

The inventory may mention that S100 and S101 have retention rules different from temporary copies. It does not duplicate all sensitive source data. A service map helps people find sources and work safely; it is not an unprotected copy of everything. Noor should learn where to request access and what she is allowed to use.

Pause and think

What should the inventory say about SUPPLIER-SVC?

See the explanation

Its purpose, dependent jobs, vault reference, owner, rights, and rotation procedure, never the secret value.

6

Lesson · explanation

Walk Noor through the map before signing off

To test the inventory, Noor selects a claim displayed in the timeline and asks which component produced it and which source supports it. Follow the view through computation, feed, and snapshot or original message. Add any missing arrow. Then she asks who receives an alert if a component stops. If that owner is absent, obtain a named responsible person and agreement. This small walk-through reveals gaps better than silently reading the document.

Test the forgotten job too. Begin with the new row in your name; find scheduled_replay, its schedule, technical identity, read positions, and log. Its owner is blank in the initial inventory. Mark that as work to resolve before the handover is complete. Do not assign Noor by default. The supervising team must define the role, rights, and pause guide. The next lesson will turn this map into a runbook Noor can follow.

The inventory status may be 'known components mapped, handover blocked by a missing owner'. That is useful information, not a failure to hide. It tells the team exactly what to do. Imani keeps logs of the returned row and continues investigating. The map shows a control problem involving a technical identity; it does not name the human who created the false authorization.

For the mission, deliver at least four linked components, identify scheduled_replay as the gap, explain personal versus service rights, and document the key without its value. A learner reading only this lesson should be able to describe the service as connected boxes and arrows. If Noor can find the source, log, and person to alert, the map has done its job.

Pause and think

Which question from Noor reveals a missing owner?

See the explanation

'Who receives the alert and can act if this component stops or republishes a row?'

Visual guide

Map for Noor

  1. 1Snapshots S100/S101 → CDC stream → timeline view
  2. 2Vehicle source → Luca's summary
  3. 3scheduled_replay → CDC stream, owner missing
  4. 4Service accounts and secrets: vault reference, never the value

Each important part needs an origin, dependency, check, and owner.

Code · read each line

Find the inventory gap

components=[
 {"name":"snapshot_store","owner":"Mara","depends_on":[]},
 {"name":"cdc_feed","owner":"Noor","depends_on":["snapshot_store"]},
 {"name":"timeline_view","owner":"Noor","depends_on":["cdc_feed"]},
 {"name":"scheduled_replay","owner":None,"depends_on":["cdc_feed"]},
]
print("components",[c["name"] for c in components])
print("missing_owner",[c["name"] for c in components if not c["owner"]])
print("scheduled_dependencies",components[-1]["depends_on"])
print("secret_values_in_inventory",False)
print("handoff_ready",all(c["owner"] for c in components))

The local list shows four components and reveals that scheduled_replay lacks an owner. It contains no secret value.

PART 2 · WATCH IT WORK

A complete worked example

Follow each step, then the result

Worked example: the forgotten task

Voss's personal accounts are closed, but a line reappears; scheduled_replay has no owner in the inventory.

  1. Do not assume a personal account was reactivated; inspect the technical task.
  2. Add its triggers, sources, positions, permissions, and logs to the inventory.
  3. Find who created it and who can pause it after preserving evidence.
  4. Ask Noor to trace one page line back to the original message.
What this shows

A useful handover covers programs that run without a logged-in person and identifies who can control them.

How this helps with your mission

The guided example starts with a troubling fact: Voss's personal access is closed, but a row in your name returns. A technical task can remain active, so complete the scheduled_replay box with trigger, feed read, position, log, permissions, and owner. In the mission, draw storage, CDC, view, and scheduled replay with their dependencies; mark the missing owner instead of inventing a name; explain why personal revocation is insufficient; give the vault reference for the key without writing its value. Noor can use this map to trace a row to its source and prepare the next runbook.

PART 3 · YOUR TURN

Use the lesson to solve the mission

Story scene · practical task

Mission: the thing still running

Noor takes the service keys. Imani shows her a new line in your name, appearing after Voss's personal access was revoked. Mara refuses to stop a program blindly because it could destroy the last clue. Provide a complete service map before intervention. The next run is near in the fiction; the exercise has no timer.

Your task

  1. List four components and their dependencies.
  2. Find the unowned component and describe missing information.
  3. Explain why personal revocation does not rule out a technical task.
  4. Show how to document a secret without writing its value.

How to know you have succeeded

  • Storage, CDC, view, and scheduled replay with links.
  • scheduled_replay identified; owner, schedule, account, logs to complete.
  • Technical identity and old message possible without instant accusation.
  • Secret name, vault, and owner, not the value.
Open this mission in the browser workspace

Try code or SQL and keep a local draft. The mission questions are checked separately below.

Check the facts in your mission

Answer each factual question, then write your report in your own words. The program checks the choices; compare the report with the worked answer below.

1. Which four components belong on the mission's basic map?
2. What gap makes the `scheduled_replay` inventory incomplete?
3. Why can a line return after Voss's personal rights are removed?
4. How should the SUPPLIER-SVC key be documented in the inventory?
5. Which Noor question tests whether the map includes useful dependencies?
See the worked answer
  1. Snapshot storage supports the change stream; the view reads the stream. Scheduled replay also depends on it. Vehicle sources support the summary.
  2. The script shows scheduled_replay without owner. Record trigger, technical account, permissions, version, logs, and controlled-stop owner.
  3. Closing a personal account does not necessarily stop a service or previously scheduled message. Compare times, positions, and logs before attribution.
  4. Record vault reference, purpose, rights, owner, and rotation procedure, never the secret value.

Noor now knows the service parts and the gap. The next lesson turns this map into a guide someone else can follow.

Before you leave

Remember this

  • A handover transfers the complete map of a service, not only its code.
  • For each component, record purpose, inputs, outputs, version, dependencies, health, log, and owner.
  • A view can remain visible while its change feed has stopped or become stale.
  • scheduled_replay without an owner is a gap to resolve before declaring the handover complete.
  • Revoking a personal account does not necessarily stop a task running under a technical identity.
  • Document a secret's name, vault reference, and owner, never its clear value.

Continue with the integrated lessons

After the lesson and its mission, work through the additional lessons below in order. Each workshop supplies its own fictional data: do not merge identifiers or times from separate exercises into the story timeline.

A–Z

Part of the lesson · keep nearby

New words, explained

These are the names of ideas used in the lesson above. Return here whenever a word feels unfamiliar.

Inventory
A structured list of service parts and information needed to maintain them.
Component
A part of the system serving a particular function.
Dependency
An element another element needs to work.
Technical identity
An account used by a program rather than a person.
Scheduled task
A program triggered by time or a condition.
Secret
Confidential value such as a key or password, protected in a suitable vault.
Owner
Person or team responsible for monitoring and fixing an element.
Handover point
When a new owner confirms they can find and check the elements.

Nommer une livraison et retrouver une règle

Un tag donne un nom à un objet, souvent un commit de livraison. git tag v1.3 IDENTIFIANT crée un tag léger ; git tag -a v1.3 -m "Contrat client 1.3" IDENTIFIANT crée un tag annoté avec métadonnées et message. Vérifie la cible : le nom de version ne prouve pas la qualité du code.

Les tags ne sont pas tous transmis par une publication ordinaire de branche ; options et configuration peuvent modifier ce comportement. git push origin v1.3 publie explicitement le tag choisi ; --tags publie les tags locaux et peut exposer plus que la livraison voulue. git tag -d v1.3 ne retire que le tag local.

Pour transmettre un pipeline, indique la version exacte, les dépendances, l'installation et le contrat d'entrée. Un identifiant de code ne suffit pas à désigner données, paramètres et secrets utilisés pour un rapport. Conserve leurs références dans la documentation appropriée.

git grep "TODO" cherche par défaut dans les fichiers suivis du travail local ; -n ajoute les numéros de ligne. Pour seulement les noms, utilise -l : la formulation historique pouvait faire croire que grep ordinaire ne montrait que les noms. Les motifs peuvent être des expressions régulières ; -F demande une recherche littérale. Les fichiers non suivis ne sont pas inclus par défaut.

git grep -n -F "customer_id" aide à retrouver une colonne dans scripts, requêtes et tests. Lis le contexte avant de changer toutes les occurrences : un nom identique ne désigne pas forcément une règle identique. La recherche prépare l'enquête ; elle ne remplace pas l'analyse du contrat.

À toi de jouer

Comment retrouver les fichiers contenant customer_id et publier un seul tag ?

Voir la correction expliquée

git grep -l -F "customer_id" donne les noms. Vérifie le tag avec git show puis publie explicitement git push origin NOMTAG.

Références : Manuel git-tag · Manuel git-grep.

Adapté de Gérez vos codes source avec Git, Mathieu Nebra (Mateo21), pages 32–33. Consulter le PDF source et ses illustrations · Provenance. Creative Commons 6 2.0 (mention de l’archive ; autorisation OpenClassrooms déclarée par l’utilisateur)

Communiquer la qualité et maintenir les métadonnées

Communiquer la qualité régulièrement et clairement permet d’utiliser les données de manière appropriée. Décrire l’état observé et son effet sur les usages, les compromis acceptés ainsi que les forces et faiblesses du jeu. Rendre transparents les contrôles effectivement réalisés ; un contrôle prévu n’est pas un résultat obtenu.

Développer une relation de travail avec les fournisseurs externes aide à résoudre les défauts à la source. Prévenir les utilisateurs avant un changement de processus susceptible d’affecter la qualité. Écrire simplement, suivre les conventions éditoriales de l’organisation, définir les termes et ne pas supposer que chacun comprend les mots employés par les ingénieurs.

La documentation et les métadonnées réduisent les ambiguïtés et facilitent l’accès et la réutilisation. Documenter et partager les définitions, la couverture, les dates, les règles et les limites, puis signaler les problèmes et les actions engagées. La transparence porte aussi sur ce qui reste à améliorer, et doit suivre la version réellement transmise.

Un rapport peut indiquer : 98 % des établissements attendus reçus au 6 novembre à 10 h ; numéros de contact non vérifiés ; usage autorisé pour suivi provisoire ; relance de cinq producteurs en cours. Une phrase comme « données de bonne qualité » ne donne ni le périmètre, ni la preuve, ni la limite. Associer cette note au fichier et au propriétaire évite qu’elle se perde dans un échange séparé.

Les guides pratiques associés au cadre apportent des méthodes de plans d’action, d’analyse de causes, de métadonnées et de communication, ainsi qu’une introduction aux modèles de maturité. Le PDF principal les signale sans les développer intégralement. Pour appliquer ces ressources, les consulter sur la page officielle et choisir des outils proportionnés au besoin de l’équipe.

À toi de jouer

Rédige une note de qualité en quatre phrases pour un lot reçu partiellement.

Voir la correction expliquée

Indiquer population attendue et reçue avec date, contrôles et résultats, conséquences et usages autorisés, puis action prévue avec responsable et délai. Éviter de confondre présence des contacts et vérification de leur exactitude.

Références : Cadre officiel et guides associés.

Adapté de The Government Data Quality Framework, Government Data Quality Hub, gouvernement britannique, pages 10–12, 22. Consulter le PDF source et ses illustrations · Provenance. Open Government Licence v3.0, © Crown copyright 2020 ; droits de tiers réservés lorsque signalés.