Winter Sale - Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: dpt65

B2C-Commerce-Developer Questions and Answers

Question # 6

A developer observed a specific issue in production, which they cannot reproduce in other environments. The developer wants to do a hot fix to one of the ISMLpages, which uses tag, to see if that resolves while issue. Which consideration must the developer keep in mind while deploying the hot fix in production?

A.

It will be required to invalidate the cache for the hot fix.

B.

If the page has multipletags, the highest cache duration will be used in production to determine the resulting page's caching behavior.

C.

The TTL cache setting only affects static content and not the page cache, which could potentially cause he production issue.

Full Access
Question # 7

An instance has custom logging enabled. The log reaches the file size limit.

What happens in this situation?

A.

The log file is deleted and a new log file is created.

B.

Logging is suspended for the day

C.

The currentlog file is archived and a new log file is created.

D.

The log file Rolls over and the oldest log messages are overwritten

Full Access
Question # 8

A new product has been added to the Storefront catalog that 15 assigned to a site

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

A.

The search index is built AND the product is online and searchable.

B.

The product has a master product AND the search index is built.

C.

The product has a price AND the product rs online and searchable.

Full Access
Question # 9

A Digital Developer is working on a multi-site realm. A new site requires a different layout for the account landing page. The business logic and datamodel remain the same. The existing code is in AccountControl.js and accountlanding.isml in the app_storefront cartridge. The app_storefront cartridge contains code for all other business functions. The cartridge path for the new site is currently int_cybersource:int_paypal:app_storefront.

The Developer creates a new cartridge named app_newsite that contains only the accountlanding.isml template for the new site.

Which modification should be made to the new cartridge path?

A.

Set the cartridge path sothat app_newsite is before app_storefront.

B.

Set the cartridge path so that app_storefront is before int_cybersource.

C.

Set the cartridge path to include only app_newsite.

D.

Set the cartridge path so that app_newsite is after app_storefront.

Full Access
Question # 10

A developer plans to use the /search_suggestion (Shop API) in a Storefront application and the following property must be set to do so

suggestion.product.image:view_type

What consideration should the developer in keep in mind to ensure that image data is returned correctly as part of search suggestions?

A.

If the view_type is not set or if the view_type is unknown, the image properties are not part of the response.

B.

If the view_type is not set or if the view_type is unknown, the image size of 'small' is used by default

C.

If the view_type is not set or if theview_type is unknown, the image size of 'large' is used by default

Full Access
Question # 11

A Digital Developer is asked to optimize controller performance by lazy loading scripts as needed instead of loading all scripts at the start of the code execution.

Which statement should the Developer use to lazy loadscripts?

A.

importPackage () method

B.

$.ajax () jQuery method

C.

local include

D.

require () method

Full Access
Question # 12

A developer isimplementing new Page Designer content on a merchant's Storefront and adds the line shown below to the setupCsntentSearch function in the searchHelpers.Js file.

What does this achieve?

A.

Allows Page Designer pages and components to be searchable

B.

Prevents Page Designer pages from being searchable

C.

Allows filtering Page Designer pages by folder

Full Access
Question # 13

Which two items are appropriate content of custom logs implemented atcheckout?

Choose 2 answers:

A.

Customer’s password at post-checkout sign up

B.

Order failure information

C.

Transaction’s credit card information

D.

Payment gateway service response code

Full Access
Question # 14

A developer is asked to create a new service instance that will call a remote web service.

Which method should the developer use to create the service instance?

A)

B)

C)

A.

Option A

B.

Option B

C.

Option C

Full Access
Question # 15

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 madefor this to occur? (Choose two.)

A.

Change the slot’s configuration content type to “products.”

B.

Change the slot’s configuration content type to “recommendations.”

C.

Change the slot’s configuration template to the appropriate rendering template.

D.

Delete the existing content asset.

Full Access
Question # 16

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?

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

Full Access
Question # 17

Which two methods are efficientand scalable? (Choose two.)

A.

ProductMgr.queryAllSiteProducts()

B.

ProductSearchHit.getRepresentedProducts()

C.

ProductSearchModel.getProductSearchHits()

D.

Category.getProducts()

Full Access
Question # 18

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?

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

Full Access
Question # 19

A developer cannot create a custom object in Business Manager because the attributes do not show. The developer can view the object but not the attributes.

Whichaction should the developer take to resolve the problem?

A.

Change the data type of the attributes.B Create an Attnbute Group with the desired attributes in it.

B.

Set the attributes to site-specific replicable.

Full Access
Question # 20

When exporting a price book from an externalsystem, which file format or formats should a developer use so it can be imported into a B2C Commerce site?

A.

JSON only

B.

XML only

C.

CSV only

D.

XML and CSV

Full Access
Question # 21

A developer is using the Script Debugger to troubleshoot an issue. They observe that the debugger is not able to resolve a specific breakpoint on one of the scripts. What is a possible reason for this issue?

A.

The cartridge containing the script isnot in the site’s cartridge path

B.

The script debugging session is not active

C.

The script is form a third party cartridge and hence does not allow_settings breakpoints.

Full Access
Question # 22

Adeveloper cannot create a custom object in Business Manager because the attributes do not show. The developer can view the object but not the attributes.

Which action should the developer take to resolve the problem?

A.

Change the data type of the attributes.

B.

Create an attribute Group with the desired attributes in it.

C.

Set the attributes to site-specific replicable.

Full Access
Question # 23

Server.get(‘Show’, consentTracking.consent, cache.applyDefaultCache, function (req,res,next){

Var Site = require(‘dw/system/Syte”);

Var pageMetaHelpter = require(‘*/cartridge/scripts/helpers/pageMetaHelper’);

pageMetaHelpter.setPageMetaTags(req.pageMetaData, Site.current);

res.render(‘/home/homePage’);

Missing code here

}, pageMetadata.computedPageMetadata);

The controller endpoint code snippet above does not work.

Which line of code should the developer use to replace line 6 and correct the problem?

A.

next();

B.

return res;C. res.next();

C.

req.next();

Full Access
Question # 24

A developer set up a newsite with Taxation: Net. However, the business requirements changed and the

site now needs to be Taxation:Gross. The Business Manager interface does not give this option.

Which sequence of steps is necessary to change the site to gross taxation?

A.

Make sure that the developer has “Administrator” Access, then change the Taxationsetting to Gross

B.

Unlock the site preferences and then change the Taxation setting to Gross

C.

Change the global setting,”Enable Taxation Methods” to true, then change the Taxationsetting to Gross

D.

Create a new site with Taxation set to Gross, then delete the old site.

Full Access
Question # 25

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?

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.

Full Access
Question # 26

A Digital Developer has created a new PaymentForm controller thatrequires 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.ensure([‘http’, ‘post’, ‘loggedIn’], handlePaymentForm);

B.

exports.PaymentForm = guard.expose([‘post’, ‘loggedIn’], handlePaymentForm);

C.

exports.PaymentForm = guard.httpsPost(handlePaymentForm);

D.

exports.PaymentForm = guard.ensure([‘https’, ‘post’, ‘loggedIn’], handlePaymentForm);

Full Access
Question # 27

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

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.

Full Access
Question # 28

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?

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.

Full Access
Question # 29

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

Storefront?

Choose 3 answers

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

Full Access
Question # 30

The developer has been given the following business requirement:

The shipping method, Free Standard Ground Shipping' hasan exclusion for products *lth category equals or is child of electronics-televisions.'

The marketing department has scheduled a sale offering a “Free Standard Ground Shipping” method for brand XyzTv televisions for the next 3 months.

What method accomplishes this while following best practices?

A.

Extend the code in cartridge/models/shipping/shippingMethod.js using module, super Module and add an exception for the specified brand.

B.

Extend the CheckoutShippingservices controller using module.superModuleand add an exception for the specified brand

C.

Create an allow list for the existing shipping method by adding a product exclusion for 'brand equals XyzTV" to the exclusion list for "Free Standard Ground Shipping."

Full Access
Question # 31

Which three object types can a developer import using the Merchant Tools > Content > Import & Export module in Business Manager? (Choose three.)

A.

Content slots

B.

Images and other static assets

C.

Products

D.

Folders

E.

Content assets

Full Access
Question # 32

A developer uses hooks for an extension point. Which n true for running multiple hooks for an extension point?

A.

It is possible to register multiple modules to call for an extension point in a singlehooks.json file

B.

It is possible to control the order in which registered modules are called.

C.

If you call multiple modules, only the first hook called returns a value

Full Access
Question # 33

A Digital Developer has been given a specification to integrate with aREST API for retrieving weather conditions. The service expects parameters to be form encoded.

Which service type should the Developer register?

A.

FTP

B.

SOAP

C.

HTTP Form

D.

WebDAV

Full Access
Question # 34

A developer is tasked with implementing the necessary code for a new Page Designer component.

What are the two purposes of the JSON metadata definition file that the developer creates7

Choose 2 answers

A.

Defines regions within the component type.

B.

Defines the responsive layout of the rendered template.

C.

Defines the business and rendering logic of the component required by the merchant.

D.

Defines theattributes that a merchant enters when using the component type.

Full Access
Question # 35

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

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});

Full Access
Question # 36

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

A.

Images and other static assets

B.

Content slots

C.

Products

Full Access
Question # 37

A Digital Developer suspects a logical error in a script.

Which action will help locate the error?

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.

Full Access
Question # 38

Adigital instance has one site, with one master product catalog separate from the site catalog. Some, but NOT all, products in the master catalog are assigned to categories of the site catalog.

Using Business Manager, how can a Digital Developer create a catalog export file that contains only the products assigned to the site catalog?

A.

Use the Catalog Export module to export the site catalog.

B.

Use the Catalog Export module to export the master catalog, with a category-assignment search to export specific products.

C.

Use the Site Import & Export module to export both the site catalog and the master catalog in a single archive.

D.

Use the Site Import & Export module to export the master catalog, filtered by site catalog categories to export specific products.

Full Access
Question # 39

A job executes a pipeline that makes calls to an external system.

Which two actions prevent performance issues in this situation? (Choose two.)

A.

Use synchronous import or export jobs

B.

Configure a timeout for the script pipelet.

C.

Disable multi-threading.

D.

Use asynchronous import or export jobs.

Full Access
Question # 40

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?

A.

Merchant Tools > Ordering > PaymentMethods

B.

Merchant Tools > Site Preferences > Apple Pay

C.

Merchant Tools > Ordering > Payment Processors

D.

Merchant Tools > Site Preferences > Payment Types

Full Access
Question # 41

In the SFRA Page controller, the following route exists:

The result of navigating to the address below is an error page.

What is the correct way to use this controller route in an ISML template?

A)

B)

C)

A.

Option A

B.

Option B

C.

Option C

Full Access
Question # 42

A developer working on a simple web service integration is asked toadd appropriate logging to allow future

troubleshooting.

According to logging best practices, which code should the developer write to log when an operation succeeds, but has an unexpected outcome that may produce side effects?

A.

Logger.info(‘Unexpected service response’)

B.

Logger.debug(‘Unexpected service response’)

C.

Logger.error(‘Unexpected service response’)

D.

Logger.warn(‘Unexpected service response’)

Full Access
Question # 43

A client has a requirement to allow users on the Storefornt to filter by a newly created attribute.

Which is necessary to achieve this?

A.

Add a new Search Refinment Definition.

B.

Set the attributeas Searchable.

C.

Change the productseachrefinerbar.iml template

Full Access
Question # 44

A developeris importing edits for two different sites into the same sandbox, and is provided with four different files.

Which two XML files should the developer import using the site-specific Merchant Tools import modules,

instead of the Administration section import modules?

Choose 2 answers.

A.

System type extensions (solo en Sites)

B.

Site Jobs (sites)

C.

Search Settings En (search y en Sites)

D.

Promotions ( en sites y en online marketing)

Full Access
Question # 45

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

A.

Processing time

B.

Cache hit ratio

C.

Callcount

D.

Response time

Full Access
Question # 46

Universal Containers specifies a new category hierarchy for navigating thedigital commerce storefront. A Digital Developer uses Business Manager to manually create a catalog with the specified category hierarchy, then uses the Products & Catalogs > Import & Export module to export the catalog as a file.

How can other Developerswith 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 & Exportmodule of Business Manager.

C.

Use the import capability of the Site Import & Export module of Business Manager.

D.

Use the Business Manager Data Replication module to replicate the catalog from the original Developer’s sandbox.

Full Access
Question # 47

A client has two B2C Commerce sites in the same instance: one forthe U.S. market, the other for the European market. They offer free gift wrapping on a selection of products. For each order, five products can be wrapped in the U.S., but only three products can be wrapped in the European region.

How should a developer allow the merchant to independently adjust this number?

A.

Create a new custom preference by extending the Site Preference object type.

B.

Select the corresponding option in the system preference for Orders.

C.

Add a new Campaign using the Online Marketing section of the Business Manager.

D.

Configure a new localizable content slot with a market-specific value.

Full Access
Question # 48

Given a sandbox with an active slot configuration with the following specifications:

• Content type set to product

• With someproduct configured

• With the following rendering template: slots/product/product_1x2 isml

• Correctly enabled and scheduled

And given the code contained in the selected rendering template:

Is an additional action needed for this to work asintended?

A.

No - The content slot is rendered correctly.

B.

Yes - The isloop should be removed because no loops are allowed in a content slot rendering template.

C.

Yes - The content needs to be configured with a recommender to display products.

Full Access
Question # 49

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 toaccomplish this?

A.

Store the region code value in a session variable.

B.

Define a custom attribute on the Order system object type to store the region code value.

C.

Define a custom object type to store the username with the region code.

D.

Store the region code value in the geolocation system attribute of the Order.

Full Access
Question # 50

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?

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.

Full Access
Question # 51

A developer has custom debug statements in a script, but the messages are not showing up in the

Storefront Toolkit Request Log.

Which step needs to be completed to get the messages to appear in the Request Log?

A.

In Global preferences, check the box for Enable custom logging in Request Log.

B.

In Site Preferences, check the box for Enable custom Logging in Request Log

C.

In Custom Log Settings, check the DEBUG box for Select Log Levels Written to Files.

D.

In custom Log Settings, activate the loggin category at DEBUG level.

Full Access
Question # 52

A developer wants to configure multiple products that should only be sold as a group. It should not bepossible for buyers to buy these products individually. How should the developer configure the products?

A.

Bundle

B.

Set

C.

Variation Group

Full Access
Question # 53

Which of these situations is anappropriate use of the B2C Commerce OCAPIs?

A.

Updating inventory information from a warehouse management software.

B.

Extending System Object Type definitions with new attributes.

C.

Showing the customer's information in their B2C Commerce "My Account’’ page.

Full Access
Question # 54

Business Manager has the configuration:

Active Log category is "root"

Log level of WARN

The code below is executing:

var log = Logger.getLogger("products");

Using this information, which two logs will be written?

Choose 2 answers

A.

log.warn("This is a warn message");

B.

log.error("This is an error message");

C.

log.info("This is an info message");

D.

log.debugfThis is a debug message");

Full Access
Question # 55

Recent code changes to an existing cartridge do not appear correctly on a Storefront. The developer confirms that the code is uploaded in the IDE and ensures that the cartridge is associated with the sandbox.

Which two additional steps should the developer take to troubleshoot this problem?

Choose 2 answers

A.

Check that the search index was recently rebuilt.

B.

Check the Business Manager site cartridge path.

C.

Check the Storefront site cartridge path.

D.

Check that the correct code version is selected.

Full Access
Question # 56

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

What does this achieve?

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.

Full Access
Question # 57

A developer is asked to periodically create a CSB file in a WebDAV folder to hold the orders information of the last 30 days.

What are the appropriate actions to implement such a requirement?

A.

Develop and configure a steptype and corresponding CommonJ5 job step script.

B.

Implement and configure a recurring task using the cron commandin Business Manager.

C.

Configure a new custom OCAPI endpoint and use the Customers resource type.

Full Access
Question # 58

A developer working on a multi country site is asked to store country specific data that drives the creation of a country selector. Examples of the data storedare:

Pricebook to be used

Image URL for country flag

The data used in staging also applies in production, but only for this site.

Which approach should the developer take to implement these requirements?

A.

Extend the Locale System Object to contain the custom data for each country.

B.

Create a replicable, site-specific Custom Object with the custom data for each country.

C.

Create site-specific content assets to store the data for each country.

Full Access
Question # 59

Given the requirements:

• To show the washing instructions for a clothing product on a dedicated section the detail page

• Washing instructionscome from the product information manager(PIM)

• To have this attribute available to localize in the Storefront.

Which action meets these requirements?

A.

Set the product system object type as localizable

B.

Add a resource file for every locale for whichthe attribute needs to be translated.

C.

Set the custom attribute as localizable

D.

Add a custom attribute for each locale

Full Access
Question # 60

A merchant wants to obtain an export file that contains all the products .assigned to their Storefront catalog. They do not know how to achieve this easily without manual processing, so asked their developer to help Generate this. The merchant s Instance setup is as follows:

They have one Master catalog and one storefront catalog.

Some, but not all, of the products in the Master catalog are assigned to categories within the Storefront catalog.

Which method allows the developer to generate the export for the merchant?

A.

Using the Catalog Import and Export module, export the Master catalog with a category-assignment search to export specific

B.

Using the Site Import and Export module, export both the Site catalog and the Master catalog in a single archive.

C.

Using the Site Import and Export module, export the Master catalog filtered by the site catalog categoriesto export specific products.

Full Access