The introduction of new criteria for the safety of milk raw materials at the legislative level, on the one hand, made it possible to improve the supply of quality food to the population, and on the other hand, caused a decrease in the profitability of farms due to the deterioration of the marketability of milk and its price. Such a situation in the dairy business requires the search for solutions for commodity farms regarding possible ways to improve milk safety indicators as soon as possible in order to avoid a further reduction in the number of dairy cattle in Ukraine. The purpose of the research was to study the technology of obtaining and individual elements of the primary processing of milk for the number of somatic cells and the level of microbial contamination of milk raw materials. The work used general scientific methods, arbitration method, and the method of variational statistics. For this, combined samples of milk from 3 farms that used different approaches to keeping animals and technologies for obtaining milk from them, and a number of personal farms of the population were examined quarterly for one year to study the dynamics and relationships between indicators of raw material safety. A significant influence of paratypic factors on the number of somatic cells in milk was revealed, such as: milk production technology, seasonality of production, and the level of morbidity of animals for hidden forms of mastitis. At the same time, a direct correlation was established between indicators of the number of somatic cells and microbial contamination of milk at the level of 0.91 (P<0.001), which suggests that measures aimed at improving one of them will automatically improve the other. Violations of the requirements of the primary processing of milk caused a significant increase in the microbial load. Elimination of identified technological deficiencies will contribute to the increase of raw materials at milk processing enterprises