Ratings agency Moody's Investors Service upgraded Brazil's sovereign credit rating on Monday, giving a vote of confidence in the government's efforts to prevent Latin America's largest economy from overheating.