How Marketers Can De-Risk Their Programmatic Ad Buys

How would marketers know if their ads were shown on good sites versus bad ones, like fake news, disinformation, hate speech, porn, or worse sites? If they don't know, how can they de-risk their programmatic media buys?