The tech industry is the stock market's hottest, most profitable sector, but it can be a roller-coaster ride.