Apple Inc. has become only the second company in history to achieve a $5 trillion market valuation.