Altogether, our findings suggested that the SNPs of TRAPPC9 and CD4 genes could be useful genetic markers in selection for milk protein improvement and mastitis resistance phenotypic traits in dairy cattle. Here, CD4 is linked to mastitis.