ArchitectMind
  1. Home
  2. Java Ecosystem
  3. Book 10 · Security, System Design & Solution Architecture
  4. Volume VI
  5. Legacy System Discovery
Book 10 · Volume VI — Legacy Modernization & Transformation · Topic 1.1

Legacy System Discovery

Finding out what really exists — code, data, jobs, integrations, users and the people who know

20 min readStage 4 · Production & architecture10 interview questions
Chapter
Chapter 1 — Legacy Architecture Assessment
Prerequisites
Volume IV Chapter 1
You will be able to
Plan and time-box a legacy discovery, triangulate evidence from code, runtime, data, infrastructure, documents and people, build a trustworthy inventory with owners and criticality, uncover hidden integrations and unused features, capture baseline metrics and produce a discovery report that grounds modernisation decisions
Covers
Legacy system discovery
On this page
  1. 1. Concept / Definition
  2. 2. Why It Exists
  3. 3. Core Concepts — Inventory Attributes
  4. 4. How It Works Internally — Discovery Sources in Practice
  5. 4A. Deep Dive — SME Interviews and Knowledge Capture
  6. 4B. Deep Dive — Usage Analytics
  7. 4C. Deep Dive — Shadow Integrations
  8. 4D. Deep Dive — Baseline Metrics
  9. 4E. Deep Dive — Planning and Time-Boxing
  10. 5. APIs / Features / Syntax
  11. 6. Practical Examples
  12. 7. Common Problems & Mistakes
  13. 8. Performance & Production Considerations
  14. 9. Architecture & Design Considerations
  15. 10. Interview Questions & Answers

1Concept / Definition

Legacy system discovery establishes what actually exists in and around a legacy system — its components, technologies, data, jobs, integrations, users, owners and operating characteristics — and who knows what. It triangulates evidence from code, runtime behaviour, databases, infrastructure, documents and people, because no single source is complete or current. Discovery produces the inventory and baseline on which assessment (1.2–1.5) and strategy (Chapter 2) depend.

Where legacy knowledge hides
Figure 1 — Where legacy knowledge hides
Legacy inventory (excerpt) — KLCP
Figure 2 — Legacy inventory (excerpt) — KLCP
VocabularyMeaning
InventoryCatalogue of components with attributes
SMESubject-matter expert holding tacit knowledge
Shadow integrationUndocumented connection (DB link, FTP, email)
BaselineCurrent metrics to measure improvement against
Table 1 — Terms

2Why It Exists

Skipping discoveryConsequence
Hidden integration missedPartner breaks at cutover
Unused features migratedWasted effort
Key-person knowledge lostBehaviour can't be reproduced
No baselineCan't prove modernisation helped
Table 2 — Why

3Core Concepts — Inventory Attributes

AttributeWhy it matters
Technology and versionSupport status, skills, migration path
Size and ageEffort estimation
OwnerDecision rights and knowledge
Users and usageWhat must be preserved
Criticality/tierRisk and sequencing
Change rateWhere modernisation pays back
Support statusEnd-of-support urgency
InterfacesIntegration scope
Table 3 — What to record per component

4How It Works Internally — Discovery Sources in Practice

SourceKLCP techniqueFinding
CodeBuild files, module scan38 EJB modules, 1.1M LOC, shared utils JAR
RuntimeOTel Java agent on WebLogic for 4 weeksActual call paths, 11% of EJB methods never called
DatabaseData dictionary, AWR, audit1,900 tables, 640 PL/SQL, 3 DB links
Schedulercrontab + DBMS_SCHEDULER export74 jobs, 9 with no owner
NetworkVPC-equivalent flow logs on-prem firewallFTP to reinsurer, SMTP relay
People22 SME interviewsManual month-end steps in spreadsheets
Tickets3 years of incidentsTop failure areas
Table 4 — Triangulation

4ADeep Dive — SME Interviews and Knowledge Capture

PracticeDetail
Interview the doersOperators, DBAs, power users, not only managers
Structured questionsWhat breaks? What's manual? What would you never touch?
WalkthroughsWatch month-end close, not just describe it
RecordKnowledge base entries, runbooks, recorded sessions
Key-person riskIdentify single points of knowledge; pair early
Table 5 — Tacit knowledge is the scarcest asset

4BDeep Dive — Usage Analytics

EvidenceKLCP result
HTTP access logs by URL31% of screens used < once/month
EJB method invocation counts11% never invoked in 4 weeks
Report execution logs227 of 420 reports never run in a year
Batch job outputs consumed?6 jobs produce files nobody reads
ImplicationDon't migrate what nobody uses (2.5 Retire)
Table 6 — Measure before migrating

4CDeep Dive — Shadow Integrations

Hidden pathHow found
DB link to finance DBDBA_DB_LINKS + audit trail
FTP export to reinsurerFirewall logs
Spreadsheet uploads by financeInterviews + file share scan
Email-based approvalsMail relay logs
Direct DB reads by BI toolDB session sampling
Table 7 — Every one of these would have broken at cutover

4DDeep Dive — Baseline Metrics

MetricKLCP baseline
Lead time for change6 weeks
Release frequencyMonthly (with 3-day manual regression)
Incidents (P1/P2 per quarter)14
Infra + licence cost₹6.8 Cr/year
Claim cycle time (business)14 days median
PerformanceFNOL form p95 4.2 s
Table 8 — Measure now to prove value later

4EDeep Dive — Planning and Time-Boxing

Discovery plan (6 weeks)
Figure 3 — Discovery plan (6 weeks)
PrincipleDetail
Time-box4–8 weeks for a large system
Parallel streamsCode, runtime, data, integration, people
Good enoughEnough to choose strategy; deepen per wave
Output-drivenInventory, context diagram, risks, gaps, options
Table 9 — Avoid endless discovery

5APIs / Features / Syntax

BASH
# Attach the OTel Java agent to legacy WebLogic (no code change)
JAVA_OPTIONS="$JAVA_OPTIONS -javaagent:/opt/otel/opentelemetry-javaagent.jar \
  -Dotel.service.name=klcp -Dotel.traces.sampler=parentbased_traceidratio \
  -Dotel.traces.sampler.arg=0.05 -Dotel.exporter.otlp.endpoint=http://collector:4317"
export JAVA_OPTIONS
SQL
-- Oracle: find shadow dependencies — DB links, scheduler jobs and external sessions
SELECT owner, db_link, host FROM dba_db_links;
SELECT owner, job_name, enabled, last_start_date FROM dba_scheduler_jobs;
SELECT DISTINCT machine, program, username
FROM   gv$session WHERE username IS NOT NULL AND program NOT LIKE 'weblogic%';
YAML
# Inventory entry (discovery output)
component: klcp-pl-sql-batch
technology: Oracle PL/SQL + cron
age_years: 12
size: {procedures: 640, jobs: 74}
owner: unknown        # → risk: key-person, assign owner
users: [finance (month-end), reinsurance]
criticality: tier-2
change_rate: low
support_status: Oracle 11g extended support ends 2026-12
interfaces: [db-link finance, ftp reinsurer]
evidence: [dba_scheduler_jobs export, firewall logs, interview #14]

6Practical Examples

6.1 KLCP discovery

Six weeks of parallel streams produced an inventory of 212 components, found 14 undocumented integrations, identified 227 unused reports and 11% dead EJB methods, and named two people as the only holders of PL/SQL batch knowledge — pairing started in week four.

6.2 NovaBank middleware

Runtime tracing of the channel middleware revealed that 40% of calls to core banking were balance lookups — which shaped the CQRS read-model design in Volume IV 6.2.

6.3 ShopNow monolith

Access logs showed a "wholesale" module used by three accounts; it was retired rather than migrated, saving months.

6.4 Worked example — triangulation

Scenario. Kavach Insurance planned to modernise its 15-year-old claims system, and the architecture documents listed nine integrations with other systems.

Docs saidRuntime showed
9 integrations23
Table 10 — Evidence

What it shows. Triangulation compares several independent sources instead of trusting one. The documents said nine integrations, but runtime evidence told a different story: network flow logs, database link audits, scheduler exports and an APM agent attached to the application together showed 23. The extra fourteen included FTP exports to a reinsurer, a nightly database link used by finance and spreadsheets uploaded by regional teams. Had the migration plan been based on the documents, those fourteen integrations would have broken on cut-over day. Every integration found was added to the inventory with an owner, a frequency and a data description.

Common mistake. Treating existing documentation as the truth, when it often describes the system as originally designed rather than as it runs today.

Takeaway. Triangulate documents with runtime evidence and people, and trust what the running system shows.

6.5 Worked example — unused feature

Scenario. Kavach's claims system offered hundreds of reports, and the migration plan assumed all of them must be rebuilt.

Reports never run227
ActionRetire
Table 11 — Scope reduction

What it shows. Usage analytics from the reporting server's logs showed that 227 reports had not been run at all in the past eighteen months. After confirming with business owners that none were needed for regulatory or annual processes, Kavach marked them for retirement instead of migration. This removed months of rebuild and test effort from the programme and simplified the new reporting design. Usage data is one of the cheapest ways to reduce modernisation scope.

Common mistake. Migrating every feature by default because nobody checked whether it is still used.

Takeaway. Collect usage data during discovery and retire features nobody uses, after confirming with owners.

6.6 Worked example — ownerless job

Scenario. Kavach's scheduler ran hundreds of batch jobs, and the discovery team checked who owned each one.

Jobs without owner9
ActionAssign or retire
Table 12 — Governance

What it shows. Nine jobs had no known owner: nobody could say who relied on their output or what would happen if they stopped. Ownerless jobs are a governance risk, because they cannot be safely changed, migrated or retired. The team assigned owners where a business need was found and planned to retire the rest after a monitored switch-off period. Each decision was recorded in the inventory, so no job was left in an unknown state before migration.

Common mistake. Migrating ownerless jobs as they are, carrying unknown risks into the new platform.

Takeaway. Find an owner for every component during discovery, or plan its retirement.

6.7 Worked example — interview whiteboard

Scenario. In interviews, Kavach asks: "You're asked to modernise a system nobody fully understands. Where do you start?"

PromptAnswer outline
"You're asked to modernise a system nobody fully understands. Where do you start?""Time-boxed discovery (4–8 weeks) in parallel streams: code/build scan, runtime tracing with agents, database dictionary/audit, scheduler and batch export, network flows, documents, tickets, SME interviews with doers. Triangulate — trust runtime evidence over docs. Build inventory (tech, version, size, owner, users, criticality, change rate, support status, interfaces). Find shadow integrations and unused features. Capture baseline metrics. Output: inventory, context diagram, risks, knowledge gaps, options."
Table 13 — Structured answer

Why it works. The outline describes time-boxed discovery of four to eight weeks, run in parallel streams: code and build scans, runtime tracing with agents, database dictionary and audit analysis, scheduler and batch exports, network flows, documents, tickets and interviews with the people who actually do the work. Evidence is triangulated, with runtime data trusted over documents. The outputs are an inventory with key attributes, shadow integrations, unused features, baselines, a context diagram, risks and knowledge gaps. Interviewers hear a structured, evidence-based approach rather than a jump to rewriting.

Common mistake. Proposing a rewrite or a migration strategy before understanding what exists.

Takeaway. Start with time-boxed, evidence-based discovery across many sources before choosing a strategy.

6.8 Worked example — key person

Scenario. Discovery found that only two people understood Kavach's PL/SQL settlement batch, and one planned to retire within a year.

PL/SQL batch2 people
MitigationPairing + recorded walkthroughs
Table 14 — Knowledge risk

What it shows. Key-person risk was treated as a top priority. The two experts paired with modernisation engineers on real changes, recorded walkthroughs of the batch logic and wrote runbooks for common failures. Within three months, four more engineers could support the batch. When one expert retired, the knowledge stayed in the team and the recordings, and the batch was later migrated with far less risk.

Common mistake. Discovering key-person dependencies only when the person leaves.

Takeaway. Identify key-person risks early and capture their knowledge through pairing, recordings and runbooks.

6.9 Worked example — anti-patterns

Scenario. Kavach reviewed why an earlier modernisation attempt had failed.

Anti-patternEffect
Trust old docsMissed integrations
Managers onlyMissing tacit knowledge
Endless discoveryNo decisions
Table 15 — Common mistakes

What it shows. The table names the anti-patterns. Trusting old documents led the team to miss integrations, which broke at go-live. Interviewing only managers missed the tacit knowledge held by the people doing the daily work, such as manual fixes and workarounds. Endless discovery, with no time box, delayed decisions while the business lost patience. The new programme used runtime evidence, interviewed the doers and fixed discovery at six weeks, deepening it per migration wave.

Common mistake. Swinging from no discovery to discovery that never ends.

Takeaway. Use evidence, talk to the doers and time-box discovery.

6.10 Worked example — licence discovery

Scenario. Discovery included a review of Kavach's software licences and support contracts.

Oracle extended supportEnds 2026-12
Table 16 — Deadline driver

What it shows. It found that Oracle extended support for the claims database version would end in December 2026. That date became a hard deadline driver for the programme: the database had to be upgraded or migrated before then, or Kavach would run without security patches. The finding changed the programme's priorities, moving data migration earlier in the plan. Licence and support dates are often overlooked but can decide the whole schedule.

Common mistake. Ignoring licence and support dates until a renewal notice arrives.

Takeaway. Review licences and support dates during discovery, because they can set hard deadlines.

6.11 Worked example — CMDB reconciliation

Scenario. Kavach's configuration management database listed the servers that made up the claims system.

CMDB listed140 servers; found 162
Table 17 — Evidence

What it shows. The CMDB listed 140 servers, but network scans and the cloud discovery agent found 162. The extra 22 included reporting servers, file transfer hosts and test machines that had quietly become part of production flows. Each was investigated, added to the inventory and assigned an owner, and several were retired. Reconciling the CMDB with evidence prevented these servers from being forgotten in the migration.

Common mistake. Assuming the CMDB is complete and accurate.

Takeaway. Reconcile inventories against scanned evidence to find what is missing.

6.12 Worked example — month-end walkthrough

Scenario. Kavach's finance team said month-end claims reporting was "automated".

Manual steps17 spreadsheet steps
Table 18 — Hidden process

What it shows. Walking through month-end with the people who actually do it revealed 17 manual spreadsheet steps: exporting data, adjusting figures, copying between files and uploading results. None appeared in any system documentation. These hidden steps became requirements for the new platform, which automated most of them. Without the walkthrough, the new system would have broken a critical process that nobody had documented.

Common mistake. Accepting a description of a process without watching it being done.

Takeaway. Walk through critical processes with the doers to uncover hidden manual steps.

6.13 Worked example — incident mining

Scenario. Kavach analysed two years of incident tickets for the claims system.

Top areaSettlement batch failures
Table 19 — Pain point

What it shows. Incident mining showed that settlement batch failures were the largest source of incidents and out-of-hours calls. This became a clear pain point and a priority for modernisation, with a business case based on reduced incidents and staff effort. It also showed which parts of the system were most fragile and needed careful handling during migration. Incident data also showed the times of day and month when failures clustered, which helped plan safe migration windows.

Common mistake. Prioritising modernisation by technical preference instead of evidence of pain.

Takeaway. Mine incident and ticket data to find where the legacy system hurts most.

6.14 Worked example — performance baseline

Scenario. Kavach wanted to prove that the modernised claims system would be faster than the old one.

FNOL p954.2 s
Table 20 — Before

What it shows. Before any change, the team captured a performance baseline: FNOL, the first notice of loss, had a p95 response time of 4.2 seconds. Other baselines covered batch duration, error rates and processing cost. After the first modernisation wave, FNOL p95 fell to 0.9 seconds, and the comparison was clear because the baseline had been measured the same way. Baselines were stored with the method used to measure them, so later comparisons were fair and could be repeated by anyone.

Common mistake. Measuring only after modernisation, leaving nothing to compare with.

Takeaway. Capture baselines before change, so improvement can be proven.

6.15 Worked example — discovery tools

Scenario. Kavach needed evidence about its legacy servers and application behaviour without changing the code.

ToolAWS Application Discovery, APM agent
Table 21 — Tooling

What it shows. Discovery tools gathered it. AWS Application Discovery Service collected server configuration, utilisation and network dependencies. An APM agent attached to the Java application traced requests and calls to databases and external systems. Together they produced dependency maps and sizing data in weeks, which would have taken months to gather manually. The tools' output was still reviewed with engineers, because automated maps can include noise, such as monitoring traffic, that must be filtered out. Each dependency was then confirmed with its owner.

Common mistake. Gathering everything by interviews and spreadsheets when tools can collect it automatically.

Takeaway. Use discovery tools to collect runtime evidence quickly and accurately.

6.16 Worked example — interview follow-ups

Scenario. Kavach's interviewers follow up on discovery approach.

Follow-upAnswer
"How long should discovery take?"Time-boxed; enough to choose strategy
"Most important source?"Runtime evidence + doers
Table 22 — Common probes

Why it works. Discovery should be time-boxed: long enough to choose a modernisation strategy for each component, then deepened for each migration wave. The most important sources are runtime evidence, which shows what really happens, and the doers, the people who operate and use the system daily and know its workarounds. Strong candidates explain why both matter and how they would balance speed with depth. Interviewers also value candidates who mention how they would keep stakeholders informed during discovery, so the business sees progress rather than a silent delay.

Common mistake. Saying discovery should continue until everything is known.

Takeaway. Time-box discovery and prioritise runtime evidence and the people doing the work.

6.17 Worked example — checklist

Scenario. Kavach used a checklist to decide when discovery was complete enough for strategy decisions.

Item✔
All sources✔
Inventory attributes✔
Shadow integrations✔
Usage data✔
Baselines✔
Knowledge capture✔
Table 23 — Discovery baseline

What it shows. The checklist confirms that all sources were examined, the inventory has its key attributes, shadow integrations have been searched for, usage data has been collected, baselines are captured and key knowledge has been recorded. Gaps are listed as risks rather than blocking progress. The checklist gave the steering group confidence to approve strategy decisions. Remaining gaps were assigned owners and target dates, so they were closed during the first migration wave.

Common mistake. Declaring discovery finished because the time box ended, without checking coverage.

Takeaway. Use a discovery checklist to confirm coverage and record remaining gaps as risks.

6.18 Worked example — context diagram

Scenario. Nobody at Kavach had an up-to-date picture of how the claims system fitted into the wider landscape.

OutputRecovered context (1.3)
Table 24 — Deliverable

What it shows. One of discovery's main outputs is a recovered context diagram, described in section 1.3. It shows the claims system, its users and all 23 integrations found, with direction and frequency. The diagram became the reference for migration planning, testing and cut-over, and it was reviewed with integration owners to confirm accuracy.

Common mistake. Keeping discovery findings only in spreadsheets, which are hard for stakeholders to understand.

Takeaway. Produce a recovered context diagram as a shared picture of the legacy system.

6.19 Worked example — sampling

Scenario. Kavach's operations team worried that tracing the legacy application would slow it down.

Trace sampling5% to limit overhead
Table 25 — Safety

What it shows. Trace sampling at 5% kept overhead low while still capturing enough data to map dependencies and performance. The team monitored CPU and latency before and after attaching the agent and saw no meaningful impact. Sampling was increased briefly during quiet periods to catch rare flows, such as month-end jobs. Agents were rolled out to one server first, observed for a day and then extended to the rest, with a quick way to remove them if any problem appeared.

Common mistake. Tracing every request on a fragile legacy system without checking the overhead.

Takeaway. Use sampling and monitoring to gather runtime evidence safely.

6.20 Worked example — security findings

Scenario. During configuration analysis, the discovery team looked for security risks.

DiscoveredHard-coded passwords in 6 configs
Table 26 — Risk surfaced

What it shows. They found hard-coded passwords in six configuration files, including credentials for the claims database. These were reported immediately as security findings, rotated and moved to a secrets manager. Discovery often surfaces risks like this, which must be fixed quickly rather than waiting for the modernisation programme. The finding also led to an automated scan for secrets in all legacy configuration and code repositories.

Common mistake. Noting security issues for later instead of fixing them immediately.

Takeaway. Treat security findings from discovery as urgent actions.

6.21 Worked example — interview scenario

Scenario. In an interview, Kavach asks: "The documents say there are nine integrations. Do you trust that?"

QuestionAnswer
"Docs say 9 integrations"Verify with flows and DB audit
Table 27 — Apply

Why it works. A strong answer says no and explains how to verify: examine network flows, database audit logs, database links, scheduler exports and file transfer logs, and attach tracing agents. It mentions shadow integrations, such as FTP exports and spreadsheet uploads, which documents often miss. The candidate shows a habit of verifying with evidence. They also explain how they would confirm each discovered integration with its owner, so the evidence turns into agreed scope.

Common mistake. Accepting documented integration counts without verification.

Takeaway. Verify integrations with runtime and data evidence.

6.22 Worked example — owner assignment

Scenario. Discovery found several components that nobody claimed responsibility for.

Unowned componentsOwners named in report
Table 28 — Accountability

What it shows. The discovery report names an owner for every component, agreed with business and IT leaders. Owners decide whether their components are migrated, changed or retired and answer questions during the programme. Clear accountability prevented decisions from stalling later. Owners are also listed in the inventory and service catalogue, so anyone can find them later.

Common mistake. Leaving ownership unresolved and hoping it will become clear during migration.

Takeaway. Assign owners for every component as part of discovery.

6.23 Worked example — batch output consumers

Scenario. Kavach's batch jobs produced many output files every night.

Unread files6 jobs
Table 29 — Retire candidates

What it shows. Analysis of file access logs showed that six jobs produced files that nobody read. After confirming with possible consumers and monitoring for complaints during a trial switch-off, the jobs were retired. This reduced migration scope and nightly processing time. The switch-off was reversible for one month, so any forgotten consumer could be restored quickly.

Common mistake. Assuming every batch output is used because it has always been produced.

Takeaway. Check who consumes batch outputs and retire jobs whose files are never read.

6.24 Worked example — data volume

Scenario. Kavach's migration planning needed to know how much data would move.

Largest tableCLAIM_DOCS 38M rows
Table 30 — Migration input

What it shows. Data volume analysis found that CLAIM_DOCS, holding document metadata, was the largest table with 38 million rows, and the related documents occupied several terabytes. This shaped the migration design: an incremental copy with change data capture and a short final cut-over, rather than a single bulk load during a weekend. Growth rates were also measured, so the new storage design could handle several years of expected volume.

Common mistake. Estimating migration effort without measuring data volumes.

Takeaway. Measure data volumes during discovery, because they shape migration design.

6.25 Worked example — options draft

Scenario. With discovery nearly complete, Kavach needed to move towards decisions.

Early optionsStrategy candidates per component
Table 31 — Next step

What it shows. An early options draft listed candidate strategies for each component, such as retire, rehost, replatform or refactor, based on the evidence. These options were not final, but they focused the next phase on evaluating a few realistic choices per component rather than starting from a blank page. Each option listed the evidence behind it and the questions still to answer, so evaluation started immediately.

Common mistake. Ending discovery with findings but no link to decisions.

Takeaway. Draft strategy options per component as the bridge from discovery to planning.

6.26 Worked example — deliverables

Scenario. Kavach defined the deliverables the discovery phase must produce.

DeliverableOwner
Inventory, context, risks, baselines, knowledge gapsArchitect + SMEs
Table 32 — Outputs

What it shows. The deliverables are the inventory, the recovered context diagram, risks, baselines and knowledge gaps, owned by the architect together with subject matter experts. Each is reviewed with stakeholders before strategy decisions are made. These outputs give the programme a reliable starting point. The deliverables were stored in a shared space and kept current through the programme, so later waves could build on them rather than repeating discovery.

Common mistake. Producing discovery outputs that only the discovery team understands.

Takeaway. Define clear discovery deliverables with owners and review them with stakeholders.

7Common Problems & Mistakes

MistakeFix
Docs onlyRuntime evidence
No usage dataAnalytics
Knowledge lossCapture early
No baselineMeasure now
Table 33 — Mistakes and fixes

8Performance & Production Considerations

ConsiderationPractice
Agent overheadSampling, off-peak
DB audit loadShort windows
Access to prodRead-only, approved
Table 34 — Discovery safely

9Architecture & Design Considerations

GuidelineDetail
TriangulateAccuracy
Time-boxMomentum
BaselineProof of value
Table 35 — Design guidance

10Interview Questions & Answers

Q1L1 · BasicConcept

What is legacy discovery?

Legacy discovery is the work of establishing what really exists in and around a legacy system before changing it: its components, technologies, data, integrations, batch jobs, users, owners and operational behaviour, and who holds knowledge about it. It combines evidence from code, runtime tracing, databases, schedulers, network flows, documents, tickets and interviews. The results guide modernisation strategy, reduce risk and often reduce scope by finding features and integrations that are no longer needed. Good discovery is time-boxed, evidence-based and focused on the decisions the programme must make next.

Q2L1 · BasicTricky

Why not rely on documentation?

Documentation of legacy systems is usually incomplete or out of date. It often describes the system as originally designed, not as it has evolved over years of changes, quick fixes and new integrations. Important details, such as shadow integrations or manual workarounds, are rarely documented at all. Running evidence, such as network flows, logs and traces, shows what actually happens, so it should be trusted over documents when they disagree. Documents are still useful for context and intent, but every important claim in them should be verified against evidence.

Q3L2 · IntermediateConcept

Name discovery sources.

Useful discovery sources include source code and build files; runtime traces from APM or OpenTelemetry agents; database dictionaries, audit logs and database links; job schedulers and batch outputs; network flow logs; configuration files; existing documents; incident and change tickets; licence and support records; and interviews with the people who use and operate the system daily. Each source covers different gaps, so combining them gives the most reliable picture. Interviews with the doers are especially valuable because they reveal workarounds, manual steps and known problems that no tool can detect.

Q4L2 · IntermediateConcept

What's a shadow integration?

A shadow integration is a connection between systems that is not documented or officially managed. Examples include a database link used by another application, a nightly FTP export to a partner, a script that copies files between servers or a spreadsheet that staff download, edit and upload. Shadow integrations are dangerous during modernisation because they break silently when the legacy system changes, so discovery must search for them actively. Network flows, database audit logs, file transfer logs and interviews with users are the best ways to find them, and each one found should be recorded with an owner.

Q5L3 · Senior EngineerDesign

How can you observe runtime without code changes?

Attach an APM or OpenTelemetry Java agent to the running application at start-up. The agent instruments common frameworks and libraries automatically, capturing requests, database calls and calls to external systems without code changes. Use sampling, such as 5% of requests, to keep overhead low, and monitor CPU and latency before and after. Combine traces with network flow logs and database audit data for a complete view. Start in a test environment, then roll out gradually to production with a quick removal plan. This gives an accurate dependency map and performance data in weeks.

Q6L3 · Senior EngineerConcept

Why collect usage analytics?

Usage analytics show which features, reports, screens and integrations are actually used and how often. Legacy systems often contain many features that nobody has used for years. Migrating them wastes time and money and adds complexity to the new system. With usage data, teams can confirm with owners and retire unused features, focus effort on what matters and design the new system around real usage patterns. Usage data should cover a long enough period, often a full year, to include monthly, quarterly and annual processes, so rarely used but essential features are not retired by mistake.

Q7L4 · Technical ArchitectDesign

What attributes belong in the inventory?

The inventory should record, for each component, its technology and version, age, size, owner, users, business criticality, rate of change, support and licence status, interfaces and dependencies, data held and known risks. These attributes allow teams to compare components, choose a modernisation strategy for each, plan migration waves and identify urgent issues, such as unsupported software or missing owners. The inventory should be a living artefact, kept in a shared tool rather than a private spreadsheet, and updated as discovery deepens and components are migrated or retired.

Q8L4 · Technical ArchitectBehavioural

How handle key-person risk?

Handle key-person risk by identifying it early, for example by asking who is called when a component fails. Then capture knowledge quickly through pairing the expert with other engineers on real work, recorded walkthroughs, runbooks for common tasks and failures, and reviews of critical code. Spread support across more people and reduce reliance on any one person before major changes begin. Recording knowledge in shared, searchable places, such as the wiki and repository, ensures it outlives any individual and supports the modernised system as well.

Q9L5 · Solution ArchitectConcept

Why capture baselines?

Baselines record how the legacy system performs before modernisation: response times, batch durations, error rates, incident counts, operating cost and manual effort. Without them, nobody can prove that modernisation delivered measurable improvement, and arguments about success become opinions. Baselines also help set realistic targets and identify where performance is worst, so they should be measured early and in the same way as later measurements. They also help detect regressions during migration, because a new component that performs worse than the baseline can be investigated before more traffic moves to it.

Q10L5 · Solution ArchitectEstimation

How long should discovery run?

Discovery should be time-boxed, often to four to eight weeks for an initial pass. The goal is enough understanding to choose a modernisation strategy for each component and plan the first waves, not complete knowledge of everything. Discovery is then deepened for each migration wave, focusing on the components being changed next. This balances risk reduction with progress and keeps stakeholders engaged. A clear time box also forces prioritisation: teams focus on the information needed for decisions rather than trying to document everything.

Test your knowledge on this topic →Flashcards from this topic's 10 questions, filtered by level and type.

Free question pack

Get 100 free Core Java interview questions

Subscribe for the Book 1 question pack (PDF, every answer explained) and new tutorials once a week. No spam, unsubscribe anytime. What is in the pack?

Almost done! Check your inbox and click the confirmation link. Your download link arrives as soon as you confirm.