Exam Information
Free practice questions with explanations
Salesforce CCD-102 Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 14
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Cartridges
A retailer runs a custom storefront cartridge named app_retail_custom on top of the Storefront Reference Architecture. Its cartridge path is set to app_retail_custom:app_storefront_base. A developer must add a payment plugin cartridge, int_payments, that overrides a template in the base cartridge but must not change the storefront cartridge's own templates. The plugin is shared by several sites on the same instance and the team wants no edits to the base cartridge. Which action meets these requirements?
Correct Answer: BExplanationB2C Commerce resolves templates and scripts by walking the site cartridge path from left to right, so the first cartridge containing a file wins. Placing the plugin ahead of the custom storefront cartridge lets its override take effect without editing any cartridge that the team does not own. Appending it after the base cartridge would leave the base template winning, so the override would silently never apply. Copying the template into the custom cartridge changes that cartridge, which the scenario forbids as a shared pattern. Editing the base cartridge violates the no-edit constraint and complicates upgrades.
-
2 Question 2 Single choice Controllers
A developer is building a JavaScript controller for a loyalty sign-up page in SFRA. The page must be reachable only by shoppers who are not logged in, and the form submission must be processed by a server-side handler that renders a confirmation without exposing the endpoint to cross-site request forgery. The developer has written a controller that calls server.get for the form and server.post for the submission. Which additional change best secures the submission handler while staying inside SFRA conventions?
Correct Answer: BExplanationSFRA controllers protect state-changing POST endpoints by combining csrfProtection.generateToken on the rendering side with csrfProtection.validateRequest as middleware on the submitting route, and the form must carry the matching token field. Switching to GET makes the submission more exposed and breaks the POST contract. The guard httpsGet middleware constrains HTTP method and does not validate a token. Cache expiration has nothing to do with forged submissions, so only the CSRF validation addresses the stated risk.
-
3 Question 3 Drag and drop Cartridges
A B2C Commerce team has been asked to organise its storefront codebase so that upgrades to the reference architecture remain manageable and custom business logic is isolated per brand. Match each requirement to the cartridge practice that addresses it.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Third-party payment integration reused across several sitesBrand-specific templates that must not affect other brandsReference architecture updates without rewriting custom codeEdit the base cartridge in place for each brandKeep base cartridge unmodified and override only specific filesBrand-specific custom storefront cartridge in the site cartridge pathStore all brand logic in a single shared cartridgePlugin cartridge placed in each site's cartridge pathCorrect Answer:- Brand-specific templates that must not affect other brands → Brand-specific custom storefront cartridge in the site cartridge path
- Third-party payment integration reused across several sites → Plugin cartridge placed in each site's cartridge path
- Reference architecture updates without rewriting custom code → Keep base cartridge unmodified and override only specific files
ExplanationIsolating brand code in its own custom storefront cartridge keeps overrides scoped to the sites that use it. Reusable integrations belong in plugin cartridges that individual site paths include, which lets multiple sites share one implementation. Keeping the base cartridge untouched and overriding only specific files preserves a clean upgrade path. Editing the base cartridge per brand breaks upgrades, and one shared cartridge for all brands would leak brand logic across sites.
-
4 Question 4 Single choice Content Slots
A merchandising team wants a promotional banner in a content slot on the home page to show a different asset to returning customers than to first-time visitors. The storefront must keep caching enabled for the home page, and the team cannot create a second page for each audience. The developer is choosing how the slot's content is resolved in an ISML template. Which approach meets all requirements?
Correct Answer: CExplanationContent slots resolve their assigned content through content link functions, and wrapping audience-specific rendering in a remote include lets the surrounding page stay cacheable while the dynamic fragment is fetched per request. Disabling page caching violates the explicit constraint to keep caching on. Creating duplicate home pages is ruled out because the team cannot maintain separate pages. Hard-coding an asset removes the audience variation entirely, so it fails the requirement.
-
5 Question 5 Single choice Hooks
An integration cartridge must run custom logic every time a customer's basket is recalculated, regardless of whether the change came from the storefront or from an OCAPI request. The developer has defined a custom hook in the hooks.json file of the cartridge. The team is deciding which mechanism to use for registering the implementation and wants it to be discoverable by the platform. Which is the correct approach?
Correct Answer: AExplanationHooks are declared in hooks.json with a hook identifier mapped to a script, and code that wants to be extensible invokes the hook through HookMgr.callHook so the platform dispatches to registered implementations regardless of the request channel. A controller route would miss OCAPI-driven changes. A job runs on a schedule, not synchronously per recalculation. ISML rendering happens only on page display, so it cannot cover all recalculations.
-
6 Question 6 Order list Jobs
A team needs a nightly job that imports a product feed file from an SFTP location, runs a custom step to update inventory records, and then sends a status notification. The import must complete before the inventory step begins, and the job must be reproducible from Business Manager. Arrange the steps in the correct order.
Drag the steps into the correct order, or use the arrows.
- Configure the job's schedule and set the parameters for the SFTP host and file path
- Create the job in Business Manager and define its job steps in the sequence required
- Add the notification step as the final step in the job flow
- Configure the import step to read the feed file from the specified SFTP location
- Add the custom inventory update step after the import step in the job flow
Correct Answer:- Create the job in Business Manager and define its job steps in the sequence required
- Configure the job's schedule and set the parameters for the SFTP host and file path
- Configure the import step to read the feed file from the specified SFTP location
- Add the custom inventory update step after the import step in the job flow
- Add the notification step as the final step in the job flow
ExplanationJobs must exist before steps can be ordered in them, so the job is created first and its flow is defined next. Parameters and the import configuration must be set before the step that consumes the file runs. The inventory step is placed after the import to satisfy the dependency, and the notification step is last so it reports the final outcome. Scheduling is a configuration detail that does not change the order of the flow steps themselves in this sequence.
-
7 Question 7 Multiple choice Models
A developer is extending the ProductSearchHit model in SFRA to expose a custom badge attribute to a product tile template. The model is created in a cartridge's model extension file, and the badge value must be derived from a product custom attribute that may be missing on some products. The template must not throw errors when the attribute is absent. Which two actions are required? (Choose two.)
Correct Answer: B, CExplanationSFRA allows models to be extended from a cartridge without touching base files, so a model extension that adds the badge getter is the right mechanism. Guarding the custom attribute inside the getter prevents errors when the attribute is absent on some products. Editing the base model violates the upgrade-safe approach, copying the template abandons the model, and making the attribute mandatory is impractical for existing products and does not address legacy data.
-
8 Question 8 Single choice Open Commerce API (OCAPI)
A third-party marketplace must read customer-independent product data at high volume and must not be able to modify any storefront records. Its integration is registered against a client ID with a Shop API resource path configuration. The security team requires that the client can only call the read operations it needs and that the integration be auditable. Which configuration best meets these requirements?
Correct Answer: CExplanationOCAPI access is governed by client IDs and per-resource permission configuration, so restricting the client to read operations on the specific Shop API resources and sites satisfies least privilege while keeping calls traceable to that client. Full Data API write permissions exceed the stated need and violate the no-modification requirement. Sharing administrator credentials is a serious security failure and cannot be audited per integration. Replacing OCAPI with a custom controller abandons the API contract the marketplace relies on and gives weaker control.
-
9 Question 9 Single choice Site Maintenance
A high-traffic retail site reports slow page responses on category pages during a promotional campaign. The category pages show product lists that change only when inventory is updated twice daily, and the operations team must keep the storefront responsive without serving stale prices. Business Manager shows cache hit rates are low on those pages. Which action is the best first step to address the performance problem?
Correct Answer: DExplanationLow cache hit rates on pages whose content changes only twice daily point to cache configuration that does not match the content lifecycle, so reviewing and aligning the page cache expiration is the appropriate first step. Disabling caching removes the performance benefit entirely. Sandbox sizing does not reflect production capacity for this campaign. Generating static HTML every minute is needlessly heavy and does not match the update cadence.
-
10 Question 10 Drag and drop Storefront Reference Architecture Tools
A team building a storefront on the Storefront Reference Architecture is setting up its development workflow. It needs source control shared across developers, a way to install and run the project's build and test tooling, and automated checks that cover component behaviour and storefront flows. Match each requirement to the tool or practice that addresses it.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Installing and running the project's build and linting scriptsShared source control and collaboration on the storefront codeVerifying individual JavaScript modules in isolationUnit testsBundling the cartridge into a site import archiveNPM package scriptsScheduling a nightly job stepGitHub repositoryCorrect Answer:- Shared source control and collaboration on the storefront code → GitHub repository
- Installing and running the project's build and linting scripts → NPM package scripts
- Verifying individual JavaScript modules in isolation → Unit tests
ExplanationGitHub provides the shared repository and collaboration history that a team needs for the storefront codebase. NPM tooling defined in the project's package configuration installs dependencies and runs the build and lint scripts. Unit tests verify module behaviour in isolation, which matches the stated need for component-level checks. Site import archives and scheduled job steps are operational features unrelated to these development workflow requirements.
-
11 Question 11 Single choice Page Designer
A business user wants to add a new promotional component to a Page Designer page. The component should display a headline, a body text, and a call-to-action link whose URL is set by the marketer. The developer must make the component available in Page Designer without giving marketers the ability to add arbitrary scripts. Which approach is correct?
Correct Answer: DExplanationCustom Page Designer components are defined with typed attributes that marketers fill in, and the developer controls the rendering template, which keeps script execution out of marketer hands. Allowing free-form HTML with script tags opens a security hole that the scenario explicitly rules out. Hard-coding content removes the business-user control the scenario requires. Creating a page type per promotion is heavy and does not give the component reuse asked for.
-
12 Question 12 Single choice Controllers
A developer is debugging a JavaScript controller in a sandbox that returns an unexpected response for one request while the same code works for others. The team wants to inspect the script's behaviour at runtime without deploying extra logging code to production, and the sandbox must not expose the debugging output to shoppers. Which tool and approach best meets these requirements?
Correct Answer: CExplanationThe Script Debugger in Business Manager lets a developer set breakpoints and step through controller execution on a sandbox instance, which meets the requirement to inspect runtime behaviour without shipping debug code. Adding logging and deploying it to production breaks the rule that debugging output not reach that environment. Returning the request object in a response exposes internal data to shoppers. Disabling the route does not diagnose the fault.
-
13 Question 13 Multiple choice Forms Framework
A developer is building a registration form in SFRA. The business requires that the email field be validated both in the browser for immediate feedback and on the server before any account is created, since client-side checks can be bypassed. Which two actions together meet this requirement? (Choose two.)
Correct Answer: A, BExplanationClient-side validation gives shoppers immediate feedback, and server-side validation is the enforcement point that cannot be bypassed, so pairing them meets both needs. The HTML input type alone is not an enforceable control because the request can be altered. A check during template rendering never sees the submitted value. A scheduled job runs after the damage is done, so it does not prevent invalid accounts.
-
14 Question 14 Single choice Cartridges
A developer has added a custom storefront cartridge named app_loyalty to a site's cartridge path. Shoppers report that a loyalty badge template from app_loyalty has no effect, even though the file is present and the cartridge path is correct. Business Manager shows the cartridge is listed for the site. The developer needs the most likely cause identified before changing code. Which check should be performed first?
Correct Answer: BExplanationBecause B2C Commerce resolves files by walking the cartridge path left to right, a template in a cartridge placed after the base cartridge is shadowed by the base file, which explains why the override has no effect even though the cartridge is listed. Adjusting the cache duration does not change which file is resolved. Renaming the file to a different extension would break resolution rather than fix it. Clearing session cookies does not affect template lookup.
These are 14 of the 207 questions in the full CCD-102 pack.
Get All 207 QuestionsGet all 207 questions & answers
Full access options for Salesforce CCD-102
Self-study
PDF Version
- 207 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
- 207 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
- 207 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 CCD-102 Exam (B2C Commerce Developer with SFRA) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.