Weekend Sale Special Limited Time 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: CFsave75

Pass the Salesforce Developers Comm-Dev-101 Questions and answers with CertsForce

Viewing page 3 out of 5 pages
Viewing questions 21-30 out of questions
Questions # 21:

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

varLogger=require( ' dw/system/Logger ' );

Logger.info(message);

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.


Questions # 22:

A developer needs to check for product inventory in all inventory lists using the Open Commerce API.

An example request URL is:

http://refarch.demandware.net/dw/data/v18_3/inventory_lists/ecom-inventory/product_inventory_records/00883408601

Which property should the developer check in the OCAPI settings to confirm the appropriate resource is enabled?

Options:

A.

client_id


B.

ecom-inventory


C.

inventory_lists


Questions # 23:

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

What happens in this situation?

Options:

A.

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


B.

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


C.

Logging is suspended for the day.


Questions # 24:

A developer is asked to implement a simple call to an authentication-protected REST web service.

Which configuration is valid?

Options:

A.

Add the authentication password to the service credentials.


B.

Configure the authentication username using a site preference.


C.

Insert the service ' s endpoint in a.propertiesfile.


Questions # 25:

There is a business requirement that a custom controller in app_custom_my_cartridge invokes the calculateTax(basket) function of the dw.order.calculateTax hook that is defined in app_storefront_base. How can the developer implement this call?

Options:

A.

Use dw.system.HookMgr.callHook( ' dw.order.calculateTax ' , ' calculateTax ' , {basket:currentBasket});


B.

Add the location of the dw.order.calculateTax hook to hooks.json, and then use dw.system.HookMgr.callHook( ' dw.order.calculateTax ' , ' calculateTax ' , {basket:currentBasket});


C.

Add the location of the dw.order.calculateTax hook to package.json, and then use dw.system.HookMgr.callHook( ' dw.order.calculateTax ' , ' calculateTax ' , {basket:currentBasket});


Questions # 26:

A developer is inspecting the weekly service status report for a critical internally-hosted web service and notices there are too many instances of unavailability.

Which solution can reduce service unavailability?

Options:

A.

Increase the web service time out.


B.

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


C.

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


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 when the 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 email field for the email.


B.

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.


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.


Questions # 28:

To implement site custom functionality, a developer creates a new cartridge.

Which step should the developer take to ensure their cartridge changes take effect?

Options:

A.

Add the new cartridge to the cartridge path for the Business Manager site.


B.

Rebuild the site indexes to capture incremental changes.


C.

Add the new cartridge to the cartridge path for the relevant Storefront site.


Questions # 29:

A developer set up a new site 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.

In Business Manager, which sequence of steps is necessary to change the site to gross taxation?

Options:

A.

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


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 Taxation setting to Gross.


Questions # 30:

The client provides the system integrator with translation messages for the newly added " French " ( " fr " ) locale.

What is the correct folder to store the associated.propertiesfiles?

Options:

A.

cartridge/templates/resources


B.

cartridge/resources


C.

cartridge/templates/resources/fr


Viewing page 3 out of 5 pages
Viewing questions 21-30 out of questions