Bird
0
0

In a mono-repo containing 10 microservices, a developer updates a shared utility library. What is the most likely immediate effect?

medium📝 Analysis Q4 of 15
Microservices - CI/CD for Microservices
In a mono-repo containing 10 microservices, a developer updates a shared utility library. What is the most likely immediate effect?
AOnly the microservice where the change was made will use the updated library
BAll microservices will use the updated library after the next build
CThe update will cause all microservices to be rebuilt automatically
DThe shared library update will not affect any microservice until manually integrated
Step-by-Step Solution
Solution:
  1. Step 1: Understand shared libraries in mono-repos

    Shared libraries are centrally managed and used by all services in the mono-repo.
  2. Step 2: Analyze impact of update

    All microservices will use the updated library after the next build is correct because all services referencing the library will use the updated version after rebuilding. Only the microservice where the change was made will use the updated library is false as the library is shared. The update will cause all microservices to be rebuilt automatically may happen depending on CI but is not guaranteed. The shared library update will not affect any microservice until manually integrated is incorrect.
  3. Final Answer:

    All microservices will use the updated library after the next build -> Option B
  4. Quick Check:

    Mono-repo shared libs update all services [OK]
Quick Trick: Shared libs in mono-repo update all services [OK]
Common Mistakes:
  • Thinking only one service updates the library
  • Assuming rebuilds always happen automatically
  • Believing manual integration is required

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes