Bird
Raised Fist0
Software Engineeringknowledge~20 mins

Legacy system modernization in Software Engineering - Practice Problems & Coding Challenges

Choose your learning style10 modes available
Challenge - 5 Problems
🎖️
Legacy Modernization Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Legacy System Risks

Which of the following is the most common risk associated with maintaining legacy systems?

AEasier integration with modern cloud services
BImproved system performance from older, stable code
CLower maintenance costs because the system is well understood
DIncreased security vulnerabilities due to outdated software components
Attempts:
2 left
💡 Hint

Think about how old software might not receive updates or patches.

🚀 Application
intermediate
2:00remaining
Choosing Modernization Strategies

A company wants to update its legacy system without disrupting current operations. Which modernization approach best fits this goal?

AEncapsulation by wrapping legacy components with APIs
BComplete system rewrite from scratch
CImmediate replacement with a new off-the-shelf product
DIgnoring the legacy system and building a parallel system
Attempts:
2 left
💡 Hint

Consider approaches that allow old and new systems to work together.

🔍 Analysis
advanced
2:00remaining
Analyzing Modernization Impact

What is a likely consequence of refactoring legacy code to improve modularity?

AReduced need for testing after changes
BDecreased system flexibility and harder future updates
CIncreased risk of introducing new bugs due to code changes
DImmediate elimination of all legacy system dependencies
Attempts:
2 left
💡 Hint

Think about what happens when you change old code.

❓ Comparison
advanced
2:00remaining
Comparing Modernization Techniques

Which statement correctly compares 'rehosting' and 'refactoring' in legacy system modernization?

ARehosting moves the system to new infrastructure with minimal changes; refactoring changes code to improve design
BRehosting involves changing code structure; refactoring moves the system to new hardware without code changes
CBoth rehosting and refactoring require complete system rewrites
DRefactoring is faster and cheaper than rehosting because it avoids infrastructure changes
Attempts:
2 left
💡 Hint

Focus on what each technique changes: code or infrastructure.

❓ Reasoning
expert
3:00remaining
Evaluating Modernization Outcomes

A legacy system modernization project used a 'strangler pattern' to gradually replace old components. After completion, what is the expected state of the system?

AThe legacy system runs in parallel indefinitely with no new components added
BThe legacy system is completely replaced by new components with no downtime during transition
CThe legacy system is abandoned and all data is manually migrated to a new system at once
DThe legacy system is rewritten entirely before any new components are introduced
Attempts:
2 left
💡 Hint

Consider how the strangler pattern replaces parts step-by-step.

Practice

(1/5)
1. What is the main goal of legacy system modernization?
easy
A. To update old software to work better with new technology
B. To create entirely new software from scratch
C. To remove all old data from the system
D. To reduce the number of users accessing the system

Solution

  1. Step 1: Understand the purpose of legacy system modernization

    Legacy system modernization aims to improve old software so it works well with current technology.
  2. Step 2: Compare options with this purpose

    Only To update old software to work better with new technology matches this goal; others describe different actions.
  3. Final Answer:

    To update old software to work better with new technology -> Option A
  4. Quick Check:

    Legacy modernization = update old software [OK]
Hint: Focus on improving old software, not replacing it [OK]
Common Mistakes:
  • Confusing modernization with creating new software
  • Thinking it means deleting old data
  • Assuming it reduces user access
2. Which of the following is a common method used in legacy system modernization?
easy
A. Reducing system memory
B. Deleting all user accounts
C. Ignoring security updates
D. Rewriting code to improve compatibility

Solution

  1. Step 1: Identify common modernization methods

    Rewriting code is a typical way to make old software work better with new systems.
  2. Step 2: Eliminate incorrect options

    Deleting users, ignoring security, or reducing memory do not help modernization.
  3. Final Answer:

    Rewriting code to improve compatibility -> Option D
  4. Quick Check:

    Modernization method = rewriting code [OK]
Hint: Look for options that improve software function [OK]
Common Mistakes:
  • Choosing options that harm system function
  • Confusing modernization with system cleanup
  • Ignoring security improvements
3. Consider this scenario: A company moves its legacy software to the cloud and updates the user interface. What is the most likely result?
medium
A. The software becomes slower and less secure
B. The software works better with modern devices and is easier to use
C. The software loses all its data
D. The software stops working completely

Solution

  1. Step 1: Understand effects of cloud migration and UI update

    Moving to the cloud usually improves access and performance; updating UI improves usability.
  2. Step 2: Evaluate each option against expected effects

    The software works better with modern devices and is easier to use matches expected improvements; others describe negative or unlikely outcomes.
  3. Final Answer:

    The software works better with modern devices and is easier to use -> Option B
  4. Quick Check:

    Cloud + UI update = better use [OK]
Hint: Cloud + UI update usually improves software [OK]
Common Mistakes:
  • Assuming cloud migration causes data loss
  • Thinking UI updates slow software
  • Believing software will stop working
4. A legacy system modernization project failed because the updated software was incompatible with existing hardware. What is the most likely cause?
medium
A. The user interface was improved
B. The software was rewritten perfectly
C. The modernization ignored hardware compatibility requirements
D. The system was moved to the cloud successfully

Solution

  1. Step 1: Analyze the failure reason

    The failure was due to incompatibility with hardware, meaning hardware needs were overlooked.
  2. Step 2: Match cause with options

    Only The modernization ignored hardware compatibility requirements explains ignoring hardware compatibility; others describe unrelated or positive actions.
  3. Final Answer:

    The modernization ignored hardware compatibility requirements -> Option C
  4. Quick Check:

    Failure cause = ignored hardware needs [OK]
Hint: Check if hardware needs were considered [OK]
Common Mistakes:
  • Blaming successful cloud move
  • Confusing UI improvement with failure cause
  • Assuming perfect rewriting prevents all issues
5. A company wants to modernize a legacy system that has critical data and many users. Which approach best balances safety and improvement?
hard
A. Use a phased approach: update parts step-by-step while keeping the old system running
B. Move the system to the cloud without testing
C. Rewrite the entire system at once and switch immediately
D. Delete old data to speed up modernization

Solution

  1. Step 1: Consider risks of modernization with critical data and users

    Changing everything at once risks data loss and downtime; safety is important.
  2. Step 2: Evaluate approaches for safety and improvement

    Phased updates allow testing and reduce risk, keeping old system as backup.
  3. Final Answer:

    Use a phased approach: update parts step-by-step while keeping the old system running -> Option A
  4. Quick Check:

    Phased modernization = safe and effective [OK]
Hint: Update step-by-step to avoid risks [OK]
Common Mistakes:
  • Switching all at once causing downtime
  • Skipping testing before cloud move
  • Deleting data unnecessarily
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard