AWS KMS works by allowing users to create and manage cryptographic keys. These keys can be used to encrypt data stored in various AWS services, such as Amazon S3, Amazon RDS, and Amazon EBS. In the context of histology, this means that all digital histological data, including images and reports, can be securely encrypted and stored.