In this study, we present a highly practical marketing course. Through learning marketing, we can cultivate students’ ability to analyze, solve and practice problems. Therefore, this paper would study the problems encountered in the marketing course through cloud computing technology and propose corresponding countermeasures, so as to better improve students’ ability to analyze and solve problems and enhance the effectiveness of the classroom. This paper also analyzed the data aggregation algorithm based on Particle Swarm Optimization (PSO) algorithm. The results showed that when other conditions were the same, only 6 students approve of the traditional marketing teaching mode, accounting for 12%; there were 44 people who did not approve, accounting for 88%. This number was more than half; 49 students recognized the optimized marketing teaching mode, accounting for 98%; there was 1 person who did not approve, accounting for 2%. The proportion of people who did not approve after optimization was far less than that of the traditional model, which showed that cloud computing data aggregation algorithm could find out the problems in marketing teaching and provide correct countermeasures to solve them, so that the teaching model could be optimized. (1) The data aggregation algorithm based on cloud computing has a good optimization effect on the evaluation of marketing teaching problems and countermeasures, indicating a new direction for future research. (2) The combination of cloud computing and data aggregation algorithm is not only a novel research perspective, but also a perfect idea. (3) Marketing course is a very important course in today’s society. The study of its teaching problems and countermeasures evaluation will help students improve their learning efficiency and enhance their ability to adapt to the society.