B2B-COMMERCE-ADMINISTRATOR practice question 15 of 25
While setting up B2B Commerce, which setting should an Administrator enable to defend against session hijacking and cross-site scripting?
Full set: 119 questionsThe Require HttpOnly attribute setting prevents session ID cookies from being accessed through client-side scripts, such as JavaScript. This is a critical defense mechanism against Cross-Site Scripting (XSS) attacks, where an attacker might inject malicious scripts to steal a user's session cookie. By making the cookie inaccessible to scripts, this setting directly mitigates the risk of session hijacking that could result from an XSS vulnerability. This is a standard security best practice for web applications.
A. CrossSiteSec: This is not a standard or recognized Salesforce security setting name. It is a distractor term.
C. HTTP Security: This is a general term for web security practices, not a specific, configurable setting within Salesforce Setup.
D. Cross Site Security: Similar to other incorrect options, this is a generic phrase and not an actual setting in Salesforce for this purpose.
Salesforce Help, Session Settings, "Require HttpOnly attribute" section. This document states, "To help prevent cross-site scripting attacks, select this option."
Salesforce Help, Secure Coding Guidelines, "Cross-Site Scripting (XSS)" section. This guide explains how HttpOnly cookies are a primary defense against the theft of session cookies via XSS.
Keep practicing
Take the free B2B-COMMERCE-ADMINISTRATOR practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other B2B-COMMERCE-ADMINISTRATOR practice questions
- Question 1A customer wants to have a discount program based on the number of items purchased, where…
- Question 2An Administrator needs to rebuild the Search Index in the B2B Commerce App. What should t…
- Question 3Which two tasks need to be completed before the checkout flow is usable?
- Question 4An Administrator needs to set up a variation product for the first time in a new org and …
- Question 5An Administrator has a customer that will go live without an external tax provider until …
- Question 6A boutique sells sporting goods in its B2B Commerce store. An administrator recently adde…
