The company's partnership with Nvidia and its exposure to AI data center spending stood it in good stead in April.