[Q120-Q142] AP-202 Free Update With 100% Exam Passing Guarantee [2026]

Share

AP-202 Free Update With 100% Exam Passing Guarantee [2026]

[Jun-2026] Verified Salesforce Exam Dumps with AP-202 Exam Study Guide

NEW QUESTION # 120
Where are handlebar Templates defined in the Cloudcraze managed package?

  • A. cc_hk_UserInterface extension
  • B. Page Settings configuration
  • C. Configuration Setting configuration
  • D. uiProperties file

Answer: D

Explanation:
Handlebar Templates are defined in the uiProperties file in the cloudcraze managed package. This file contains various properties that control the behavior and appearance of the user interface components. The handlebarTemplates property defines a map of template names and template contents that are used by the handlebars.js templating engine to generate HTML from JSON data. Salesforce B2B Commerce and D2C Commerce Developer Guide,UI Properties,Handlebars Templates


NEW QUESTION # 121
Which three steps are necessary to have subscriberpage added to Salesforce B2B Commerce after creating a custom Visualforce page? (3 answers)

  • A. Create a new CC Subscriber Page record that points to your custom Visualforce page.
  • B. Refresh the Page Keys Index in CC Admin.
  • C. Create a new Visualforce page, and manually import the Salesforce B2BCommerce JavaScript libraries. Run in Anonymous Apex ccrz.cc_util_Reflection.upsertPageUIKey([arg1],[arg2],[arg3]);
  • D. Enable the Subscriber Page in CC Admin.

Answer: A,B,D

Explanation:
Three steps that are necessary to have a subscriber page added to Salesforce B2B Commerce after creating a custom Visualforce page are:
Create a new CC Subscriber Page record that points to your custom Visualforce page. This record will store information about the subscriber page, such as the name, description, URL, and Visualforce page. For example, you can create a new record named MySubscriberPage that points to your custom Visualforce page named MyPage.
Refresh the Page Keys Index in CC Admin. This action will update the page keys index, which is a cache that stores the mapping between the page keys and the subscriber pages. You need to do this whenever you create or modify a subscriber page record.
Enable the Subscriber Page in CC Admin. This action will allow you to select the subscriber page from the CC Page Settings configuration and assign it to a CC Page. For example, you can enable MySubscriberPage and assign it to the Home page. Salesforce B2B Commerce and D2C Commerce Developer Guide,Subscriber Pages


NEW QUESTION # 122
What are two maintainable ways that Lightning Web Components can be made mobile ready? 33m 215

  • A. Decorate templates with mobile-ready
  • B. Install the mobile extensions plug-in for VS Code
  • C. Create a Lightning app page and add the component to the mobile navigation
  • D. Import a third party JavaScript library

Answer: A,C

Explanation:
To make Lightning Web Components mobile-ready, one maintainable approach is to create a Lightning app page and then add the component to the mobile navigation. This ensures that the component is accessible and optimized for mobile users within the Salesforce mobile app. Another approach is to design the component's templates with responsiveness in mind, using CSS and layout techniques that adapt to different screen sizes. Salesforce documentation on mobile-ready development practices provides guidelines on creating responsive designs and optimizing components for mobile use.


NEW QUESTION # 123
Which two steps are necessary to enable Salesforce B2B Commerce
logging in the managed package?

  • A. Set a cookie with the Id of the user accessing the storefront in CC Admin
  • B. Ensure the value saved in the Logging token field is appended to the ccLog query parameter.
  • C. Turn On theCheckbox "Cloudcraze Logging" in CC Admin.
  • D. Ensure you save a value in the Logging Token input field in the Global Settings section of CC Admin.

Answer: B,D

Explanation:
To enable Salesforce B2B Commerce logging in the managed package, you need to do two steps. First, you need to save a value in the Logging Token input field in the Global Settings section of CC Admin. This value can be any string that you choose, such as "debug". Second, you need to ensure that the value saved in the Logging token field is appended to the ccLog query parameter in the URL of the storefront page that you want to debug. For example, if your logging token is "debug", then your URL should look like this: https://my-storefront.com/?ccLog=debug. This will enable logging for that page only. You do not need to turn on the checkbox "Cloudcraze Logging" in CC Admin, as this is an old setting that is no longer used. You also do not need to set a cookie with the Id of the user accessing the storefront in CC Admin, as this is not required for logging. Salesforce [B2B Commerce Developer Guide: Logging]


NEW QUESTION # 124
Salesforce B2B leverages global API's for encapsulating business logic into blocks that can be extended and modified by subscribers. Which three statements are true regarding extending ccServiceProduct and exposing custom fields on the Product Detail Page? (3 answers)

  • A. Create a public with sharing class that extends ccrz.ccServiceProduct.
  • B. Override the getFieldsMap method and add subscriber specific code.
  • C. Create a global with sharing class that extends ccrz.ccServiceProduct.
  • D. Ensure that any helper methods are defined as private andstatic only.
  • E. Override the fetch method and add your subscriber specific code here.

Answer: B,C,E

Explanation:
To extend ccServiceProduct and expose custom fields on the Product Detail Page, three statements are true:
Override the getFieldsMap method and add subscriber specific code. This method returns a map of field names and field types for the product entity and its related entities. By overriding this method, the subscriber can add their custom fields to the map and make them available for the API.
Create a global with sharing class that extends ccrz.ccServiceProduct. This class will inherit all the methods and properties of the ccServiceProduct class and allow overriding or extending them. The class should be global and with sharing to ensure that it can be accessed by the API framework and respect the sharing rules.
Override the fetch method and add your subscriber specific code here. This method executes the query to fetch the product data and returns a result object. By overriding this method, the subscriber can modify the query or the result object to include their custom fields or logic. Salesforce B2B Commerce and D2C Commerce Developer Guide,Service Classes,ccServiceProduct Class


NEW QUESTION # 125
During checkout flow customizations, a developer receives an error on shipping cost calculation integrations with the error code: INSUFFICIENT_ACCESS_OR_READONLY.
What is causing this error?

  • A. The storefront user does not have access to the Cart Delivery Method object.
  • B. The cart is no longer in a valid Checkout State.
  • C. The storefront user does not have access to custom fields on the Order Delivery Method object.
  • D. An error has occurred during the cart shipping charge integration.

Answer: B

Explanation:
The error code INSUFFICIENT_ACCESS_OR_READONLY is caused by the cart being no longer in a valid Checkout State during checkout flow customizations. A cart is an object that represents a collection of products and charges that a customer intends to purchase in the storefront. A cart has a Checkout State field that indicates the current state of the checkout process for the cart. The Checkout State can have values such as Draft, InProgress, Completed, or Cancelled. A cart can only be modified or updated when it is in Draft or InProgress state. A cart cannot be modified or updated when it is in Completed or Cancelled state. If an attempt is made to modify or update a cart that is in Completed or Cancelled state, an error with the code INSUFFICIENT_ACCESS_OR_READONLY will be thrown. This error means that the user does not have permission to edit or delete a record because it is read-only or locked. The storefront user does not have access to the Cart Delivery Method object is not a cause of this error code, as it is not related to the cart checkout state or data modification. The Cart Delivery Method object is an object that stores information about the delivery method selected for a cart in the storefront. An error has occurred during the cart shipping charge integration is not a cause of this error code either, as it is not related to the cart checkout state or data modification. The cart shipping charge integration is an integration that calculates and applies shipping charges to a cart based on various factors such as delivery method, location, weight, volume, etc. The storefront user does not have access to custom fields on the Order Delivery Method object is not a cause of this error code either, as it is not related to the cart checkout state or data modification. The Order Delivery Method object is an object that stores information about the delivery method selected for an order summary in the storefront. Salesforce B2B Commerce Developer Guide: Cart Object, [B2B Commerce Developer Guide: Cart Delivery Method Object], [B2B Commerce Developer Guide: Order Delivery Method Object], [Salesforce Help: Common Error Messages]


NEW QUESTION # 126
Which two practices are allowed when it comes to naming a Lightning Web Components folder and associated files?

  • A. Using a single hyphen (dash)
  • B. Using a single underscore
  • C. Including whitespace
  • D. Beginning with a lowercase letter

Answer: A,D

Explanation:
When naming a Lightning Web Components folder and associated files, Salesforce best practices allow the name to begin with a lowercase letter and to use a single hyphen (dash) for compound names. Whitespace and underscores are not recommended in the naming convention. This is in line with web standards for custom elements. More details can be found in the Salesforce LWC documentation on naming conventions: Salesforce LWC Naming Conventions.


NEW QUESTION # 127
A Northern Trail Qutfitters (NTO) developer made a tile component. To expose a click event and react to user input using the markup below, what should replace <CLICK_EVENT>?

  • A. tileClick()
  • B. {tileClick}
  • C. {event:tileClick}
  • D. javascript:avoid(0);tileClick();

Answer: A

Explanation:
To expose a click event and react to user input in a Lightning web component, the developer should use a method name as the value of the onclick attribute in the template. The method name should be followed by parentheses, as in tileClick(). This syntax indicates that the method is invoked when the element is clicked. The method should be defined in the JavaScript file of the component, and it can access the event object as a parameter. The other options are either invalid or incorrect. For example, {event:tileClick} is not a valid syntax for an onclick attribute, javascript:avoid(0);tileClick(); is unnecessary and outdated, and {tileClick} is a property binding expression, not a method invocation.B2B Commerce and D2C Commerce Developer Guide,Lightning Web Components Developer Guide


NEW QUESTION # 128
How can a developer make an integration available for selection?

  • A. Modify the StoreIntegrated Service to map to an Apex class id usingworkbench
  • B. Create a RegisteredExternalService record using Workbench
  • C. The integration is available once it is uploaded
  • D. Enter the integration class name and version in Store Administration

Answer: B

Explanation:
To make an integration available for selection in Salesforce B2B Commerce, a developer must create a RegisteredExternalService record. This can be accomplished using tools like Workbench, which allow for direct interaction with Salesforce's backend database. By registering the external service, the integration becomes selectable within the B2B Commerce setup, allowing it to be associated with specific stores or contexts. Salesforce documentation on integrating external services with B2B Commerce provides step-by-step instructions on registering these services to enable seamless integration and functionality within the platform.


NEW QUESTION # 129
A user wants to leverage a three columnlayout on a page. The user also wants to move the mini-cart widget from the right to the center column. How can this requirement be fulfilled?

  • A. HandleBar Template Override
  • B. Page Include
  • C. Gross Layout Override
  • D. Subscriber Template

Answer: C

Explanation:
To leverage a three column layout on a page and move the mini-cart widget from the right to the center column, the requirement can be fulfilled by creating a Gross Layout Override. This is a custom Visualforce page that overrides the default layout of a page and allows changing its structure and content. The user can create a Gross Layout Override that uses a three column layout and places the mini-cart widget in the center column. Salesforce B2B Commerce and D2C Commerce Developer Guide,Gross Layout Overrides


NEW QUESTION # 130
A developer suspects recent edits to a checkout flow have created a bug based on flow errors being emailed. Given the emails and some inputs known to trigger the issue, which two activities should the developer consider in their investigation?

  • A. Use the Org Browser tool in the IDE to download the flow XML and run a diff report
  • B. Open the Flow, Select Debug, Provide the Inputs, Select Run
  • C. Open the Flow and select Attach to Live Session, Provide the Session Id, Select Attach
  • D. Look at the previous flow versions and compare them with the current one

Answer: B,D

Explanation:
To investigate a suspected bug in a checkout flow, comparing previous versions of the flow with the current one can help identify changes that might have introduced the bug. Additionally, Salesforce provides debugging capabilities within the Flow Builder, where a developer can select the debug option, provide input values known to trigger the issue, and execute the flow to observe its behavior, aiding in pinpointing the source of the problem.


NEW QUESTION # 131
Northern Trail Outfitters (NTO) has a B2B Commerce store for its resellers. It has received many customer service calls involving questions about the delivery date of customer orders.
How should a developer expose delivery time estimates to NTO's customers in the storefront to reduce call volume?

  • A. Add the Expected Delivery Date field to the order confirmation email.
  • B. Display the Expected Delivery Date on the order page with a Lightning web component.
  • C. Configure an email alert to the customer when the Expected Delivery Date changes.
  • D. Add a Desired Delivery Date input field during the checkout flow.

Answer: B

Explanation:
To expose delivery time estimates to NTO's customers in the storefront, a developer should display the Expected Delivery Date on the order page with a Lightning web component. The Expected Delivery Date is a custom field on the Order object that stores the date when the order is expected to be delivered to the customer. The developer can use the @wire decorator to get the current order object and use its properties, such as order number, status, total amount, and expected delivery date, to display them on the order page. The developer can also use Apex methods or third-party APIs to calculate and update the expected delivery date based on various factors, such as inventory availability, shipping method, shipping address, and carrier service level. Displaying the expected delivery date on the order page allows the customer to see their delivery time estimate at any time and reduce their need to call customer service. Adding the Expected Delivery Date field to the order confirmation email is not a good solution, as it does not allow the customer to see their delivery time estimate if they lose or delete their email. Adding a Desired Delivery Date input field during the checkout flow is not a good solution either, as it does not guarantee that the customer's desired delivery date will be met or reflect any changes in delivery time due to unforeseen circumstances. Configuring an email alert to the customer when the Expected Delivery Date changes is not a good solution either, as it can create confusion or frustration for the customer if they receive multiple or conflicting emails about their delivery date. Salesforce B2B Commerce Developer Guide: Order Object, [B2B Commerce Developer Guide: Order Page], [Lightning Web Components Developer Guide: Call an Apex Method Imperatively]


NEW QUESTION # 132
Which method signature is used in the Global API's?

  • A. Changes based on API and Method name
  • B. ccrz.cc_Output (ccrz:cc_Input input)
  • C. Map<String, Object>
  • D. List<List<Object>>

Answer: B

Explanation:
The method signature that is used in the Global API's is ccrz.cc_Output (ccrz.cc_Input input). This signature indicates that the Global API methods take a single input parameter of type ccrz.cc_Input and return an output of type ccrz.cc_Output. These are custom classes that are defined in the cloudcraze managed package and contain various properties and methods for handling the input and output data. For example,ccrz.ccServiceProduct.getProducts(ccrz.cc_Input input)is a Global API method that takes an input object and returns an output object containing product data. Salesforce B2B Commerce and D2C Commerce Developer Guide,API Classes,cc_Input Class,cc_Output Class


NEW QUESTION # 133
Which technique can be used with Lightning web components to expose them outside of an org in another web container?

  • A. Slot elements
  • B. Lightning Canvas
  • C. Heroku
  • D. Lightning Out

Answer: D

Explanation:
According to theLightning Web Components Developer Guide, Lightning Out is a technique that allows developers to run Lightning web components outside of Salesforce servers, such as in a Node.js app running on Heroku or a department server inside the firewall. Lightning Out uses a script tag to load the Lightning web components framework and the custom components into the web container. Lightning Out also handles authentication, event handling, and data access between the web container and the Salesforce org. Slot elements, Heroku, and Lightning Canvas are not techniques for exposing Lightning web components outside of an org in another web container.Lightning Web Components Developer Guide,Use Components Outside Salesforce,B2B Commerce and D2C Commerce Developer Guide


NEW QUESTION # 134
Which two event settings are required for a custom event called CustomEvent to fire from the Lightning web component and propagate up to the DOM?

  • A. composed: false
  • B. cancelable: true
  • C. bubbles: true
  • D. composed: true

Answer: C,D

Explanation:
To fire a custom event called CustomEvent from the Lightning web component and propagate it up to the DOM, the developer must set two event settings: bubbles and composed. The bubbles setting determines whether the event bubbles up through the component's ancestors in the DOM tree. The composed setting determines whether the event crosses the shadow boundary and reaches the light DOM. Setting both bubbles and composed to true allows the event to be handled by any element in the DOM that listens for it. The cancelable setting is not required for firing or propagating the event, as it only determines whether the event can be canceled by calling preventDefault() on it. Setting composed to false would prevent the event from reaching the light DOM and limit its propagation to the shadow DOM. Salesforce Lightning Web Components Developer Guide: Create and Dispatch Events,Lightning Web Components Developer Guide: Event Propagation


NEW QUESTION # 135
Which tool should a developer use to author automated tests for custom Lightning web components?

  • A. Visual Studio Code
  • B. Salesforce CLI
  • C. Salesforce Developer Console
  • D. Jest

Answer: D

Explanation:
A developer should use Jest to author automated tests for custom Lightning web components. Jest is a powerful tool with rich features for writing JavaScript tests.It is the recommended testing framework for Lightning web components by Salesforce1.Jest allows the developer to write unit tests in local JavaScript files, run them from the command line or Visual Studio Code, and debug them using breakpoints and watch expressions2.Jest also provides features such as mocking, code coverage, snapshots, and asynchronous testing3.
Option A, Option B, and Option D are incorrect because they are not testing tools, but rather development tools.Visual Studio Code is an integrated development environment (IDE) that supports Lightning web components development with extensions and plugins4.Salesforce CLI is a command line interface that allows the developer to create, deploy, and manage Lightning web components projects5. Salesforce Developer Console is a web-based tool that provides code editing, debugging, and testing features for Apex and Visualforce, but not for Lightning web components.Reference:
Test Lightning Web Components
Write Jest Tests
Jest Documentation
Visual Studio Code
Salesforce CLI
[Salesforce Developer Console]


NEW QUESTION # 136
What are two common and maintainable ways the content layout of a Lightning Web Component can be implemented?

  • A. Spreading layout styles across several separate components
  • B. Applying SLDS classes to internal elements
  • C. Styling the :host pseudo-element (or other elements) via the CSS file
  • D. Using inline styles

Answer: B,C

Explanation:
For maintainable and scalable Lightning Web Component development, it's recommended to style components by targeting the :host pseudo-element in the component's CSS file and by applying Salesforce Lightning Design System (SLDS) classes to internal elements. These practices ensure consistent styling that aligns with Salesforce's design standards and provides a clear separation of concerns between component structure and styling.


NEW QUESTION # 137
A Developer created a custom field that a project wants to expose on a given page.
How does the Developer ensure that the field is available to display on a given page?

  • A. Override the Service Class that the page uses and update the ServiceManagementin CCAdmin for the given storefront to use this new Service Class.
  • B. Create a new Logic Class that the page uses and update the Service Managementin CCAdmin for the given storefront to use this new Service Class
  • C. Create a new Service Classthat the page uses and update the Service Managementin CCAdmin for the given storefront to use this new Service Class
  • D. Override the Logic Class that the page uses and update the Service Management inCCAdmin for the given storefront to use this new Service Class

Answer: A

Explanation:
To ensure that a custom field is available to display on a given page, the Developer needs to override the Service Class that the page uses and update the Service Management in CCAdmin for the given storefront to use this new Service Class. The Service Class is responsible for retrieving and setting data for a given page. The Logic Class is responsible for implementing business logic and validation rules for a given page. Creating a new Service Class or Logic Class is not necessary, as overriding an existing one can achieve the same result. Salesforce B2B Commerce and D2C Commerce Developer Guide,Servie Classes,LogicClasses


NEW QUESTION # 138
Which two Salesforce B2B Commerce visualforce pages must be enabled at a Salesforce Community level to make the out of the box SEO functionality available? (2 answers)

  • A. CCSizeIndex
  • B. CCCatSiteMap
  • C. SizeMap
  • D. ProductMap

Answer: A,B

Explanation:
Two Salesforce B2B Commerce Visualforce pages that must be enabled at a Salesforce Community level to make the out of the box SEO functionality available are:
CCSizeIndex: This page generates a sitemap.xml file, which is a file that lists all the pages and resources on a site that can be crawled by web crawlers. The page uses the configuration settings CO.SiteMapIncludeProducts and CO.SiteMapIncludeCategories to specify which products and categories should be included in the sitemap.
CCCatSiteMap: This page generates a category sitemap file, which is a file that lists all the categories on a site that can be crawled by web crawlers. The page uses the configuration setting CO.SiteMapCategoryDepth to specify how many levels of subcategories should be included in the category sitemap. Salesforce B2B Commerce and D2C Commerce Developer Guide,Sitemap Files


NEW QUESTION # 139
A developer is working in Visual Studio Code on a previously deployed project which is rather large and deployments are time consuming. The developer wants to deploy some small CSS changes without waiting for the entire project deployment. What are two ways this can be accomplished?

  • A. Click the Tools menu and select Deploy styles
  • B. Right-click the CSS file that was edited and select Deploy Single File
  • C. Right-click the folder for the component and choose Deploy Source to Org
  • D. Deploy the entire project. Only the change will be copied
  • E. Right-click the CSS file and choose Deploy Source to Org

Answer: B,C

Explanation:
Two ways that a developer can deploy some small CSS changes without waiting for the entire project deployment are right-clicking the folder for the component and choosing Deploy Source to Org and right-clicking the CSS file that was edited and selecting Deploy Single File. Deploying source to org is a way of deploying metadata from a local project to an org using Salesforce CLI commands. The developer can use Visual Studio Code to execute these commands by right-clicking on files or folders in the project and choosing from various deployment options. Right-clicking the folder for the component and choosing Deploy Source to Org allows the developer to deploy only the files that belong to that component, such as HTML, JavaScript, CSS, and XML files. Right-clicking the CSS file that was edited and selecting Deploy Single File allows the developer to deploy only that CSS file and not any other files in the project. These options can save time and bandwidth for deploying small changes without affecting other components or files in the project. Modifying the StoreIntegratedService to map to an Apex class ID using Workbench is not a way of deploying CSS changes, as it is only used for registering internal services that are provided by Salesforce B2B Commerce out-of-the-box. Entering the integration class name and version in store administration is not a way of deploying CSS changes either, as it is only used for selecting an existing integration class that has already been registered as an external service. Salesforce Salesforce CLI Command force:source:deploy, Salesforce Developer Tools for Visual Studio Code, B2B Commerce Developer Guide: Integration Framework, B2B Commerce Developer Guide: RegisteredExternalService Object


NEW QUESTION # 140
Which format is the custom Salesforce relationship with the API name,
"My_Relationship_Name__r.My_Name__c" queried and transformed into dy default in Salesforce B2B Commerce?

  • A. myrelationshipname.myname: value
  • B. myRelationshipName.myName: value
  • C. myRelationshipNameR=>(myName: value)
  • D. My_Relationship_Name__r.My_Name__c: value

Answer: C

Explanation:
The format that the custom Salesforce relationship with the API name, My_Relationship_Name__r.My_Name__c is queried and transformed into by default in Salesforce B2B Commerce is myRelationshipName.myName: value. This is done to follow the JavaScript naming convention and to avoid conflicts with the standard Salesforce fields and relationships. The transformation rules are as follows:
Remove any namespace prefix from the field name, such as ccrz__ or cloudcraze__.
Remove any underscores from the field name and capitalize the first letter of each word after an underscore, such as MyRelationshipName and MyName.
Lowercase the first letter of the field name, such as myRelationshipName and myName.
Use a dot (.) to separate the relationship name and the field name, such as myRelationshipName.myName.
Use a colon (:) to separate the field name and the field value, such as myRelationshipName.myName: value. Salesforce B2B Commerce and D2C Commerce Developer Guide,Query Transformation


NEW QUESTION # 141
Which technique is used by Lightning Web Components to provide areas of swappable, customizable content?

  • A. <slot> elements
  • B. CSS classes
  • C. JQuery templates
  • D. MutationObservers

Answer: A

Explanation:
Lightning Web Components (LWC) use <slot> elements to define areas within the component's template where content can be inserted dynamically. This feature, part of the Web Components standard, allows for the creation of customizable and reusable components. Salesforce developer documentation on LWC outlines the use of slots to build flexible component interfaces, enabling developers to design components that can adapt to various content structures and layouts.


NEW QUESTION # 142
......

Authentic Best resources for AP-202 Online Practice Exam: https://www.pass4training.com/AP-202-pass-exam-training.html

AP-202 Test Engine Practice Exam: https://drive.google.com/open?id=1oaaKNjbE4KDI0U2fONeCEFET_MD7RJba