Picking an NVIDIA driver by browsing a download page is how people end up with a driver that fights Secure Boot. Ubuntu already knows what suits your card.
ubuntu-drivers devices
sudo ubuntu-drivers install
The first command lists the hardware that needs a driver and the candidates, with the recommended one marked. The second installs the recommended one. The Ubuntu Server docs call the ubuntu-drivers tool the recommended route, and say it uses the same logic as the Additional Drivers window.
You can also pin a branch yourself, for example sudo ubuntu-drivers install nvidia:535. On a compute server, the docs add --gpgpu and the -server driver variants.
Reboot afterwards so the new kernel module loads.
I would always read the list before installing, even though the tool picks for you. A driver is a kernel module, so a wrong pick can leave you with a black screen.
Caveat: the docs warn against DKMS driver modules unless you run a custom kernel, because they are not signed for Secure Boot. Stay with the packaged drivers and the tool handles the signing side for you.
Further reading: Ubuntu Server docs: NVIDIA drivers installation, On this site: pro status shows what Ubuntu Pro covers on your machine, On this site: do-release-upgrade -c checks for a new Ubuntu release without starting one