Courseiva
Infrastructure And System SecuritymediumMultiple ChoiceObjective-mapped

ISC Infrastructure And System Security Practice Question

You are configuring a load balancer for a secure web application. Which setting ensures that cookies are protected?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Setting the 'Secure' and 'HttpOnly' flags.

The 'Secure' and 'HttpOnly' flags prevent cookies from being sent over unencrypted connections and restrict access via client-side scripts, mitigating XSS.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Enabling HTTP/2.

    Why it's wrong here

    HTTP/2 is a protocol version, not a cookie security feature.

  • Increasing cookie expiration time.

    Why it's wrong here

    This actually increases the security risk if the cookie is stolen.

  • Disabling session persistence.

    Why it's wrong here

    Session persistence is for application functionality, not cookie security.

  • Setting the 'Secure' and 'HttpOnly' flags.

    Why this is correct

    These are essential for hardening cookies against interception and XSS.

About these practice questions

Courseiva writes every ISC question from scratch — 208 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed August 2026 · checked against the official (ISC)² exam blueprint

This ISC practice question is part of Courseiva's free (ISC)² certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the ISC exam.