Salesforce ensures data security and privacy through encryption, user authentication, access controls, regular backups, and compliance with industry standards like GDPR and CCPA.