Quick revision
The short answer
For 500 Java developers, the programme must work without a security expert in every review. We build secure defaults into the platform starters so the easy path is the safe path, run dependency scanning, static analysis and secret scanning in CI with low false-positive rates, use threat modelling for high-risk changes and a network of security champions in teams, and measure vulnerabilities found, time to fix and recurrence by category. It only lasts if leadership treats security as part of engineering quality, with goals and budget, rather than as a separate team's problem.
What to remember
In this answer, we built an application security programme that scales to 500 developers. We start from a baseline of findings by category, put secure defaults into platform starters so the easy path is safe, run dependency, static and secret scanning in CI with low false-positive rates, add threat modelling for high-risk changes and security champions in every team, and measure findings, time to fix and recurrence by category. Leadership support, with security treated as an engineering quality goal and given budget, keeps it going long enough for the numbers to fall year over year.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
For 500 Java developers, the programme must work without a security expert in every review. We build secure defaults into the platform starters so the easy path is the safe path, run dependency scanning, static analysis and secret scanning in CI with low false-positive rates, use threat modelling for high-risk changes and a network of security champions in teams, and measure vulnerabilities found, time to fix and recurrence by category. It only lasts if leadership treats security as part of engineering quality, with goals and budget, rather than as a separate team's problem.
Why this question is asked
With 500 developers and perhaps a security team of eight, the arithmetic is clear: the security team cannot review everything, and if it tries, it becomes a bottleneck that teams route around. Interviewers ask this to see whether we can design a programme that scales through defaults, automation and people in the teams, and whether we can prove it works with numbers. In this answer, we will set the goal and baseline, then go through platform defaults, CI automation, threat modelling and champions, measurement, and the leadership support that keeps it funded.
1Start With a Baseline and a Goal
Before changing anything, we measure where we are. We collect findings from the last year by category: pen test reports, bug bounty submissions, scanner results and production incidents, grouped into OWASP-style classes such as access control, injection, cryptography and outdated components. We also measure how long fixes took. This baseline tells us where to start; if 40 percent of findings are broken access control, that is where the first defaults should go.
The goal is a declining trend, stated plainly: for example, high-severity findings per hundred services down 30 percent a year, critical dependency vulnerabilities patched within seven days, and no category recurring in the same service.
2Secure Defaults in Platform Starters
Most Spring organisations of this size have, or should have, an internal platform: a parent BOM and Spring Boot starters that every service uses. That is the most powerful security tool we have, because a change there reaches 500 developers without a single meeting. The starter configures Spring Security with deny-by-default authorization, sensible headers, TLS settings and Actuator exposed only on a management port. It provides an ownership-checking helper for resource access, a safe HTTP client that blocks internal addresses for user-supplied URLs, JSON serializers instead of Java serialization, and a password encoder that defaults to bcrypt or Argon2.
The principle is that a developer who does nothing special gets a safe service, and doing something unsafe requires visible extra code that reviewers and scanners notice.
- Leadership goals and budgetsecurity is a quality goal with owners
- Measurementfindings, time to fix, recurrence by category
- Peoplethreat modelling for risky changes, one champion per team
- CI automationdependency, static and secret scanning on every PR
- Platform defaultsstarters with safe security, clients, serializers
5 layers, from the top down. Step through them one at a time.
The lower layers handle most of the volume; the upper layers keep the programme honest.
3Automated Checks in CI, Tuned for Trust
Every pull request runs three kinds of checks. Dependency scanning (software composition analysis) flags libraries with known CVEs; static analysis looks for injection, unsafe deserialization, weak crypto and missing authorization annotations; secret scanning blocks committed keys and passwords. The platform team provides the pipeline templates so each team gets them by default.
The critical detail is the false-positive rate. If a scanner blocks builds for findings that are not real, developers lose trust, add blanket suppressions, and the tool becomes noise. So only high-confidence rules block a merge, the rest go to a dashboard, and every suppression needs a reason that the champions review monthly. We treat a noisy rule as a defect in the rule and fix it.
4Threat Modelling and Security Champions
Automation finds bugs in code; it rarely finds design flaws, such as a new partner API that exposes data across tenants. For changes that touch authentication, payments, personal data or new external integrations, the team runs a short threat model: what are we building, what can go wrong, what are we doing about it. A one-hour session with a simple template is enough; a 40-page document is not needed.
Security champions make this scale. Each team has one developer, with perhaps 10 percent of their time, who gets extra training, joins a monthly community and is the first contact for security questions. With 60 teams, that is 60 people who know the platform defaults and can run a threat model, compared with eight in the central team. The central team then focuses on the platform, the hardest reviews, pen tests and incident response.
5Measuring Progress by Category
The programme reports a small set of numbers each quarter: vulnerabilities found per category, and where they were found (in the pull request, in testing, in a pen test or in production); median time to fix by severity; and recurrence, meaning the same class appearing again in the same service. The shift we want to see is fewer findings overall and more of them caught early.
Recurrence is the most useful signal for action. If broken access control keeps returning, the platform probably lacks a good default for ownership checks, or teams do not know about it. The fix is in the lower layers of the programme, not more reminders.
| Measure | Last year | This year |
|---|---|---|
| High findings per 100 services | 42 | 27 |
| Share caught before merge | 35 percent | 68 percent |
| Median days to fix, critical | 19 | 6 |
| Repeat findings, same class and service | 31 | 9 |
| Services on current platform BOM | 55 percent | 88 percent |
6Leadership Support and Budget
None of this survives the first busy quarter without leadership. Security goals become part of engineering quality goals, next to reliability and performance, with each engineering manager owning the numbers for their services. Time to fix security findings is planned capacity, not something squeezed in. The budget pays for the platform work, the tools, champion time and external pen tests.
The way to keep that support is to report in business terms: fewer incidents, faster response to the next Log4Shell-style event, and evidence for customer and regulatory audits. A programme that can show a falling curve after one year keeps its funding.
7Follow-up questions
How do you handle a team that keeps ignoring findings?
First I check whether the findings are real and whether the team has capacity, because many such cases are noisy tools or overloaded teams. If they are real, the numbers go to the team's engineering manager as part of quality goals, and the champion gets support. Escalation is the last step, but it must exist.
Would you start a bug bounty?
Only after the basics work. A bug bounty brings external findings that need fast triage and fixing; if internal scanning still finds hundreds of issues, the bounty will report many of the same and cost money for things we could find ourselves.
What is the first thing you would do in month one?
Collect the baseline and look at the platform starter. Those two tell me where the most common findings come from and give me the lever that reaches every service with one change.
8Conclusion
In this answer, we built an application security programme that scales to 500 developers. We start from a baseline of findings by category, put secure defaults into platform starters so the easy path is safe, run dependency, static and secret scanning in CI with low false-positive rates, add threat modelling for high-risk changes and security champions in every team, and measure findings, time to fix and recurrence by category. Leadership support, with security treated as an engineering quality goal and given budget, keeps it going long enough for the numbers to fall year over year.
Open with
With 500 developers and a small security team, reviewing everything is impossible, so I would make the safe path the easy path and use people where machines cannot help.
Then, if they want more
I would start by measuring: last year's findings by category, from pen tests, scanners and incidents, and how long fixes took, so I know where to focus. The biggest lever is the platform starter every service already uses.
I would put deny-by-default Spring Security, safe Actuator settings, a bcrypt password encoder, JSON instead of Java serialization, a helper for ownership checks and an HTTP client that blocks internal addresses into it, so a new service is secure without effort. Then every pull request runs dependency scanning, static analysis and secret scanning from a shared pipeline template.
Only high-confidence rules block merges, because a noisy tool loses developers' trust, and suppressions need a reason. For design-level risks, teams run a short threat model on changes that touch authentication, payments or personal data, and each team has a security champion with some dedicated time, which gives me sixty people in the teams instead of eight in the centre.
I would report findings by category, the share caught before merge, time to fix and recurrence every quarter; recurrence tells me where a default is missing. Finally, I would make security part of engineering quality goals owned by managers, with planned capacity and budget, and report results in business terms to keep that support.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- OWASP Top Ten
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "How would you build an application security programme for 500 Java developers so that...": https://scrivio-interview-library.netlify.app/spring-boot/web-security-threats/20cd0d993c/