Traders work on the floor of the New York Stock Exchange shortly after the opening bell in New York City, November 21, 2019.

Technology stocks, a longtime sector leader, once again lifted the broad market to records.

The Technology Select Sector SPDR Fund, one of the biggest tech exchange-traded funds with $25.7 billion assets under management, surged nearly 1% to an all-time intraday high on Monday, bringing its year-to-date gains to 46%.

With the help of the tech rally, major U.S. stock indices — the S&P 500, the Dow Jones Industrial Average and the Nasdaq Composite — all refreshed their records.

Tech was the best-performing sector among the 11 S&P 500 groupings, led by Micron Technology and Western Digital which traded 3.4% and 4% higher. Micron is trading at its 52-week high, posting its best day in two months.

Micron and Western Digital surged Monday on upgrades from Susquehanna International Group. The equity research firm upgraded Western Digital on the expected ramp-up of the 5G smartphone build cycle. The firm also recommended Micron as it sees an attractive risk-reward for the chipmaker.