Its amazing to me it died at 2 years, but I suppose it happens. All mine were going strong at 5+
Apple - or any other brand - can't control everything. CPU's, motherboards, etc are beyond Apple's control.
My Dell has the infamous burning Nvidia chipset that plagued Apple, Dell, HP, etc. a few years ago. Oddly enough - or not - the Dell is still operating nearly perfectly after 5 years, even with me (recklessly) overclocking the video card. My only complain is that the screen is showing a few slight dim spots, which has me contemplating swapping it out for a 1680x1050 panel.