In cloud environments, data authentication serves the purpose of verifying the data's integrity and validity. The prevalence of data dispersion and sharing in cloud systems often leads to frequent occurrences of manipulation, theft and loss. The use of various techniques for validating data ownership and ensuring its validity in the absence of physical access contributes significantly to enhancing data authentication and security. The use of digital watermarking has the potential to authenticate medical images that are stored and sent in a cloud environment. Digital watermarking involves embedding a watermark onto a picture while preserving its visual appearance. The verification of image integrity and provenance may be achieved by the use of authentication data included in this watermark. This study aims to ascertain the identification and authentication of patient medical images saved in the cloud. Firstly, it is necessary to analyze the impact of watermarking methods on data optimization. Furthermore, identifying an optimal watermarking technique for incorporating watermark data into medical images will enhance the authentication process while simultaneously ensuring a harmonious equilibrium between resilience and image quality. The proposed watermarking technology demonstrated effective performance when applied to various medical pictures inside a cloud computing environment, substantiating its efficacy.