Skip to interview prep
Apexed

66. How would you decide whether to add a third-party library for a small but unfamiliar feature?

MediumTesting & engineering practice

Technical
Show model answer

Compare the actual requirements with the cost of implementing and maintaining the feature internally. Examine the library API, maintenance history, license, transitive dependencies, security posture and compatibility with the project environment.

Try the riskiest integration in a small spike and inspect failure behavior, bundle or runtime costs, and an exit path. A short implementation may be preferable for a narrow stable requirement; a well-supported library may reduce substantial domain risk.

What interviewers listen for

  • Total maintenance cost
  • Dependency and license review
  • Small integration experiment
How would you decide whether to add a third-party library for a small but unfamiliar feature — Software engineering interview question — Apexed