Ransomware attacks are when a type of malware attempts to unlawfully encrypt files on a host computer system rendering them inaccessible and unusable (ICO). Victims of ransomware attacks are asked to pay, often in cryptocurrency, to have the data returned and/or decrypted.
DDoS (Distributed Denial of Service) attacks are malicious attempts to overwhelm a targeted server, service or network to disrupt normal traffic and render it inaccessible (Cloudflare). Nowadays, DDoS attacks are often amplified by hijacked IoT equipment and other connected devices.