Bird
0
0

In a mono-repo, a developer accidentally deletes a shared configuration file. What is the best way to recover it?

medium📝 Analysis Q7 of 15
Microservices - CI/CD for Microservices
In a mono-repo, a developer accidentally deletes a shared configuration file. What is the best way to recover it?
ARecreate the file manually in each microservice repo
BCopy the file from another microservice's separate repo
CRestore the file from the Git history of the mono-repo
DDelete the entire mono-repo and clone again
Step-by-Step Solution
Solution:
  1. Step 1: Understand mono-repo Git history

    Mono-repo stores all code in one Git repository, so all file history is centralized.
  2. Step 2: Recover deleted file

    Using Git commands, the deleted file can be restored from the mono-repo's commit history.
  3. Final Answer:

    Restore the file from the Git history of the mono-repo -> Option C
  4. Quick Check:

    Mono-repo recovery = Git history restore [OK]
Quick Trick: Mono-repo files recoverable from single Git history [OK]
Common Mistakes:
  • Trying to copy from separate repos (multi-repo concept)
  • Recreating file manually in multiple repos
  • Deleting and recloning entire repo unnecessarily

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes