Goldman Sachs Group Inc. Tuesday posted better-than-expected second-quarter profit on the strength of its investment-banking and trading businesses, but investors fretted over the company's ability to keep growing in the face of rising interest rates and tougher regulations.

The New York securities firm, led by Chief Executive Lloyd Blankfein, said net income more than doubled during the quarter to $1.93 billion from $962 million a...