Article 39 gives the DPO tasks including informing and advising the organisation and its staff, monitoring compliance, advising on data protection impact assessments and monitoring their performance, cooperating with the supervisory authority and acting as its contact point. These tasks take account of the risks associated with the processing.
Source: GDPR Article 39.