B2C Commerce Developer Exam
B2C Commerce Developer Exam
Salesforce
B2C-Commerce-Developer EXAM
Salesforce Certified B2C Commerce Developer
https://www.dumpsplanet.com Page 1
Questions and Answers PDF 2/23
Product Questions: 60
Version: 8.0
Question:1
A Digital Developer selects "Show Orderable Products Only" in the Search > Search Preferences
Business Manager module.
Which business goal does this accomplish?
Answer: B
Question:2
A Digital Developer needs to check for product inventory in a specific inventory list using the Open
Commerce API.
An example request URL is:
A. /products/*
B. /inventory_lists/**
C. /inventory-lists/*
D. /inventory_list_search
Answer: B
Question:3
A Digital Developer is working on a project to convert a pipeline to a JavaScript controller. UX Studio
has a functioning pipeline debugger configured for the site. Assume the Developer will add a
breakpoint to the controller when it is written.
What must be done in order to use the debugger with the new controller when it is written?
A. Modify the debugger configuration and use the existing pipeline debugger.
https://www.dumpsplanet.com Page 2
Questions and Answers PDF 3/23
Answer: C
Question:4
Given the file structure below, which ISML method call renders the customLandingPage template?
A. ISML.renderTemplate('content/custom/customLandingPage');
B. ISML.renderTernplate('cartridge/ternplates/default/content/custom/customLandingPage');
C. ISML('content/custom/customLandingPage');
D. ISML.render('content/custom/customLandingPage');
Answer: A
Question:5
A Digital Developer noticed that cartridges in their workspace are NOT executing. The Developer
confirms that the cartridges are uploaded to the B2C Commerce server connection's target version
directory.
Which action potentially solves this problem?
A. Set the active code version to use the latest compatibility mode.
B. Remove invalid characters from cartridge file and folder names.
C. Set the server connection's target version directory to the active code version.
D. Remove invalid characters from the code version's name.
Answer: C
Question:6
The following code ensures that an address ID CANNOT be used if it is already in use by another
address in the customer's address book. There is a problem with the code. The error message for an
invalid address ID is never shown to the user on the form field.
https://www.dumpsplanet.com Page 3
Questions and Answers PDF 4/23
A. addressForm.invalidateFormElement(addressForm.addressid);
B. addressForm.addressid.invalidateFormElement();
C. addressForm.addressid.invalidateFormElement = true;
D. addressForm.invalidateFormElement("addressid");
Answer: D
Question:7
A Digital Developer is adding support for an additional language other than the default. The locale
code for the new language is de.
In which folder should the developer place resource bundles?
A. templates/resources
B. templates/default/resources
C. templates/de
D. templates/default
Answer: A
Question:8
A Digital Developer adds the following line of code to a script.
dw.system.Logger.getLogger{'login').debug{"Login API has succeeded");
Thecode executes withouterror; however, the log file ondisk does NOTcontainthelog message.
Whichtwoactions should becompletedtowritethe logmessagetodisk?Choose2answers
A. Ensure that the debug log level has been added to the custom log level types in the Global
Preferences business manager module.
B. Ensurethat the"login" category is added tothe Custom Log Filters in the Log Settings Business
Manager module.
C. Archive old log files to make room in the log directory.
D. Ensure that the debug log level is enabled to write to file in the Custom Log Settings Business
Manager module.
Answer: B,D
https://www.dumpsplanet.com Page 4
Questions and Answers PDF 5/23
Question:9
Answer: A
Question: 10
A. ProductMgr.queryAllSiteProducts()
B. ProductSearchModel.getProductSearchHits()
C. Category.getProducts()
D. ProductSearchHit.getRepresentedProductsQ
Answer: B
Question: 11
A. It is more readablecode.
B. It has fewer lines ofcode.
C. It uses the searchindex.
D. It reduces accesses to the application server.
Answer: C
Question: 12
A business user wants to add a link to a content page from within the body of another content asset.
The target
content asset ID is: terms-and-conditions.
Whichlinkfunctiongenerates thecorrectlink?
https://www.dumpsplanet.com Page 5
Questions and Answers PDF 6/23
Answer: B
Question: 13
Universal Containers needs to have Apple Pay disabled for the country of Spain. Which Business
Manager module should the Developer use to meet this requirement?
Answer: D
Question: 14
A Digital Developer must give users the ability to choose an occasion (holiday, birthday, anniversary,
etc.) forwhichgifts are currently being selected. Thedata needs to be persistent throughout the
current shopping experience.
Which data store variable is appropriate, assuming there is no need to store the selection in any
system or custom objects?
Answer: B
Question: 15
Universal Containers sells physical gift cards for the holidays.
What needs to occur to guarantee the cards will always be available?
Answer: A
https://www.dumpsplanet.com Page 6
Questions and Answers PDF 7/23
Question: 16
A Digital Developer needs to add a new form to the shopping cart page to allow customers to enter
their rewards pass ID. There is already an existing cart.js controller that handles processing of the
othercart forms. In addition, aform fieldnode is in theform XML and the necessary form input is
present in the ISMLtemplate.
The code below is the submit button for the ISML markup.
Whatadditional steps must occur before the Digital Developer can begin writing the processing code
for this request?
A.
• Add an <action /> node to the form definition XML with the attribute formid=’’addRewardFaas"
• Addthekey addRewardPass, withaprocessing functionasavalue, totheobject passed tothe
Form.handleActionO method in the Cart .j* controller
B.
• Add the attribute addtl-fonn-action^'addRewardPaas"1 to the ISML form
• Addthekey addRewardPass, withaprocessing functionasavalue, totheobject passed tothe
Form.handleActionO method in the cart.3s controller
C.
• Add a <submit /> node to the form definition XML with the attribute formid=’’addRewardPas3"
• Addthekey addRewardPasa, withaprocessing functionasavalue, totheobject passed tothe
Form.handleActionO method in the Cart.ja controller
D.
• Add an action /> node to the form definition XML with the attribute formid="addRewardFa3s"
• No change to cart.3a controller required
Answer: A
Question: 17
A Digital Developer has been given a requirement to add fault tolerance to an existing web service
integration that uses Service Framework. Administrators at Universal Containers need to be able to
configure the timeout and rate limiting.
Which approach should the Developer use to implement the requirement?
Answer: A
https://www.dumpsplanet.com Page 7
Questions and Answers PDF 8/23
Question: 18
A Digital Developer creates a B2C Commerce server connection in their UX Studio workspace. The
Developer adds new cartridges to the workspace, but the cartridges do NOT execute as the
Developer expects.
Which three things should the Digital Developer verify to ensure the cartridges are uploaded?
Choose 3 answers
Answer: A, B,E
Question: 19
A Digital Developer extends a system object, Product, and adds a Boolean attribute, "sellable," to it.
Assuming "prod" is thevariable name handling the product, what code can the Developeruseto
access it?
A. prod.sellable
B. prod.persistable.sellable
C. prod.custom.sellable
D. prod.extended.sellable
Answer: A
Question: 20
A Digital Developer has detected storefront pages being rendered with an error message. After
inspectingthelogfiles, the Developerdiscoveredthat anenforcedquota is beingexceeded.
What action should the Developer take to stop the quota violation?
Answer: A
Question: 21
Universal Containers specifies a new category hierarchy for navigating the digital commerce
storefront. A Digital Developer uses Business Manager to manually create a catalog with the
https://www.dumpsplanet.com Page 8
Questions and Answers PDF 9/23
specified category hierarchy, then uses the Products & Catalogs > Import & Export module to export
the catalog as a file.
How can other Developers with sandboxes on the same realm create the same catalog in their own
sandboxes?
A. Use Business Manager to upload and import a copy of the export file obtained from the original
Developer.
B. Use the remote upload capability of the Site Import & Export module of Business Manager.
C. Use the Business Manager Data Replication module to replicate the catalog from the original
Developer's sandbox.
D. Use the import capability of the Site Import & Export module of Business Manager.
Answer: A
Question: 22
A Digital Developer is tasked with setting up a new Digital Server Connection using UX Studio in their
sandbox.
Which three items are required to accomplish this task? Choose 3 answers
A. Keystore Password
B. Instance Version
C. Business Manager Username
D. Instance Hostname
E. Business Manager Password
Answer: C, D, E
Question: 23
A Digital Developer needs to store information temporarily and decides to create a custom object.
Which code creates a custom object?
A. CustomObjectMgr.createCustomObject(primaryKey);
B. CustomObject.createCustomObject(primaryKey,CustomObjectType);
C. CustomObject.createCustomObject(CustomObjectType,primaryKey);
D. CustomObiectMqr.createCustomOb1ect(CustomOb1ectType,primaryKey);
Answer: D
Question: 24
A Digital Developer must resolve a performance issue with product tiles. The Developer determines
that the product tiles are NOT being cached for a long enough period.
Which two methods can the Developer use to verify the cache settings for the product tiles? Choose
2 answers
https://www.dumpsplanet.com Page 9
Questions and Answers PDF 10/23
A. Enable the template debugger to verify the cache times for the producttile.isml template.
B. View the product list page cache settings provided in the Administration > Manage Sites Business
Manager module.
C. View thecacheinformationprovidedbythe Merchant Tools> Technical Reports Business Manager
module.
D. Enable cache information in thestorefront toolkit and view the cache information for the product
tile.
Answer: C,D
Question: 25
A job executes a pipeline that makes calls to an external system.
Which two actions prevent performance issues in this situation? Choose 2 answers
Answer: A,C
Question: 26
Answer: B, C, D
Question: 27
A Digital Developer suspects a logical error in a script. Which action will help locate the error?
Answer: B
https://www.dumpsplanet.com Page 10
Questions and Answers PDF 11/23
Question: 28
Universal Containers has expanded its implementation to support German with a locale code of de.
The current resource bundle is checkout.properties.
To which file should the developer add German string values?
Answer: C
Question: 29
A Digital Developer has Identified that the code segment below is causing performance problems.
Answer: A
Question: 30
A Digital Developer wants to selectively retrieve products and process them from an (Phone. Which
action shouldthe Developer take, giventhat JavaScript controllers CANNOT be used?
Answer: A
https://www.dumpsplanet.com Page 11
Questions and Answers PDF 12/23
Question: 31
Universal Containers requires that a new order comments attribute is added to the existing
SiteGenesis checkout flow. This new attribute needs to be includedas part of thestandard order
export.
Aside from updating the HTML markupandform definition, whichoptioncontains all necessary steps
to achieve this task?
Answer: A
Question: 32
The following sample code is NOT providing the desired results. The Digital Developer needs to add
an entry to the logs to debug the problem.
Answer: C
Question: 33
https://www.dumpsplanet.com Page 12
Questions and Answers PDF 13/23
A Digital Developer is inspecting the weekly service status report for a critical internally-hosted web
serviceusedinthe applicationand noticesthattherearetoomany instances of unavailability.
Which two solutions are possible options to reduce the unavailability of the service? Choose 2
answers
A. Change the code that makes the request to set the throwOnError attribute, of the service, to be
true.
B. Modify the code that makes the request to the external service to be wrapped in a try / catch
block.
C. Increase the web service timeout.
D. Update the external service to have a faster response time.
Answer: B,C
Question: 34
Whichthree object types can adeveloper import using the Merchant Tools> Content> Import &
Export module in Business Manager?
Choose 3 answers
A. Folders
B. Images and other static assets
C. Products
D. Content slots
E. Content assets
Answer: A, B,E
Question: 35
A Digital Developer is working in a sandbox on a site named -est-site using the domain
test.demandware.net. The Developer needs to compile a url to make an Open Commerce API
(OCAPI) request that returns product information.
By default, which URL format is a proper Open Commerce API for Sandbox?
Answer: D
Question: 36
Which code sample is required to use a custom tag provided in SiteGenesis in an ISML template?
https://www.dumpsplanet.com Page 13
Questions and Answers PDF 14/23
A. <isinclude url="${URLUtils.url("CustomTag-Start")}>
B. <isscript>
dw.util.CustomTagMgr.createCustomTag("mytag"); <isscript>
C. <isinclude template="util/modules">
D. <isinclude template="util/customtags">
Answer: C
Question: 37
What happens if the log file size limit is reached in custom logging?
Answer: D
Question: 38
A Digital Developer is asked to optimize controller performance by lazy loading scripts as needed
instead of loading a scripts at the start of the code execution.
Which statement should the Developer use to lazy load scripts?
Answer: C
Question: 39
Universal Containers is preparing their storefront to use Open Commerce APIs (OCAPI).
To which hook should the Digital Developer move taxation logic to ensure consistent order totals
within B2C Commerce?
A. dw.ocapi.shop.basket.afterPostShipment
B. dw.ocapi.shop.order.afterPOST
C. dw.ocapi.shop.order.validateOrder
D. dw.ocapi.shop.basket.calculate
Answer: D
Question: 40
https://www.dumpsplanet.com Page 14
Questions and Answers PDF 15/23
Universal Containers calls the following combination of products "The Basics" and sells the
combination as a unique product ID:
• One Model 103 container
• Five Model 611 containers
• Three Model 201 containers
The Developer created these three products in the catalog.
What is the next step in Business Manager to create "The Basics" as a combination?
Answer: B
Question: 41
A Digital Developer has a new requirement to disable the "Discover" credit card type for all
checkouts. Whatdoesthe Developer needtochangein Business Manager to fulfill this requirement?
Answer: C
Question: 42
A Digital Developer has created a new PaymentForm controller that requires communication with
the server and must be made using the HTTPS protocol.
Which code sample should the Developer use to make sure that HTTPS is used?
A. exports.PaymentForm = guard.httpsPost(handlePaymentForm);
B. exports.PaymentForm = guard.ensure(['https', 'post', 'loggedln'], handlePaymentForm);
C. exports.PaymentForm = guard.ensure(['http\ 'post', 'loggedln'], handlePaymentForm);
D. exports.PaymentForm = guard.expose(['post', 'loggedln'], handlePaymentForm);
Answer: B
Question: 43
https://www.dumpsplanet.com Page 15
Questions and Answers PDF 16/23
A digital instance hasone site, withonemaster productcatalog separate from the site catalog. Some,
but NOT all, products in themastercatalog are assigned tocategories of thesite catalog.
A. Using Business Manager, how can a Digital Developer create a catalog export file that contains
only the products assigned to the site catalog?
B. Use the Catalog Export module to export the site catalog.
C. Use the Site Import & Export module to export the master catalog, filtered by site catalog
categories to export specificproducts.
D. Use the Catalog Export module to export the master catalog, with a category-assignment search
to export specific products.
E. Usethe Site Import&Exportmoduletoexportboththesitecatalog and themastercatalog ina
single archive.
Answer: C
Question: 44
A Digital Developer is implementing an Open Commerce API call to add products to a basket. Given
the following resource configuration:
Answer: B
Question: 45
ADigital Developerwants pass controltoan ISML template froma JavaScript Controller and load
product on the pipeline dictionary with the name myProduct.
Which code sample will achieve this?
https://www.dumpsplanet.com Page 16
Questions and Answers PDF 17/23
Answer: C
Question: 46
Which technical reports datapoint measures the performance of a controller's script execution if
network factors and Web Adaptor processing is ignored?
A. Response time
B. Processing time
C. Call count
D. Cache hit ratio
Answer: B
Question: 47
A Digital Developeraddeda file named MyBusinessController. js in the cartridge namedapp_project.
The project design calls for this new file to override MyBusinessControiier.3s in claient_project. The
client_project cartridge contains other necessary functionality. Additional functionality is also
included in the storefront_core and
storefront_controliers cartridges.
Which cartridge path meets the project requirements?
A. app_project:client_project:storefront_controllers:storefront_core
B. client_project:app_project:storefront_controllers:storefront_core
C. storefront_core:storefront_controllers:client_project:app_project
D. app_project:storefront_controllers:storefront_core
Answer: A
Question: 48
Universal Containers created a site export file from stagingin theglobal exportdirectory. How should
the Digital Developer update their sandbox using this staging site export file?
Answer: B
Question: 49
A Digital Developer needs to add logging to the following code.
https://www.dumpsplanet.com Page 17
Questions and Answers PDF 18/23
Which statement logs the HTTP status code to a debug-level custom log file?
Answer: D
Question: 50
A Digital Developer has beengiven a specification to integrate with a RESTAPI for retrieving weather
conditions. The service expects parameters to be form encoded.
Which service type should the Developer register?
A. HTTP Form
B. WebDAV
C. SOAP
D. FTP
Answer: A
Question: 51
A Digital Developer has a site export file on their computer that needs to be imported into their
sandbox. How should the developer update their sandbox with the data in this file?
A. Upload and import the file using the local option within the Site Import & Export Business
Manager module.
B. Connect and import thefile using the remoteoptionwithinthe Site Import & Export Business
Manager module.
C. Upload the file tothe Static WebDAVdirectory and importusing the Import & Export Business
Manager module.
D. Upload thefiletothe Impex WebDAVdirectory and importusingthe Site Importtoolwithin UX
Studio.
https://www.dumpsplanet.com Page 18
Questions and Answers PDF 19/23
Answer: A
Question: 52
Universal Containers recently completed updates to their storefront shopping cart page. A problem
has been discovered since the update. Users are no longer able to submit coupon codes on this page.
Additionally, authenticated users who try to add a coupon are logged out.
The following processing code Is found In the carets controller file:
Answer: C
Question: 53
Universal Containers wantsto give customers the ability to refine productsearch results by a product
custom attribute, weightCapacity.
Which series of steps should a Digital Developer take to show this refinement on the storefront?
A. Define search-suggestion buckets for weightCapacity, then rebuild the product search index.
B. Define a search refinement for weightCapacity, then clear the page cache segment for Search-
Show.
C. Define a search refinement for weightCapacity, then rebuild the product search index.
D. Define a sorting rule for weightCapacity, then rebuild the product search index.
Answer: C
Question: 54
https://www.dumpsplanet.com Page 19
Questions and Answers PDF 20/23
Universal Containers wants to change a content slot that is currently configured to display a content
asset. Now they want the slot to display the top five selling boxes for the week.
Which two changes need to be made for this to occur? Choose 2 answers
Answer: A,B
Question: 55
A. custom-xyz
B. xyz
C. custom-export
D. custominfo-blade
Answer: A
Question: 56
Answer: A
Question: 57
Universal Containers wants to add a model field to each product. Products will have locale-specific
https://www.dumpsplanet.com Page 20
Questions and Answers PDF 21/23
model values. How should the Digital Developer implement the requirement?
Answer: A
Question: 58
Universal Containers wants to associate a region code value with an order to indicate the general
area of its destination. This region code must be accessible whenever the order history is displayed.
What is required to accomplish this?
A. Define a custom object type to store the username with the region code.
B. Store the region code value in the geolocation system attribute of the Order.
C. Define a custom attribute on the Order system object type to store the region code value.
D. Store the region code value in a session variable.
Answer: C
Question: 59
Once the Cache Informationtool of thestorefronttoolkit is enabled, howcan a Digital Developer
view caching information for a particular component of the page?
Answer: A
Question: 60
ADigital Developer is working on amulti-site realm. Anew siterequires adifferent layout forthe
account landing page. Thebusinesslogic and data modelremainthesame. Theexistingcode is in
AccountCoatrol.-s and accountlanding.isul in the app_at storefront cartridge The app_3torefront
cartridge contains code for all other business functions. The cartridge path for the new site is
currently int_cybersource: mc_];aypal:app_storefront.
The Developer creates a new cartridge named app_newsire that contains only the
accountlanding.isml template for the new site.
Which modification should be made to the new cartridge path?
https://www.dumpsplanet.com Page 21
Questions and Answers PDF 22/23
Answer: C
https://www.dumpsplanet.com Page 22