Resolution, scaling, viewport size

I’m not sure if I understand how they affect each other.

When I set viewport width and height in project settings to 1920x1080 and run the game in fullscreen on a 4k screen, the game will be rendered in 3840x2160 or not?

To make the game run in 1080p fullscreen on a 4k screen I need to set scaling to 0.5?

Is this how it works?

The final result is determined by other settings as well, like the display stretch settings. They are listed here: