CS FundamentalsVery hardGATE CS · TCS NQT Prime · Product Company SDE

What risk does a 'merge queue' (serialising merges to main, re-testing each change against the latest main before it actually lands) specifically guard against?

  1. A. Commit messages being too long
  2. B. Developers writing code with syntax errors
  3. C. The repository running out of disk space
  4. D. Two individually-passing changes being merged around the same time in a way that, combined, breaks main even though neither broke it alone

Correct answer: D. Two individually-passing changes being merged around the same time in a way that, combined, breaks main even though neither broke it alone

Even if each change passes CI against the main branch it was based on, two such changes merged close together could conflict in subtle ways that only show up once combined; a merge queue re-validates each change against the very latest main just before it lands, catching this.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic