What does HTTP stand for and what is its main purpose?
HTTP stands for HyperText Transfer Protocol. It is used to transfer data between a web server and a browser in a simple, text-based way.
Click to reveal answer
beginner
What is HTTPS and how does it differ from HTTP?
HTTPS stands for HyperText Transfer Protocol Secure. It adds encryption using SSL/TLS to protect data during transfer, making it secure from eavesdropping.
Click to reveal answer
intermediate
Why is HTTPS important for websites that handle sensitive information?
HTTPS encrypts data like passwords and credit card numbers, preventing attackers from stealing or tampering with this information during transmission.
Click to reveal answer
intermediate
What role does an SSL/TLS certificate play in HTTPS?
An SSL/TLS certificate verifies the website's identity and enables encrypted communication between the browser and server.
Click to reveal answer
beginner
How does a browser know to use HTTPS instead of HTTP?
Browsers use URLs starting with https:// and check for a valid SSL/TLS certificate to establish a secure connection automatically.
Click to reveal answer
What does HTTPS add to HTTP to make it secure?
AEncryption using SSL/TLS
BFaster data transfer
CMore server storage
DBetter website design
✗ Incorrect
HTTPS uses SSL/TLS encryption to secure data between the browser and server.
Which port does HTTPS typically use?
A80
B443
C21
D8080
✗ Incorrect
HTTPS commonly uses port 443 for secure communication.
What does an SSL certificate verify?
AThe user's password
BThe server's IP address
CThe browser version
DThe website's identity
✗ Incorrect
SSL certificates confirm the website's identity to prevent impersonation.
Which URL prefix indicates a secure website?
Ahttp://
Bftp://
Chttps://
Dfile://
✗ Incorrect
The prefix https:// shows the website uses secure HTTPS protocol.
Why should websites handling passwords use HTTPS?
ATo encrypt passwords during transfer
BTo speed up login
CTo store passwords on the server
DTo allow anonymous access
✗ Incorrect
HTTPS encrypts passwords so attackers cannot steal them during transmission.
Explain the difference between HTTP and HTTPS in simple terms.
Think about how safe your data is when sent over the internet.
You got /4 concepts.
Describe the role of SSL/TLS certificates in HTTPS connections.
Certificates are like ID cards for websites.
You got /4 concepts.
Practice
(1/5)
1. What is the main difference between HTTP and HTTPS?
easy
A. HTTPS encrypts data while HTTP does not
B. HTTP encrypts data while HTTPS does not
C. HTTP is faster because it uses encryption
D. HTTPS does not use any encryption
Solution
Step 1: Understand HTTP basics
HTTP transfers data without encryption, so data can be seen by others.
Step 2: Understand HTTPS encryption
HTTPS adds encryption to protect data from being read by others during transfer.
Final Answer:
HTTPS encrypts data while HTTP does not -> Option A
Quick Check:
Encryption = HTTPS [OK]
Hint: HTTPS always means encrypted data transfer [OK]
Common Mistakes:
Thinking HTTP encrypts data
Believing HTTPS is slower because of encryption
Confusing HTTP and HTTPS roles
2. Which URL prefix indicates a secure connection using HTTPS?
easy
A. http://
B. https://
C. ftp://
D. file://
Solution
Step 1: Identify URL prefixes
URLs starting with http:// use HTTP, which is not secure.
Step 2: Recognize HTTPS prefix
URLs starting with https:// use HTTPS, which is secure and encrypted.
Final Answer:
https:// -> Option B
Quick Check:
Secure URL prefix = https:// [OK]
Hint: Secure URLs start with https:// [OK]
Common Mistakes:
Choosing http:// as secure
Confusing ftp:// with HTTPS
Not recognizing URL prefixes
3. Consider this simplified request flow for a website:
1. Client sends HTTP request
2. Server responds with redirect to HTTPS URL
3. Client sends HTTPS request
4. Server sends secure response
What is the main purpose of step 2 in this flow?
medium
A. To encrypt data before sending it
B. To send the website content unencrypted
C. To close the connection immediately
D. To tell the client to use a secure connection
Solution
Step 1: Analyze step 2 action
Server sends a redirect response telling client to change URL to HTTPS.
Step 2: Understand redirect purpose
This redirect forces client to use a secure encrypted connection for next request.
Final Answer:
To tell the client to use a secure connection -> Option D
Quick Check:
Redirect to HTTPS = secure connection [OK]
Hint: Redirects to HTTPS enforce secure connections [OK]
Common Mistakes:
Thinking redirect encrypts data itself
Believing redirect closes connection
Confusing redirect with content delivery
4. A developer wrote this code snippet to check if a URL uses HTTPS:
if url.startswith('http://'):
print('Secure connection')
else:
print('Not secure')
What is the error in this code?
medium
A. It should check for 'https://' to confirm security
B. The print statements are reversed
C. The method 'startswith' does not exist
D. It should use 'http://' to confirm security
Solution
Step 1: Understand the check logic
The code checks if URL starts with 'http://', then says 'Secure connection'.
Step 2: Identify correct prefix for security
Only URLs starting with 'https://' are secure, so the check is wrong.
Final Answer:
It should check for 'https://' to confirm security -> Option A
Quick Check:
Check 'https://' for security [OK]
Hint: Check for 'https://' prefix to confirm security [OK]
Common Mistakes:
Confusing 'http://' as secure
Reversing print messages
Using non-existent string methods
5. You are designing a web service that must protect user data and build trust. Which approach best ensures secure communication and user confidence?
hard
A. Use HTTP and encrypt data manually in the application layer
B. Use HTTP for faster data transfer and add a login page
C. Use HTTPS with a valid SSL certificate and redirect all HTTP requests to HTTPS
D. Use HTTPS only on the login page and HTTP elsewhere
Solution
Step 1: Identify security needs
Protecting user data requires encryption for all communication, not just parts.
Step 2: Evaluate options for secure design
Using HTTPS with a valid SSL certificate and redirecting HTTP to HTTPS ensures all data is encrypted and users see trust indicators.
Final Answer:
Use HTTPS with a valid SSL certificate and redirect all HTTP requests to HTTPS -> Option C
Quick Check:
Full HTTPS with redirect = best security [OK]
Hint: Always redirect HTTP to HTTPS with valid SSL for trust [OK]
Common Mistakes:
Using HTTP for speed over security
Encrypting only parts of communication
Mixing HTTP and HTTPS causing confusion
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.