🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: HTTPS, Cookies and Headers: questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. Which cookie flag stops JavaScript (and therefore most XSS attacks) from reading the session cookie?
  2. Q2. What does the HSTS header do?
  3. Q3. A site with a valid HTTPS certificate is:
  4. Q4. Which header helps prevent clickjacking?
  5. Q5. In the header checker output, why is the cookie flagged even though it has Secure?
  6. Q6. Which three things does TLS (HTTPS) provide?
  7. Q7. Which cookie flag ensures the cookie is never sent over plain HTTP?
  8. Q8. What is the downside of SameSite=Strict for a session cookie?
  9. Q9. What does the header X-Content-Type-Options: nosniff prevent?
  10. Q10. Why is leaving debug mode on in production dangerous?