[Q72-Q96] Certification Training for AP-202 Exam Dumps Test Engine [2026]

Share

Certification Training for AP-202 Exam Dumps Test Engine [2026]

Apr 05, 2026 Step by Step Guide to Prepare for AP-202 Exam

NEW QUESTION # 72
Which two different types of services do Salesforce B2B

  • A. Global services which are responsible for querying and transforming data from entities
  • B. Data services which are responsible for querying and transforming data from entities
  • C. Hook services which are extension points for subscribers to tie into.
  • D. Commerce APIs leverage? (2 answers) A) Logic services which are responsible for implementing business logic associated with entities.

Answer: B,D

Explanation:
Two different types of services that Salesforce B2B Commerce APIs leverage are:
Logic services which are responsible for implementing business logic associated with entities. These services are defined in the logic classes, such as ccrz.ccLogicCart, ccrz.ccLogicOrder, or ccrz.ccLogicProduct. These classes provide methods for validating inputs, performing calculations, applying rules, or updating data for each entity.
Data services which are responsible for querying and transforming data from entities. These services are defined in the service classes, such as ccrz.ccServiceCart, ccrz.ccServiceOrder, or ccrz.ccServiceProduct. These classes provide methods for creating, reading, updating, and deleting data for each entity. Salesforce B2B Commerce and D2C Commerce Developer Guide,Service Classes,Logic Classes


NEW QUESTION # 73
Which event is triggered within Salesforce B2B Commerce whenever a cart's statechanges?

  • A. cartState
  • B. pageMessage
  • C. cart
  • D. cartChange

Answer: D

Explanation:
The event that is triggered within Salesforce B2B Commerce whenever a cart's state changes is cartChange. This event is triggered by the updateCart method of the CCRZ.Cart class, which is responsible for updating the cart data and performing any actions that depend on the cart state, such as applying discounts, taxes, or shipping charges. The event can be used to notify all the components that are listening to it that the cart has changed and they should refresh their data accordingly. Salesforce B2B Commerce and D2C Commerce Developer Guide,Events,Cart Class


NEW QUESTION # 74
Salesforce B2B Commerce natively provides a robots.txt file, however, a customer can also create its own version.Which three scenarios are valid reasons for customer to create their own robots.txt file? (3 answers)

  • A. The customer wants to reference a custom sitemap index.
  • B. robot.txt only works if there is one storefront in the org
  • C. The customer's store is not located at the rootof their domain.
  • D. The customer wants to have multiple robot.txt files in a single Salesforce Community.
  • E. The customer wants to reference multiple storefront sitemap indexes in a single robots.txt file

Answer: A,C,E

Explanation:
A customer can create its own robots.txt file for three valid reasons:
The customer wants to reference multiple storefront sitemap indexes in a single robots.txt file. This can be useful if the customer has multiple storefronts under the same domain and wants to provide a single entry point for search engines to crawl their sitemaps.
The customer wants to reference a custom sitemap index. This can be useful if the customer has created their own sitemap index that contains custom sitemaps or sitemaps from other sources.
The customer's store is not located at the root of their domain. This can be useful if the customer has their store under a subdirectory or a subdomain and wants to specify a different robots.txt file for their store than for their main domain. Salesforce B2B Commerce and D2C Commerce Developer Guide,Robots.txt File


NEW QUESTION # 75
Which service method should be overridden in order to allow "without sharing" queries?

  • A. ccrz.ccService.queryWithoutSharing()
  • B. ccrz.ccService.initSVCDAO()
  • C. ccrz.ccService.query()
  • D. ccrz.ccAPI.queryService()

Answer: B

Explanation:
The service method that should be overridden in order to allow "without sharing" queries is ccrz.ccService.initSVCDAO. This method is responsible for initializing the service data access object (SVCDAO) that is used by the service class to perform queries. By overriding this method, the user can specify the sharing mode of the SVCDAO, which will determine whether the queries respect or ignore the sharing rules of the current user. For example,ccrz.ccService.initSVCDAO(ccrz.ccAPI.SZ_WITHOUTSHARING)will initialize the SVCDAO with the without sharing mode. Salesforce B2B Commerce and D2C Commerce Developer Guide,Service Classes,ccService Class


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

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

Answer: C

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 # 77
Ursa Major is planning to implement Salesforce B2B Commerce, and a developer needs to configure taxes for their storefront. The company operates in multiple states, each with different tax rates and tax rules.
What are two ways the developer should configure taxes in B2B Commerce?

  • A. Configure a tax engine using third-party software.
  • B. Configure tax rates and rules for each state in Salesforce B2B Commerce.
  • C. Use a different pricebook for each state.
  • D. Use the Salesforce out-of-the-box tax calculator.

Answer: A,B

Explanation:
Two ways that a developer should configure taxes in B2B Commerce for Ursa Major are: configure a tax engine using third-party software and configure tax rates and rules for each state in Salesforce B2B Commerce. Configuring a tax engine using third-party software allows the developer to integrate with an external tax service provider that can calculate and apply accurate and up-to-date tax rates and rules for different states and jurisdictions. The developer can use the sfdc_checkout.TaxCalculations interface or the RegisteredExternalService object to connect to the third-party tax service provider's API or service. Configuring tax rates and rules for each state in Salesforce B2B Commerce allows the developer to implement their own custom tax calculation logic using Apex code. The developer can use custom objects, such as TaxRate__c and TaxRule__c, to store and manage tax rates and rules for different states and products. The developer can also use the sfdc_checkout.TaxCalculations interface to define how to retrieve and apply tax rates and rules for a cart or an order. Using a different pricebook for each state is not a good way to configure taxes in B2B Commerce, as it can create complexity and inconsistency in pricing and discounting logic. Using the Salesforce out-of-the-box tax calculator is not a good way either, as it does not support complex or dynamic tax scenarios that may vary by state or jurisdiction. Salesforce [B2B Commerce Developer Guide: Tax Integration], [B2B Commerce Developer Guide: Tax Calculations Interface], [B2B Commerce Developer Guide: TaxRate Object], [B2B Commerce Developer Guide: TaxRule Object]


NEW QUESTION # 78
A developer is debugging a flow and needs to watch all the variables changing as the checkout process is executed, but nothing is displaying. Which two features did the developer forget to enable?

  • A. Run the latest version of each flow called by subtle w elements
  • B. Set up a debug tog to show the details of what is executed
  • C. Show the details of what is executed and render flow in Lightning Experience.
  • D. Show the details of what is executed and render flow in Lightning Runtime

Answer: C,D

Explanation:
To debug a flow and watch all the variables changing as the checkout process is executed, the developer needs to enable two features: show the details of what is executed and render flow in either Lightning Runtime or Lightning Experience. These features are available in the debug options in Flow Builder, and they allow the developer to see real-time details of the flow actions, inputs, outputs, and outcomes in a panel on the right. The developer can also set input variables, restart the flow, and convert the debug run to a test. Option A is incorrect because there is no such thing as a debug tog in Flow Builder. Option C is incorrect because running the latest version of each flow called by subflow elements is not a feature that the developer can enable or disable, but rather a default behavior of Flow Builder.Debug a Flow in Flow Builder,B2B Commerce Checkout Flow (Aura),B2B Commerce Checkout Flow Core Actions


NEW QUESTION # 79
Universal Containers (UC) needs to wrap a Lightning Web Component they have created called "lwcContainerComponent" inside an Aura component. Which set of tags is the correct approach?

  • A.
  • B.
  • C.
  • D.

Answer: C

Explanation:
To wrap a Lightning Web Component inside an Aura component, you need to use the<c:lwcContainerComponent>tag, wherecis the default namespace for custom components. This tag allows you to reference the Lightning Web Component by its name and use it as a child component of the Aura component. You also need to use thelwc:dom="manual"directive on the Aura component to indicate that you are manually rendering the Lightning Web Component inside the Aura component. This directive prevents the Aura component from interfering with the rendering of the Lightning Web Component. Option C shows the correct syntax for wrapping a Lightning Web Component inside an Aura component. Option A is incorrect because it uses the<lightning:lwcContainerComponent>tag, which is not a valid tag for referencing a Lightning Web Component. Option B is incorrect because it uses the<aura:lwcContainerComponent>tag, which is also not a valid tag for referencing a Lightning Web Component. Option D is incorrect because it does not use thelwc:dom="manual"directive on the Aura component, which is required for manually rendering a Lightning Web Component inside an Aura component.Composition | Lightning Web Components Developer Guide,Using Lightning Web Components inside Aura Components,Aura Coexistence | Lightning Web Components Developer Guide


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

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

Answer: C

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 # 81
An administrator has just provided a developer with a new org and username. Which two sets of steps can the developer use to authorize the org and begin deploying Lightning web components?
What should a developer do to expose a public property in a Lightning web component?

  • A. Decorate the field with @property
  • B. Decorate the field with @public
  • C. Decorate the field with @api
  • D. Decorate the field with @track

Answer: C

Explanation:
To expose a public property in a Lightning web component, the developer should decorate the field with the @api decorator. This decorator marks the property as public, which means that it can be set by another component, such as a parent component. The @api decorator also makes the property reactive, which means that any changes to the property value are reflected in the component's template. The other decorators (@property, @track, and @public) are not valid for exposing public properties in Lightning web components.B2B Commerce and D2C Commerce Developer Guide, [Lightning Web Components Developer Guide]


NEW QUESTION # 82
In what way can a developer's code subscribe to platform events?

  • A. Process Builder, Apex Triggers and Flows
  • B. Flows
  • C. Flows and Apex Triggers
  • D. Apex Triggers

Answer: C

Explanation:
In Salesforce, developers can subscribe to platform events using both Flows and Apex Triggers. This allows for the execution of automated processes in response to the events. Apex Triggers can be written to respond to event messages in the same way they respond to DML events. Similarly, Flows can be configured to trigger upon the receipt of a platform event. This functionality is documented in Salesforce's developer guides and best practices, which emphasize the versatility and power of combining declarative and programmatic approaches to respond to platform events.


NEW QUESTION # 83
Which cookie stores the effective account ID when effective account is enabled?

  • A. apex__effacc
  • B. apex__cc_anonymous_Country
  • C. apex__currCartId
  • D. apex__cclgtkn

Answer: A

Explanation:
The cookie that stores the effective account ID when effective account is enabled is apex__effacc. This cookie is set by the cc_hk_EffectiveAccount hook when a user switches to another account that they have access to. The cookie value is the ID of the effective account, which is used to determine the pricing, availability, and visibility of products and categories for that account. Salesforce B2B Commerce and D2C Commerce Developer Guide,Effective Account


NEW QUESTION # 84
Which two blocks of code are needed to implement a custom getter in a Lightning web component?

  • A.
  • B.
  • C.
  • D.

Answer: B,D

Explanation:
custom getter in a Lightning web component is a JavaScript function that executes logic each time a public property is accessed. A custom getter must start with the keywordgetand be followed by a name for the property. A custom getter must also have a corresponding custom setter, which is a function that executes logic each time a public property is assigned a value. A custom setter must start with the keywordsetand have the same name as the getter. One of the getter or setter functions must be annotated with@api, which makes the property public and reactive.
Option A and Option D show the correct syntax for defining a custom getter and setter for a public property calledname. Option A shows the getter function, which returns the value of a private property called_name. Option D shows the setter function, which assigns the value of the parametervalueto the private property_name. The getter function is annotated with@api, which makes thenameproperty public and reactive.
Option B and Option C are incorrect because they do not follow the syntax for a custom getter and setter. Option B shows a regular function declaration, not a getter function. Option C shows a regular assignment statement, not a setter function. Neither option uses the@apidecorator, which is required for a public property.Reference:
Getters and Setters
Understand getter in Lightning Web component


NEW QUESTION # 85
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. Open the Flow, Select Debug, Provide the Inputs, Select Run
  • B. Open the Flow and select Attach to Live Session, Provide the Session Id, Select Attach
  • C. Look at the previous flow versions and compare them with the current one
  • D. Use the Org Browser tool in the IDE to download the flow XML and run a diff report

Answer: A,C

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 # 86
What are two guidelines for logging that are used within the core Salesforce B2B Commerce product? (2 answers)

  • A. It is okay to log any data on the server that is already logged on the client side.
  • B. The close method of ccrz.ccLog must be called at the end of the remote action.
  • C. Items or data within computational intensive loops shouldbe logged.
  • D. No calls to ccrz.ccLog can be made before cc_CallContext.initRemoteContext is executed.

Answer: B,D

Explanation:
Two guidelines for logging that are used within the core Salesforce B2B Commerce product are:
The close method of ccrz.ccLog must be called at the end of the remote action. This method will flush the log messages to the browser console or to a custom object, depending on the logging mode. If this method is not called, the log messages may not be displayed or saved properly.
No calls to ccrz.ccLog can be made before cc_CallContext.initRemoteContext is executed. This method will initialize the call context object, which contains information such as the current user, cart, storefront, and configuration settings. These information are required for logging, so calling ccrz.ccLog before initializing the call context will result in an error. Salesforce B2B Commerce and D2C Commerce Developer Guide,Logging


NEW QUESTION # 87
Although Salesforce B2B Commerce and Salesforce recommend against using
"without sharing classes" whenever possible, sometimes it is unavoidable. Which three items will open up a major security hole? (3 answers)

  • A. Executing dynamic SOQL inside a without sharing class with a bind variable fromcc_RemoteActionContentex class.
  • B. Executing dynamic SOQL inside a without sharing class with a bind variable fromPageReference.getCookies().
  • C. Executing dynamic SOQL inside a without sharing class with a bind variable from theUserInfo class.
  • D. Executing dynamic SOQL inside a without sharing class with a bind variable fromPageReference.getParameters().
  • E. Executing dynamic SOQL inside a without sharing class with a bind variable fromccAPI.CURRENT_VERSION.

Answer: A,B,D

Explanation:
Executing dynamic SOQL inside a without sharing class with a bind variable from PageReference.getParameters(), PageReference.getCookies(), or cc_RemoteActionContext class will open up a major security hole because these sources of input are not sanitized and can be manipulated by malicious users to inject SOQL queries that bypass the sharing rules and access data that they are not supposed to see. For example, a user can modify the URL parameters or cookies to include a SOQL query that returns sensitive data from the database. To prevent this, it is recommended to use static SOQL or escape the bind variables before executing dynamic SOQL.


NEW QUESTION # 88
A dev at Northern Trail Outfitters (NTO) exported Order Summary records via Data Loader, but noticed that some orders were missing. What is the most likely cause?

  • A. The Status was still set to Draft
  • B. The export job did not fully complete
  • C. Order Life Cycle Type was Managed
  • D. The user does not have rights to some of the records

Answer: D

Explanation:
The most likely cause of why some orders were missing from the Data Loader export is that the Status was still set to Draft. The Status is a field on the Order Summary object that indicates the current state of the order. The Status can have values such as Draft, Submitted, Confirmed, or Cancelled. A Draft order is an order that has not been submitted or confirmed by the customer or the seller. A Draft order is not considered a completed or valid order and is not included in reports or exports. When using Data Loader to export data from an org, Data Loader will only include orders that have a Status other than Draft, such as Submitted or Confirmed. If an order has a Status of Draft, Data Loader will not include it in the CSV file, which may result in missing orders. The export job did not fully complete is not a likely cause of why some orders were missing from the Data Loader export, as it is not related to the order status or data filtering. Order Life Cycle Type was Managed is not a likely cause either, as it is not related to the order status or data filtering. The Order Life Cycle Type is a field on the Order Summary object that indicates whether the order is managed by Salesforce Order Management or by an external system. The user does not have rights to some of the records is not a likely cause either, as it contradicts the fact that some orders were exported successfully. If the user did not have rights to some of the records, Data Loader would not be able to access or export any orders at all. Salesforce B2B Commerce Developer Guide: Order Summary Object,B2B Commerce Developer Guide: Order Status Enum,Data Loader Guide: Export Data from Salesforce


NEW QUESTION # 89
Which category can receive signaling from a Lightning Message Channel?

  • A. only ancestors (i.e. parents)
  • B. only direct siblings
  • C. page (anywhere on it)
  • D. only descendents (i.e. children)

Answer: C

Explanation:
A Lightning Message Channel can receive signaling from any component on a page (anywhere on it). A Lightning Message Channel is a service that allows components to communicate with each other across different Salesforce UI technologies, such as Aura, LWC, Visualforce, and Lightning web apps. A component can subscribe to a message channel and receive events that are published by another component on the same or different page. The message channel acts as a mediator that delivers the events to the subscribers. A Lightning Message Channel does not receive signaling only from descendants (i.e., children), only from direct siblings, or only from ancestors (i.e., parents), as these are limitations of event-based communication. Salesforce [Lightning Web Components Developer Guide: Communicate Across Salesforce UI Technologies], [Lightning Web Components Developer Guide: Communicate with Events]


NEW QUESTION # 90
How are variables bound when services use the ccSercviceDao classto execute queries?

  • A. Global variables
  • B. Apex class variables
  • C. Apex local variables
  • D. String substitution

Answer: D

Explanation:
When services use the ccServiceDao class to execute queries, variables are bound by string substitution. This means that the query string contains placeholders for variables that are replaced by their values at runtime. For example,ccrz.ccServiceDao.getQuery('SELECT Id FROM Account WHERE Name = :name')will eplace:namewith he value of thenameariale.


NEW QUESTION # 91
What is default behavior for how theSalesforce B2B Commerce Global APIs transform Salesforce data?

  • A. Fields names are returned using the Salesforce naming convention.
  • B. Fields names can be mapped to any naming convention desired
  • C. Fields names are returned with a lowercase first letter,camelcase convention
  • D. Fields names are returned with c." prepended in their name.

Answer: C

Explanation:
The default behavior for how the Salesforce B2B Commerce Global APIs transform Salesforce data is to return field names with a lowercase first letter, camelcase convention. For example, the field name ccrz__E_Product__c in Salesforce will be transformed to eProduct in the API. This is done to follow the JavaScript naming convention and to avoid conflicts with the standard Salesforce fields and relationships. Salesforce B2B Commerce and D2C Commerce Developer Guide,Query Transformation


NEW QUESTION # 92
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. CCCatSiteMap
  • B. ProductMap
  • C. SizeMap
  • D. CCSizeIndex

Answer: A,D

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 # 93
What is essential for a Salesforce B2B Commerce theme to show up in the theme section in CC Admin?

  • A. The theme needs to be set as a Custom Setting in Salesforce.
  • B. The theme needs to be set in the Configuration Settings.
  • C. The theme needs to have "theme" in the name of the Static Resource.
  • D. The theme needs to be referred to in the head element on the page

Answer: C

Explanation:
An essential requirement for a Salesforce B2B Commerce theme to show up in the theme section in CC Admin is that the theme needs to have "theme" in the name of the Static Resource. For example, a theme named "MyTheme" will not appear in CC Admin, but a theme named "MyTheme_theme" will. This is how the framework identifies which static resources are themes and which are not. Salesforce B2B Commerce and D2C Commerce Developer Guide,Themes


NEW QUESTION # 94
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. Override the getFieldsMap method and add subscriber specific code.
  • B. Create a public with sharing class that extends ccrz.ccServiceProduct.
  • 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: A,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 # 95
Which method needs to be implemented when rendering a Salesforce B2B
Commerce view in order to have it called after rendering has finished?

  • A. There are no methods called on the view after rendering has finished
  • B. afterRender()
  • C. postRender()
  • D. onRender()

Answer: C

Explanation:
The method that needs to be implemented when rendering a Salesforce B2B Commerce view in order to have it called after rendering has finished is postRender. This method is an optional hook that can be defined by the user to perform any actions or logic that depend on the view being rendered, such as initializing widgets, binding events, or updating the user interface. The method will be called by the render method of the CCRZ.View class, which is the base class for all views in the framework. Salesforce B2B Commerce and D2C Commerce Developer Guide,View Class


NEW QUESTION # 96
......

Ultimate Guide to Prepare AP-202 Certification Exam for Salesforce Developer: https://www.itpassleader.com/Salesforce/AP-202-dumps-pass-exam.html

Salesforce Developer AP-202 Real Exam Questions and Answers FREE Updated: https://drive.google.com/open?id=1N4DgUKTbtTdkGzDb5nzE0Vl_LH-DoB0X

0
0
0
0