Learning by Doing in DevSecOps: A Plain-Language Explainer

Learning by Doing in DevSecOps: A Plain-Language Explainer

Learning by doing in DevSecOps is a phrase that appears in nearly every training brochure, yet it is rarely explained. Most people nod along without asking what it actually involves, how it differs from following a video course, or why it matters so much for people responsible for building and securing software delivery pipelines. This explainer sets out the idea in plain terms: what first-hand practice means in this field, why it produces stronger engineers, and how individuals and teams can get more of it.

What “learning by doing” means in DevSecOps

At its simplest, learning by doing means acquiring a skill by performing the task yourself, in a realistic setting, rather than by observing someone else perform it. In DevSecOps, that task might be configuring a build pipeline, adding a dependency scan, rotating a leaked credential, hardening a container image or responding to a failed security gate.

Three features distinguish genuine hands-on practice from passive study:

  • You operate the system. Your hands are on the keyboard and your commands change real, if disposable, infrastructure.
  • Things can go wrong. The environment is allowed to fail, and you must work out why.
  • Feedback arrives quickly. Either the system responds, or a facilitator or colleague points out what you missed.

A recorded walkthrough typically offers none of these. You watch a pipeline turn green on someone else’s screen. You learn the order of steps, but not what to do when step four fails for a reason the presenter never encountered.

Why security skills in particular need hands-on practice

Security work is unusual because so much of it concerns situations that should not happen. A secret should not be committed to a repository. A vulnerable library should not reach production. An overly permissive role should not exist. Reading about these scenarios builds awareness. Handling them builds competence, and the two are not the same.

Consider a leaked credential. A course can list the correct response: revoke the key, issue a new one, audit its use, purge it from history and update dependent services. In a live exercise, you discover the complications. The key is referenced in several places. Revoking it breaks a scheduled job nobody remembered. Purging history requires coordination with other developers. These details are what make the difference during a real incident, and they emerge only when you go through the motions yourself.

Our article on why early security checks in a pipeline matter explains the principle of catching problems early. Hands-on practice is how engineers learn to apply that principle without slowing delivery to a crawl.

The main formats of hands-on DevSecOps learning

Guided labs

A guided lab provides a prepared environment and a sequence of tasks, with instructions that become less detailed as you progress. Labs suit people building foundational skills, because they combine structure with real interaction.

Workshops with a facilitator

An in-person workshop adds a skilled person who watches participants work, answers questions and pauses the group to discuss common mistakes. This is often the most efficient format for teams, because one facilitator can correct many people’s misunderstandings at once.

Capture-the-flag and attack-defence exercises

These competitive formats ask participants to find and exploit weaknesses, or to defend systems against them. They are highly engaging and teach adversarial thinking, which helps defenders anticipate how real attackers behave.

Incident simulations

A simulation stages a realistic security event, such as a compromised dependency or a suspicious deployment, and asks a team to detect, contain and recover from it. Simulations test coordination and communication as well as technical skill.

Personal projects

Building and securing your own small pipeline at home remains valuable. It lacks live feedback, but it develops independence and curiosity. Our list of DevOps tools worth learning through practical use is a helpful starting point for choosing what to install and experiment with.

Why in-person sessions add something extra

Many hands-on formats can run remotely, and remote labs have real advantages in reach and cost. Physical sessions, however, offer a few benefits that are hard to replicate:

  1. Over-the-shoulder help. A facilitator can glance at your screen and spot a problem in seconds, without you having to describe it in a chat window.
  2. Peer learning in the moment. Hearing the person beside you reason through a problem exposes you to approaches you might never have considered.
  3. Focus. Being in a room with a shared goal reduces the pull of email and messaging, which constantly fragments remote study.
  4. Relationships. Security depends on trust between developers, operations and security specialists. Working side by side builds that trust faster than any number of tickets.

How hands-on learning fits with other study

Practice does not replace reading, courses or documentation. It completes them. A sensible pattern looks like this:

  • Prepare with short videos or articles that introduce the concepts and vocabulary.
  • Practise in a lab, workshop or simulation where you apply those concepts.
  • Reflect by writing down what went wrong and what you would do differently.
  • Repeat the exercise on your own project or a work task within a few weeks.

Teams designing their delivery processes can use the same loop. Our guide to building dependable CI/CD pipelines for delivery teams is far easier to act on after a session in which people have built and broken a pipeline together.

Where to find hands-on sessions

Opportunities exist both inside and outside the workplace. Internally, a team can organise its own lab day around a real system. Externally, local developer communities, security groups and technology meetups frequently host workshops and live demonstrations. In Bengaluru, for instance, Bangalore Orbit, a city event discovery and ticketing site, lists tech and developer events and training workshops, which makes it simpler to find in-person sessions nearby. In other cities, community calendars, university departments and professional associations are good places to look.

What a good hands-on session looks like from the inside

It helps to picture one. A small group arrives with laptops already configured. The facilitator spends a few minutes describing a fictional company and its delivery pipeline, then hands over access. The first task is ordinary: push a change and watch it deploy. The second introduces a dependency with a known weakness, and the pipeline is expected to block it. It does not, because a scanning stage has been quietly misconfigured. Participants must notice the gap, trace the cause and fix the configuration. Later, a secret appears in a commit, and the group practises the full response under a time limit.

Throughout, the facilitator moves between desks, asking questions such as “What would you check next?” rather than giving answers. At the end, everyone compares notes on what they tried. Nobody leaves with a certificate, but everyone leaves having actually done the work, which is the point.

Common misunderstandings

  • “Hands-on means unstructured.” Good labs are carefully designed, with clear goals and gradually increasing difficulty.
  • “Only junior engineers need it.” Senior staff benefit too, especially when new tools or threats appear.
  • “Watching a demo counts.” A demonstration is useful preparation, but it is not practice unless you then repeat it yourself.
  • “One session is enough.” Skills fade without use. Regular, spaced practice produces lasting ability.

Summary

Learning by doing, in the DevSecOps context, means working directly with real pipelines, real tools and realistic failures, ideally with fast feedback from a facilitator or peers. It matters because security skills are tested in unusual, high-pressure situations that passive study cannot fully prepare you for. Online material remains valuable for preparation and reference. The decisive step, though, is putting your own hands on the system, making mistakes in a safe setting and learning from them. Engineers who do that regularly are the ones colleagues trust when a real problem arrives.