Exam Information
Free practice questions with explanations
Salesforce Comm-Dev-101 Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 13
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Application Development
A retailer runs a Salesforce B2C Commerce storefront on the SiteGenesis-derived cartridge architecture. A developer needs an ISML template on the product detail page to display a recommendations block that is personalized per shopper and must not be cached with the rest of the page, since recommendations change on every request and the page is otherwise cached for 30 minutes. The team also wants the recommendations markup maintained in a separate cartridge owned by another team. Which implementation best meets these requirements?
Correct Answer: BExplanationA remote include issues a separate request to a pipeline or controller endpoint, and the calling page's caching does not apply to that fragment, so the personalized block stays fresh while the rest of the page remains cached. A local include is rendered into the parent page and shares its cache, so it fails the freshness requirement. Disabling page caching entirely would defeat the 30-minute caching goal. A static fragment cannot be personalized per shopper at all.
-
2 Question 2 Single choice Application Development
A developer is building a controller for a storefront wishlist feature. The controller must accept a POST from a form on the storefront, validate the submitted product ID, persist the item to the customer's wishlist, and return a JSON response to an AJAX caller. Security review requires protection against cross-site request forgery. Which approach correctly satisfies the requirement using SFRA-style controller conventions?
Correct Answer: DExplanationThe CSRFProtection helper generates a token that the form carries and the endpoint validates, which is the mechanism that actually blocks forged cross-site submissions. Checking the HTTP method does nothing against a forged POST from another site, because browsers send POSTs cross-site freely. HTTPS protects transport, not request origin, and session variables set at render time do not bind a specific submission to the user's intent.
-
3 Question 3 Single choice Application Development
A storefront release introduces a new custom page type for campaign landing pages. Marketers must be able to build these pages in Page Designer by dragging existing components into regions, but must not be able to add arbitrary HTML. The developer has defined the page type and its region definitions in the cartridge metadata. Which additional step is required so marketers can actually use the new page type in Page Designer?
Correct Answer: BExplanationPage Designer derives what a marketer can place into a region from the component types the page type declares as allowed for that region, and those component types must exist in the cartridge metadata. Content slots are placement points for storefront content, not page type definitions. Cartridge path order affects template resolution rather than Page Designer metadata, and OCAPI permissions govern API access, not marketer authoring in Business Manager.
-
4 Question 4 Single choice Application Development
A storefront checkout pipeline throws intermittent errors only for shoppers in one locale. The developer enables debugging in a sandbox and wants to confirm the value of a locale-dependent variable at the point of failure without changing the production-like code path. The team must avoid leaving debug output in the code that ships. Which technique best meets these constraints?
Correct Answer: BExplanationAdjusting the logging category level in Business Manager lets the team capture diagnostic output from the existing code without a code change, and resetting the level afterwards restores normal logging. Inserted Logger calls require a deployment that the constraints rule out in production and risk leaving debug code behind. Echoing values to response headers exposes internal data to shoppers, and hard-coding the variable changes the very behaviour under investigation.
-
5 Question 5 Multiple choice Application Development
A developer is preparing a storefront form that collects a shopper's delivery phone number and must support Spanish and Canadian French locales. The form must reject malformed input before it is persisted and must display localized error text. Which TWO implementation choices best meet these requirements? (Choose two.)
Correct Answer: A, CExplanationServer-side validation through the form definition guarantees that malformed data is rejected before persistence, regardless of what the browser submits, and resource message keys let the error text resolve per locale. Client-side-only validation can be bypassed, so it fails the requirement that invalid input never be persisted. Hard-coded English strings break localization. Persisting before validating violates the explicit requirement.
-
6 Question 6 Single choice B2C Commerce Setup
A developer has two cartridges, a shared base cartridge app_base and a storefront cartridge app_storefront, which overrides some templates from app_base. The storefront site must use both cartridges, with app_storefront taking precedence. A teammate has added app_base first in the site cartridge path and the storefront is serving the unmodified base templates. Which change to the cartridge path corrects the behaviour?
Correct Answer: CExplanationThe cartridge path is searched left to right and the first cartridge containing a resource wins, so placing app_storefront ahead of app_base makes its overrides take effect. The current ordering is why the unmodified base templates are being served. Copying templates is a maintenance burden the requirement does not call for, and moving cartridges after the Business Manager entries does not change override precedence among the storefront cartridges.
-
7 Question 7 Single choice B2C Commerce Setup
A global retailer needs a new Business Manager site for a market that transacts in Canadian dollars and must charge tax using a gross-inclusive model, meaning shelf prices already contain tax. The site is created from an existing template site that uses US dollars and net pricing. The launch is in two weeks and the team wants to avoid reconfiguring the product catalogue. Which action should the administrator take first?
Correct Answer: CExplanationDefault currency and taxation type are site-level settings that the administrator must configure when creating or duplicating the site, and setting them before pricebook assignment keeps the storefront consistent with the gross-inclusive requirement. Copying net-tax pricebooks would carry the wrong tax model into the new site. A display conversion rule does not change the transacting currency, and changing jurisdiction alone does not switch the tax model or currency.
-
8 Question 8 Single choice B2C Commerce Setup
A developer is configuring an IDE to deploy a cartridge to a shared development sandbox. The sandbox code version currently in use is named v2_develop. The developer's workspace has a stale deployment target pointing to a version directory that no longer exists, and uploads silently go to a directory the storefront does not read. Which configuration correction is required so deployments reach the active code version?
Correct Answer: DExplanationDeployments over WebDAV must target the specific code version directory that the sandbox has activated, so pointing the IDE at the v2_develop directory and confirming the active code version in Business Manager ensures uploads are read by the storefront. Targeting the root does not reliably route to the active version, and rewriting the cartridge path to a stale directory compounds the mismatch. The auto-sync option described is not a real mechanism for this purpose.
-
9 Question 9 Single choice Data Management Using Business Manager Usage
A merchandising team reports that shoppers searching for the term 'waterproof' find no results, even though many products have the attribute 'water resistance' set to 'waterproof'. The team wants the attribute to be searchable from the storefront search box without changing product data. Which change should a developer make first in Business Manager?
Correct Answer: DExplanationThe attribute must be included among the searchable attributes in the site search preferences, and the index must reflect that change before the term can match. A refinement definition only helps shoppers filter results once products are already returned by search, so it does not fix the missing matches. A custom object for synonyms is unnecessary for a direct attribute match, and OCAPI permissions govern API access rather than search indexing.
-
10 Question 10 Single choice Data Management Using Business Manager Usage
A storefront performance review shows that a product listing page makes a remote include call for a promotional banner that changes hourly. The page is served from the page cache, but the banner pipeline runs an expensive query on every uncached request, and the team wants to reduce origin load while keeping the banner within an hour of current. The developer considers several options. Which is the BEST approach?
Correct Answer: CExplanationApplying an hourly cache to the remote include matches the banner's update frequency and keeps origin load low while meeting the freshness requirement. Converting it to a local include would tie the banner to the page cache lifetime, which may be far longer than an hour, so freshness suffers. Disabling caching raises load sharply, and moving the query to the client does not remove the expensive origin call.
-
11 Question 11 Single choice Data Management Using Business Manager Usage
A retailer needs to store a set of warranty registration records that are not products, customers or orders. Each record links to a customer and a product, carries a registration date and a status, and must be queryable by the storefront and by a back-office import. The team asks whether they can simply add these fields as custom attributes on the customer profile. The developer must decide the correct data structure. Which is the best decision?
Correct Answer: DExplanationRecords that are independent entities with their own keys and are queried on their own call for a custom object type, which can hold references to customers and products and be accessed through the proper APIs. Customer profile attributes are single-record fields not designed for a growing list of independently queried entries. Product attributes would scatter customer data onto catalogue objects, and session storage is not persistent.
-
12 Question 12 Single choice Data Management Using Business Manager Usage
A B2C Commerce integration team needs a middleware service to read product and order data through the Data API and to update product inventory. The security team requires that the client has only the minimum rights needed and that no broader permissions are granted to other clients. The sandbox instance already has an OCAPI client configuration used by the marketing team for read-only product queries. Which action best satisfies the requirements?
Correct Answer: DExplanationA dedicated client with exactly the resource and method permissions the middleware needs follows least privilege, and leaving the marketing client untouched prevents permission creep across integrations. Adding write rights to a shared client exposes the marketing team's configuration to unnecessary changes. Full administrative permissions violate the minimum-rights requirement, and sharing credentials undermines per-client auditing and control, even with network restrictions.
-
13 Question 13 Single choice Work With a B2C Site
A merchant is launching a seasonal promotion in which a set of products should be sold at a discounted price for two weeks, and the products must not show as available until a warehouse delivers stock on the first day. The merchant wants the catalogue unchanged after the promotion ends and wants no manual steps during the window. Which combination of Business Manager configurations best meets these requirements?
Correct Answer: CExplanationA promotional pricebook with a scheduled start and end date activates and deactivates the discounted prices automatically, leaving the standard pricebook unchanged. Pairing that with inventory records that reflect the delivery quantity and its availability date gives the no-manual-steps behaviour required. Manually editing standard prices violates the no-manual-steps and unchanged-catalogue constraints, and a manual online flag reintroduces a manual step. Switching catalogues would require reassigning the site and would disturb other products.
These are 13 of the 154 questions in the full Comm-Dev-101 pack.
Get All 154 QuestionsGet all 154 questions & answers
Full access options for Salesforce Comm-Dev-101
Self-study
PDF Version
- 154 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 154 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 154 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the Comm-Dev-101 Exam (Salesforce Certified B2C Commerce Developer) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.