5.WHAT IS THE COMMAND TO INSTALL APACHE LINUX AMI?
The command to install the Apache web server on an Amazon Linux AMI (including Amazon Linux 2 and Amazon Linux 2023) is
sudo yum install httpd -y (or sudo dnf install httpd -y for newer versions like AL2023). In Red Hat-based distributions like Amazon Linux, Apache is packaged under the name httpd (HyperText Transfer Protocol daemon)