Independence Day - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 65percent

Welcome To DumpsPedia

B2C-Commerce-Developer Sample Questions Answers

Questions 4

A developer is implementing new Page Designer content on a merchant's Storefront and adds the line below to

What does this achieve?

Options:

A.

Enables searching to find Page Designer content assets that are not in folders.

B.

Prevents Page Designer pages and components from being searchable.

C.

Filters Page Designer search results into separate page and component folders.

D.

Extends the ConrencSearchModei to allow the folder filter.

Buy Now
Questions 5

A developer is writing a server side script that needs to maintain state across calls. The persistent

information needed includes these items.

• The current customer

• Whether or not the customer is authenticated

• The privacy attributes (such as tracking consent or cookie policy)

Which technique should the developer use to maintain state in an efficient and scalable manner that

follows best practice?

Options:

A.

Use a non-replicable Custom Object to store the information temporarily.

B.

Use the Session class in the B2C Commerce api.

C.

Use an SFRAcontroller, because it runs server-side, the state is automatically maintained

D.

Use a client-side cookie to store the information for the session duration.

Buy Now
Questions 6

Given a template rendered by a controller with caching and a remote include without caching, which situation applies?

Options:

A.

Both the remote include portion and the rest of the page are cached.

B.

The remote include portion is not cached, but the rest of the page is cached.

C.

The page is cached only for returning customers because of the remote include.

D.

The page is not cached because the remote include introduces an uncached portion.

Buy Now
Questions 7

When inspecting the weekly service status report for a critical internally hosted web service used in the

application, a developer notices that there are too many instances of unavailability.

Which two solutions can reduce the unavailability of the service?

Choose 2 answers.

Options:

A.

Update the service to have a faster response time.

B.

Modify the code that makes the request to the external service to be wrapped in a try/catchblock.

C.

Increase the web service time out

D.

Change the code that sets the throwOnError attribute of the service to be true.

Buy Now
Questions 8

A custom cartridge that seemed to be performing well in a sandbox has been installed in production. The production instance is showing increased page load times that seem to be related to the new custom code. Whatcan a developer do to quickly track down the potential problem?

Options:

A.

Use the Code Profiler in production instance. Set the mode to Development Mode and then wait a few minutes to collect data from onsite traffic. Click the refresh button to see the new data.

B.

Use the Code Profiler in production instance. Set the mode to Development Mode and click the refresh button to see the new mode displayed.

C.

Use the Code Profiler in a sandbox instance. Set the mode Extended Development Mode and then load the suspected pages and run the suspected process several times. Click the refresh button to see the new data.

Buy Now
Questions 9

Universal Containers wants to give customers the ability to refine product search results by a product custom attribute,weightCapacity.

Which series of steps should a Digital Developer take to show this refinement on the storefront?

Options:

A.

Define a sorting rule for weightCapacity, then rebuild the product search index.

B.

Define a search refinement for weightCapacity, then rebuild the product search index.

C.

Define search-suggestion buckets for weightCapacity, then rebuild the product search index.

D.

Define a search refinement for weightCapacity, then clear the page cache segment for Search-Show.

Buy Now
Questions 10

A merchant checked the "Show Orderable Products Only" preference in Business Manager. What impact does this have on the Storefront from a user perspective?

Options:

A.

Back-order products will be excluded from search results.

B.

Products with an Available to Sell (ATS) - 0 will be excluded from search results.

C.

The product detail page will be hidden if Available to Sell (ATS) = 0.

D.

Pre-order products will be excluded from search results.

Buy Now
Questions 11

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 three.)

Options:

A.

The Auto-Upload setting is enabled for the server connection.

B.

The Active Server setting is enabled for the server connection.

C.

The credentials for the server connectionare correctly entered.

D.

The cartridge is for the current version of B2C Commerce.

E.

The server is configured to accept incoming connections.

Buy Now
Questions 12

Universal Containers requires that a new order comments attribute is added to the existing SiteGenesis checkout flow. This new attribute needs to be included as part of the standard order export.

Aside from updating the HTML markup and form definition, which option contains all necessary steps to achieve this task?

Options:

A.

• Add the new attribute to the "Order" system object.• Modify the "COPIaceOrder" controller to add this new attribute to the current session's "Order" object.

B.

• Modify the "COPIaceOrder" controller to update a CSV file in the IMPEX WebDAV directory with the order ID and comments.• Modify the order export process to read information in the CSV file and include it as part of the export.

C.

• Add the new attribute to the "Customer" system object.• Modify the "COPIaceOrder" controller to add this new attribute to the current session's "Customer" object.

D.

• Create a new custom object type for order comments that contains the attributes: order ID and comments.• Modify the "COPIaceOrder" controller to create a new order comments custom object upon order completion.

Buy Now
Questions 13

Given the requirements:

To integrate with an external web service using HTTP requests

To create a service for this purpose with the Service framework using the LocalServiceRegistry

class.

To test the service before the external service provider makes the API available

Which solution allows the developer to satisfy the requirements?

Options:

A.

Create a service and implement the mockfull callback and a sitepreference to enable or disable themock response.

B.

Create a service and implement the mockFill callback and set the service mode tomock.

C.

Create a service and a Sitepreference that induce the service to respond witch a mock responseusing a conditional.

D.

Create two services, one mock and the real one, and a Sitepreference that enable the mock or the real one

Buy Now
Questions 14

Which three techniques improve client-side performance in production while following documented best practices? (Choose three.)

Options:

A.

Use one style sheet for each ISML decorator template.

B.

Place CSS outside of templates.

C.

Compress CSS.

D.

Use inline Javascript.

E.

Combine several images into a single image.

Buy Now
Questions 15

Once the Cache Information tool of the storefront toolkit isenabled, how can a Digital Developer view caching information for a particular component of the page?

Options:

A.

Hover over the caching icons now present on the storefront.

B.

Open the Request Logs to view the caching information.

C.

Start a pipeline debugging session and view the caching information provided.

D.

Right-click on the component in UX Studio and view the caching properties of the file.

Buy Now
Questions 16

Which method is efficient and scalable because it uses the product search index rather than searching the database?

Options:

A.

ProducrlndexModel.getOrderableProductsOnly()

B.

ProduccAvailabiliryModel.isOrderable()

C.

ProductSearcbHodel().gerProductSearchHita()

D.

ProductVanari.cnMcciel.aerVariams ()

Buy Now
Questions 17

The developercreated a new Storefront category in storefront-catalog-m-en, but when viewing the

Storefront site, the category is not visible.

What are two possible reasons?

Options:

A.

The Storefront catalog is offline

B.

The category does not contain available products

C.

The category is not sorted

D.

The category is offline.

Buy Now
Questions 18

What happens if the log file size limit is reached in custom logging?

Options:

A.

Logging is suspended for the day.

B.

Logging is suspended for two hours.

C.

The log file is deleted and recreated from scratch.

D.

The log file rolls over and the last used log is overwritten.

Buy Now
Questions 19

Universal Containers is preparing their storefront to use Open Commerce APIs (OCAPI).

To which hook should the Digital Developermove taxation logic to ensure consistent order totals within B2C Commerce?

Options:

A.

dw.ocapi.shop.order.validateOrder

B.

dw.ocapi.shop.basket.calculate

C.

dw.ocapi.shop.basket.afterPostShipment

D.

dw.ocapi.shop.order.afterPOST

Buy Now
Questions 20

The developer needs to add custom category debug logging into the “contact’’ script, to ensure that a third-party service call responds as expected.

Assuming that the logging configurations for the contact category are correctly in place, which line of code should the developer add in the 06 placeholder to meet this requirement?

A)

B)

C)

Options:

A.

Option A

B.

Option B

C.

Option C

Buy Now
Questions 21

Which three configuration does a developer need to ensure to have a new product visible in the

Storefront?

Choose 3 answers

Options:

A.

The product has a Price

B.

The Storefront catalog that contains the product is assignedto a site

C.

The product has a master product

D.

The product is online and searchable

E.

The search index is built.Tengo dudas con el A. REVISAR

Buy Now
Questions 22

A developer is is configuring Shipping Methods on a storefront. Which of the following considerations must be kept in mind while configuring shipping methods.

Options:

A.

You can exclude products that can't be shippedwith a particular shipping method

B.

You can't exclude addresses that aren't used by a particular shipping method

C.

You can't define surcharge shipping costs for specific product groups.

Buy Now
Questions 23

A developer needs to show only car accessories when shoppers use the search term car accessories and

exclude technology accessories and household accessories.

Given the above requirement, what is the recommended approach using the Search Dictionaries

Dashboard?

Options:

A.

Create a Synonym Dictionary entry: car accessories, household, technology.Use search mode Exact Match

B.

Create a Common Phrase Dictionary entry: car accessories, NOT household, NOT technology.Use search mode Exact Match.

C.

Create a Synonym Dictionary entry: car accessories, household, technology.Use search mode First Word.

D.

Create a Common Phrase Dictionary entry: car accessories.Use search mode Exact Match.

Buy Now
Questions 24

Given the following snippet:

Server.append( ‘Show’ , function (req, res, next) )

According to SFRA, which two optionsshows a correct way to complete the code above in order to provide

data to the response using a controller?

Choose 2 answers

Options:

A.

res.viewData = {data: myDataObject};res.render(‘/content/myPage’);next();});

B.

res.setViewData ({data: myDataObject});res.render(‘/content/myPage’);next();});

C.

res.render(‘/content/myPage’,{data: myDataObject});next();});

D.

res.render(‘/content/myPage’);next();}).append{(Data:myDataObject});

Buy Now
Questions 25

A Digital Developer added afile named MyBusinessController.js in the cartridge named app_project. The project design calls for this new file to override MyBusinessController.js in client_project. The client_project cartridge contains other necessary functionality. Additional functionality is also included in the storefront_core and storefront_controllers cartridges.

Which cartridge path meets the project requirements?

Options:

A.

client_project:app_project:storefront_controllers:storefront_core

B.

app_project:storefront_controllers:storefront_core

C.

app_project:client_project:storefront_controllers:storefront_core

D.

storefront_core:storefront_controllers:client_project:app_project

Buy Now
Questions 26

A developer wants to configure the following products so that same search results ire returned regardless of the search term used. The search term can be bag, purse, pocketbook, and tote. Mow should the developer configure this?

Options:

A.

Synonyms

B.

Hypernyms

C.

Hyponyms

Buy Now
Questions 27

A developer has these requirements for out-of-stock products:

Save the SKUs of the out-of-stock products that the customer is interested in

Save the customer email regardless if the customer is a guest or registered

Email the customer whenthe product is back-in-stock

Which step should the developer perform as part of the solution to achieve the requirements?

Options:

A.

Create a new set-of-string type custom attribute to the system object type Profile to save all the SKUs and use the existing emailfield for the email.

B.

Create a new system object type that has a set-of-string type custom attribute for the SKUs and a string for the email field.

C.

Create a new custom object type that has a set-of-string type custom attribute for the SKUs and a string for the email field.

D.

Create a new set-of-string type custom attribute to the system object type Product to save all the customer email addresses for back-in-stock notification.

Buy Now
Questions 28

A merchant has a content slot on a page that currently displays products based on thetop sellers for the current week. The merchant wants to change this functionality. They want to have the slot render a specific content asset so that the content experience is more personalized to the visitors.

Which two actions are necessary to make thischange?

Options:

A.

Change the content type AND the rendering template in the slot configuration.

B.

Change the default setting AND the rendering template in the slot configuration.

C.

Change the rendering template in the slot configuration AND delete the existingcontent slot to create a new one.

Buy Now
Questions 29

A Digital Developer is implementing an Open Commerce API call to add products to a basket. Given the following resource configuration:

Which modification allows the requests to successfully execute?

Options:

A.

Change the "resource_id" value to: "/baskets/*/items".

B.

Change the "write_attributes" value to: "(+items)".

C.

Change the "read_attributes" value to: "(items)".

D.

Change the "methods" value to: ["get", "post"].

Buy Now
Questions 30

A Digital Developer suspects a logical error in a script.

Which action will help locate the error?

Options:

A.

Submit a support ticket to B2C Commerce.

B.

Check request logs for evidence ofthe logical error.

C.

Put breakpoints in the code, debug, and examine variable values.

D.

Print all values in the script node called before the current script.

Buy Now
Questions 31

Which line of code creates a content slot that can be included on homepage.isml to display on the home page?

Options:

A.

B.

C.

D.

Buy Now
Questions 32

A Digital Developernoticed 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?

Options:

A.

Set the active code version to use the latest compatibility mode.

B.

Remove invalid characters from the code version’s name.

C.

Remove invalid characters from cartridge file and folder names.

D.

Set the server connection’s target version directory to the active code version.

Buy Now
Questions 33

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 addGerman string values?

Options:

A.

checkout_de.properties in resources folder

B.

checkout.properties in the de locale folder

C.

checkout.properties in the default locale folder

D.

de_checkout.properties in resources folder

Buy Now
Questions 34

Given a file in a plug-in cartridge with the following code:

‘use strict’:

Var base = module.superModule;

Function applyCustomCache (req,res,next){

res.CachePeriod = 6; //eslint-disable-line no-param-reassign

res.cachePeriodUnit = ‘hours’) //eslint-disable-line no-param-reassign

next();

}

Module.exports = base;

Module.exports.applyCustomCache = applyCustomCache;

What does this code extend?

Options:

A.

A controller

B.

A middleware script

C.

A decorator

D.

A model

Buy Now
Questions 35

A developer has a sandbox with code to log a message during execution, and the following code:

After the code executes the developer does not see any log file with the message in the WebDEV folder.

Which two XML filesshould the developer import using the using-specific Merchant Tools import modules?

Options:

A.

Search settings and Promotion

B.

Search settings and Site Jobs

C.

Promotions and Site jobs

Buy Now
Questions 36

A client has a requirement to render different content on the homepage based on if the customer is logged in or guest user.

What should a developer implement to achieve this requirement?

Options:

A.

Write specific custom code in the Content Asset for a customer that is a registered, versus unregistered, user.

B.

Set the Content Slot configuration so it is based on the system customer group registered, versus unregistered.

C.

Set the Content Asset configuration for a customer that is a registered, versus unregistered, user.

D.

Add specific custom messages in Page Designer for a customer that is a registered, versus unregistered, user.

Buy Now
Questions 37

A developer has a sandbox with code to log a message during execution, and the following code:

After the code executes, the developer does not see any log file with the message in the WebDAV folder.

What could the developer do to correct this issue?

Options:

A.

Set the root log level to debug AND check the box for info under Log Files.

B.

Set the logging global preference to true AND set the root log level to debug.

C.

Set the logging global preference to true AND check the box for Info under Log Files

Buy Now
Questions 38

Given the following conditions:

Site export file with a copy of the Storefront data for a custom site

Sandbox with the custom site code, but no Storefront data

Requirement for a working copy of SFRA for development reference

A developer is assigned the following Business manager tasks:

A) Import the custom Site using Site Import/Export

B) Import the SFRA Demo Sites using Site Import/Export

C) Rebuild the custom Site search indexes

In what sequence should the developer perform the tasks, so that the custom Site displays the products as intended?

Options:

A.

Task A, then C, then B

B.

Task B, then C, then A

C.

Task A, then B, then C

D.

Task B, then A, then C

Buy Now
Questions 39

Which technical reports datapoint measures the performance of a controller’s script execution if network factors and Web Adaptor processing is ignored?

Options:

A.

Processing time

B.

Cache hit ratio

C.

Callcount

D.

Response time

Buy Now
Questions 40

A developer hasa sandbox configured with a service and its profile and credential. Now there is a requirement to allow changes to the service URL manually from the sandbox.

Which B2C feature should the developer use to achieve the request?

Options:

A.

Use the service credentialURL field

B.

Use the service status area, set the override URL checkbox, and then populate the URLfield with the required one.

C.

Use a Sitepreference dedicated for the service URL

D.

Use a Globalpreference dedicated for the service URL

Buy Now
Questions 41

A developer has aspecification to integrate with a REST API for retrieving traffic conditions. The service expects parameters to be form encoded.

Which service type should the developer register?

Options:

A.

HTML Form

B.

SOAP Form

C.

POST Form

D.

HTTP Form

Buy Now
Questions 42

A developer is tasked with the development of anew Page Designer Page Type, as requested by themerchant.

How should they define the rendering logic of the page?

Options:

A.

Implement a JavaScript file with a render () function.

B.

Implement a metadata JSON file with a ''render'' property.

C.

Implement a Controller file with a ''render'' route.

Buy Now
Questions 43

A Digital Developer extends a system object, Product, andadds a Boolean attribute, “sellable,” to it.

Assuming “prod” is the variable name handling the product, what code can the Developer use to access it?

Options:

A.

prod.extended.sellable

B.

prod.sellable

C.

prod.persistable.sellable

D.

prod.custom.sellable

Buy Now
Questions 44

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 other cartforms. In addition, a form field node is in the form XML and the necessary form input is present in the ISML template.

The code below is the submit button for the ISML markup.

What additional steps must occur before the Digital Developer can begin writing the processing code for this request?

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 45

Below is a form definition snippet from the newsletter.xml file:

xmlns=http://www.demandware.com/xml/form/2008-04-15 >

Which line of code creates a JSON object to contain the form data?

Options:

A.

Server.form.getForm(‘dwfrm_newsletter’)

B.

Server.form.getForm(‘newsletter’);

C.

Server.forms.getForm(‘newsletter’);

D.

Server.forms.getForm(‘dwfrm_newsletter’)En el controller: En el Formulario:

Buy Now
Questions 46

In Log Center, a developer notes j number of Cross Site Request Forgery (CSRF) log entries.

After adding the token in the 15ML template, which action might solve this problem'

Options:

A.

Add csrfProtection middleware steps in the controller

B.

Extend the CSRF token validity to avoid timeouts.

C.

Delete the existing CSRF allow list in Business Manager.

Buy Now
Questions 47

A developer is using logging in scripts to troubleshoot an issue. They are using thedw.system.Log class to write to specific log levels and categories. Which log level is always enabled by default?

Options:

A.

FATAL

B.

INFO

C.

ERROR

Buy Now
Questions 48

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 userswho try to add a coupon are logged out.

The following processing code is found in the Cart.js controller file:

What should the Developer verify to identify the issue?

Options:

A.

The CSRF cartridge is included in the site’s cartridge path.

B.

The form grouphas the secure attribute set to true.

C.

The CSRF token is present in the form and is being submitted in the request.

D.

The CSRF settings in Business Manager are properly configured.

Buy Now
Questions 49

A developer has a sandbox with code to log a message during execution, and the following code:

After the codeexecutes, the developer does not see any log file with the message in the WebDAV folder. Which two tasks does the developer need to perform to correct this issue?

Choose 2 answers

Options:

A.

Request that the developer's account be given permission to the Log Center of the current realm.

B.

Set the root log level to debug.

C.

Check the box for Info under Log Files.

D.

Set the logging global preference to true.

Buy Now
Questions 50

A merchant is selling a new product line of televisions. In order to deliver a good customer experience, the merchandising team wants the screen size to beincorporated into the search and navigation journey.

Which two things can the developer do to facilitate this for them?

Choose 2 answers

Options:

A.

Create a new search refinement for a Boolean value true or false and label it "big screen."

B.

Define a new searchable attribute for Screen Size.

C.

Configure catalog-level search refinement definition for Screen Size.

D.

Configure Screen Size threshold search refinement bucket definitions.

Buy Now
Questions 51

A Digital Developer needs to add logging to the following code:

Which statement logs the HTTP status code to a debug-level custom log file?

Options:

A.

logger.getLogger(‘profile’).debug("Error retrieving profile email, Status Code: ", http.statusCode);

B.

logger.debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);

C.

Logger.getLogger().debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);

D.

Logger.getLogger(‘profile’).debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);

Buy Now
Questions 52

A NewsletterSubscription custom object exists that has a key attribute named email of type String and the following script code.

However, the NewsletterSubscription custom object is not persisted.

What is a possible reason?

Options:

A.

The code shownneed to be wrapped in a transaction.

B.

The code shown needs to be wrapped in a try/catch block.

C.

The code shown is the wrong syntax. The correct syntax is:

Buy Now
Questions 53

A Digital Developer adds the following line of code to a script.

The code executes without error; however, the log file on disk does NOTcontain the log message.

Which two actions should be completed to write the log message to disk? (Choose two.)

Options:

A.

Ensure that the debug log level is enabled to write to file in the Custom Log Settings Business Manager module.

B.

Archive old log files tomake room in the log directory.

C.

Ensure that the “login” category is added to the Custom Log Filters in the Log Settings Business Manager module.

D.

Ensure that the debug log level has been added to the custom log level types in the Global Preferences business manager module.

Buy Now
Questions 54

Aclient has custom object definition and requirement that occasional data changes in staging also need to

exist in production,

Which task should the developer perform to meet these requirements when setting up the custom object?

Options:

A.

Create two copies of thecustom object in staging and set Sharing = True.

B.

Create the custom object definition in staging as Shared

C.

Create the custom object definition in production as Replicable

D.

Create the custom object definition in staging as Replicable

Buy Now
Questions 55

A developer needs to perform the same additional checks before completing multiple routes in a custom controller, in orderto decide whether to render a template or redirect the user to a different page.

According to SFRA best practices, what is the correct approach to improve code reusability in this scenario?

Options:

A.

Define a new middleware function and use it in the existing routes.

B.

Append a new function to all the existing routes with the server module.

C.

Replace the existing routes by creating a controller in separate new cartridge.

D.

Use the superModule property in the existing routes to extend their functionality.

Buy Now
Questions 56

Which three operations should be done in a controller?

Choose 3 answers

Options:

A.

Generate the response as JSON or HTML

B.

Use the Script API to generate data for the view.

C.

Use middleware functions when applicable

D.

Create a plain JavaScript object representing a system object

E.

Use the model needed for the view.

Buy Now
Questions 57

The Home-Show route uses this middleware chain:

The developer added Home.;s in another cartridge, which is before the original cartridge in the cartridge path, to extend that route but it does not have the middleware chain:

Assuming the code is correct on both functions, what is the expected result?

Options:

A.

A RunTime error is thrown, "Error: Params do not match route".

B.

The base code executes and then the custom code executes.

C.

The custom code executes and then the base code executes.

D.

The base code executes, but the custom code is ignored becausethe signature lines do not match.

Buy Now
Questions 58

Which object type can a developer import using the Merchant Tools > Import $ Export module in Business Manager?

Options:

A.

Images and other static assets

B.

Content slots

C.

Products

Buy Now
Questions 59

Universal Containers wants to add a model field to eachproduct. Products will have locale-specific model values.

How should the Digital Developer implement the requirement?

Options:

A.

Utilize resource bundles for translatable values.

B.

Set the model field as a localizable attribute.

C.

Store translated model valuesin different fields; one field for each locale.

D.

Add model to a new custom object with localizable attributes.

Buy Now
Questions 60

A Digital Developer is requesting product information for an external integration. The following Open Commerce API (OCAPI) request is NOT functioning correctly:

How should the Developer change the request?

Options:

A.

Change the URI to /dw/shop/v18_3/products/creative-zen-v.

B.

Change the HTTP method to PUT.

C.

Change the HTTP method to GET.

D.

Include an authentication token in the request.

Buy Now
Exam Code: B2C-Commerce-Developer
Exam Name: Salesforce Certified B2C Commerce Developer (SP24)
Last Update: Jul 11, 2024
Questions: 203
$56  $159.99
$42  $119.99
$35  $99.99
buy now B2C-Commerce-Developer