What is the purpose of the 'HTTP Strict Transport Security' (HSTS) header? MCQ with Answer and Explanation

What is the purpose of the 'HTTP Strict Transport Security' (HSTS) header?
A. To enforce the use of HTTPS
B. To block HTTP requests
C. To redirect HTTP to HTTPS
D. Both A and C
Answer: Option D
Solution (By JKExamLibrary)
HSTS tells the browser to always use HTTPS for a domain, preventing downgrade attacks and redirecting HTTP to HTTPS.

This question belongs to: Computer Internet and Web Technologies

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Internet and Web Technologies Questions

Question #1 Report Error
What is the purpose of the 'Session' in web applications?
A. To manage database connections
B. To handle form submissions
C. To maintain state across multiple requests from the same user
D. To store static files

Correct Answer: Option C


Explanation:
A session is a server-side storage that persists user-specific data (like login status) across requests, using cookies or URL rewriting.

This question belongs to: Computer Internet and Web Technologies
Question #2 Report Error
Which specific browser technology or feature provides a secure local sandbox workspace to separate corporate web applications from public internet browsing sessions?
A. Unencrypted FTP network route connections
B. Localized DNS root server registries
C. Browser Containerization / Profile Isolation
D. Standard tracking cookie history logs

Correct Answer: Option C


Explanation:
Profile isolation and multi-account containers segment local session data, cookies, and cache history, preventing information sharing or cross-contamination between different browsing contexts.

This question belongs to: Computer Internet and Web Technologies
Question #3 Report Error
Which HTTP header is used to indicate the type of content being sent in the response body?
A. Host
B. User-Agent
C. Content-Type
D. Content-Length

Correct Answer: Option C


Explanation:
The Content-Type header indicates the media type (MIME type) of the resource, e.g., text/html, application/json.

This question belongs to: Computer Internet and Web Technologies