Task 2) Launch windows type of instance & do rdp connection for it
Task 3) Deploy IIS WebServer on Windows type of EC2 Instance.
Task 4) Deploy nginx server/apache2 server on linux type of instance.
sudo apt update -y
sudo apt install nginx -y
OR
sudo apt install apache2