Which of the following best explains why HTTPS secures communication between a client and a server?
Think about what encryption does to data sent over the internet.
HTTPS uses encryption to protect data so that only the client and server can understand it. This prevents others from reading or tampering with the data during transmission.
What will be the output of the following command on a server running nginx with HTTPS enabled?
sudo nginx -T | grep listen
sudo nginx -T | grep listen
HTTPS usually uses a specific port number with SSL enabled.
Port 443 with 'ssl' indicates HTTPS is enabled in nginx configuration.
Which nginx server block snippet correctly enables HTTPS with SSL certificate and key?
Check the port number and correct SSL directives.
Option D correctly listens on port 443 with SSL enabled and uses the proper ssl_certificate and ssl_certificate_key directives.
After adding SSL configuration to nginx, the server fails to start. Which of the following is the most likely cause?
Check file paths and permissions related to SSL files.
If nginx cannot find or access the SSL certificate or key files, it will fail to start when HTTPS is enabled.
Which set of HTTP headers should be added in nginx configuration to improve security for HTTPS websites?
Think about headers that protect against common web attacks and enforce HTTPS.
Option C includes headers that enforce HTTPS usage, prevent MIME sniffing, and block clickjacking, which are best practices for HTTPS security.