Salesforce Certified B2C Commerce Developer Practice Questions

Salesforce Certified B2C Commerce Developer exam preparation

Salesforce Certified B2C Commerce Developer practice questions in English: 180 questions with explanations. The mock exam has 60 questions and 105 minutes.

Salesforce Certified B2C Commerce Developer free question 2 / 10 · Domain 1: B2C Commerce Setup

An engineer wants to see the page that shoppers get when a site is taken out of service, without deleting the site. What should the engineer do?

  1. Set the time to live of static content to 0 and the storefront stops serving pages
  2. On the General tab of the site in Manage Sites, set the Status to Maintenance and apply it
  3. Deselect Enable page caching on the Cache tab of the site and apply the change to the site
  4. Add the storefront hostname to the hostname allowlist on the Business Manager site settings
Show the answer and explanation

Answer: B

Why this is correct
The Disable a Site page says to open Administration > Sites > Manage Sites, click the site name, and on the General tab choose Maintenance in the Status list. After applying, clicking Storefront on the main menu shows only the offline maintenance page of the site. This is the page's method for testing the maintenance page or performing offline maintenance.

Why the other options are wrong
"Deselect Enable page caching on the Cache tab of the site and apply the change to the site" … That setting controls page caching for development. The offline maintenance page appears when the site Status is set to Maintenance.
"Add the storefront hostname to the hostname allowlist on the Business Manager site settings" … The allowlist protects against certain host header attacks and does not apply to hostnames in storefront sites. It does not switch a site offline.
"Set the time to live of static content to 0 and the storefront stops serving pages" … A time to live of 0 for static content is a development setting that makes changes visible immediately. It does not take the site offline.

Key points
Maintenance status takes the storefront offline without removing the site. Confirm it by opening the storefront from the main menu.

Go to the Salesforce Certified B2C Commerce Developer practice app (10 free questions; purchase unlocks all questions)

See the full practice set