T2 diabetes is a silent killer and serious public health issue across the world, though awareness of diabetes allows understanding of the causes and prevention of the disease. With this inspiration, we formulate a deterministic model by incorporating awareness and saturated treatment function of the T2 diabetes model to study the dynamics of the disease. We have carried out thoroughly analysis of the model system, including positivity of solutions, boundedness, equilibrium, and stability analysis. Again, we consider the deterministic model system as an optimal control problem by taking awareness (M) and treatment (u) as time-depended control parameters. The sufficient conditions for optimal control for T2 diabetes are obtained utilizing the Pontryagin's maximum principle in time-dependent controls to find optimal strategies for disease control. We intended to assess the efficacy and costs of several strategies to determine which is the best cost-effective strategy with the limited resources for treatment. The parameters incident rate (β), awareness coefficient ( p), media (M), and treatment (u) highly influence the dynamics of T2 diabetes. Numerical simulations suggest that both awareness and treatment controls have a significant impact on the optimal system and are economically feasible to reduce the prevalence of T2 diabetes.