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. Both A and C
B. To enforce the use of HTTPS
C. To block HTTP requests
D. To redirect HTTP to HTTPS
Answer: Option A
Solution (By JKSSB Mock Tests)
HSTS tells the browser to always use HTTPS for a domain, preventing downgrade attacks and redirecting HTTP to HTTPS.

Discuss this Question (0)

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

Practice More Internet and Web Technologies Questions

Question #1
What is the purpose of the 'Cache-Control' HTTP header?
A. To authenticate the user
B. To control the format of the response
C. To specify caching policies for the resource
D. To set the language of the content

Correct Answer: Option C


Explanation:
The Cache-Control header is used to define caching directives such as max-age, no-cache, and private, controlling how and for how long the resource can be cached.

This question belongs to: Computer Internet and Web Technologies
Question #2
What is the primary objective of using a Content Delivery Network (CDN) in modern web application deployments?
A. To manage remote email transport queues
B. To provide local multi-tab browsing interfaces
C. To store and deliver cached static assets from geographically distributed proxy servers
D. To dynamically change structural HTML text files automatically

Correct Answer: Option C


Explanation:
CDNs place cached static assets (images, video, CSS) on a distributed network of edge servers near user locations to significantly accelerate page performance.

This question belongs to: Computer Internet and Web Technologies
Question #3
What is the function of the 'method' attribute in an HTML form?
A. To set the encoding type
B. To enable validation
C. To define the action URL
D. To specify the HTTP method (GET or POST) for form submission

Correct Answer: Option D


Explanation:
The method attribute defines the HTTP method to be used when submitting the form, either GET or POST.

This question belongs to: Computer Internet and Web Technologies