Data security refers to the security measures an organization puts in place to protect its data. It includes best practices, access controls, secrecy measures, and data loss prevention. Compliance refers to an organization’s ability to meet agency or federally enforced regulations that prescribe certain standards. There can be data security compliance, but other forms of compliance as well.