The most impactful way the Malacca and Sunda Straits affected the building of empires in Southeast Asia is: Whoever held the straits could limit European access to Southeast Asia.
Controlling these strategic waterways allowed empires to regulate trade routes and maintain dominance over maritime trade, which was crucial for economic power and influence in the region, especially in the face of European colonial expansion.