0% found this document useful (0 votes)
178 views6 pages

Amol Sir

This document contains multiple choice questions about B2C Commerce features and configuration. It tests knowledge in areas like content management, custom objects, cartridge configuration, and APIs.

Uploaded by

Amar Gaikwad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
178 views6 pages

Amol Sir

This document contains multiple choice questions about B2C Commerce features and configuration. It tests knowledge in areas like content management, custom objects, cartridge configuration, and APIs.

Uploaded by

Amar Gaikwad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 6

1.

Which line of code creates a content slot that can be included on


homepage.isml to display on the home
page?
A. <isslot id="my_banner " description="for home page" type="global"
context="content"
context-object="${pdict.ContentSearchResult.content}"/>
B. <isslot id="my_banner " description="for home page" type="global"
context="homepage"/>
C. <isslot id="my_banner " description="for home page" context="global">
D. <isslot id="my_banner " description="for home page" context="global"
context-object="${pdict.CurrentHomePage}"/>

2. Universal Containers created a site export file from staging in the global
export directory.
How should the Digital Developer update their sandbox using this staging
site export file?
A. Perform a data replication from staging.
B. Use the Site Development > Site Import & Export Business Manager
module.
C. Download the site export file and use UX Studio to transfer the data to the
sandbox.
D. Use the Site Development > Import & Export Business Manager module.

3.Universal Containers wants to add a model field to each product.


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 values in different fields; one field for each locale.
D. Add model to a new custom object with localizable attributes.

4. 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 data model 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 so that 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

5. 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.
Which link function generates the correct link?
A. $include(‘Page-Include’, ‘cid’, ‘terms-and-conditions’)$
B. $http(‘Content-Page’, ‘cid’, ‘terms-and-conditions’)$
C. $httpUrl(‘Content-Show’, ‘cid’, ‘terms-and-conditions’)$
D. $url(‘Page-Show’, ‘cid’, ‘terms-and-conditions’)$

6. A Digital Developer wants pass control to an ISML template from a


JavaScript Controller and load
product on the pipeline dictionary with the name myProduct.
Which code sample will achieve this?
A. ISML.renderTemlpate ( "helloworld.isml", { "myProduct": "product" });
B. ISML.renderTemlpate ( "helloworld.isml", { "product": myProduct });
C. ISML.renderTemlpate ( "helloworld.isml", { product: myProduct });
D. ISML.renderTemlpate ( "helloworld.isml", { myProduct: product })

7. A Digital Developer needs to store information temporarily and decides


to create a custom object.
Which code creates a custom object?
A. CustomObject.createCustomObject(CustomObjectType,primaryKey);
B. CustomObject.createCustomObject(primaryKey,CustomObjectType);
C. CustomObjectMgr.createCustomObject(primaryKey);
D. CustomObjectMgr.createCustomObject(CustomObjectType,primaryKey)

8. Which three techniques improve client-side performance in production


while following documented
best practices? (Choose three.)
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

9. 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

10. A Digital Developer must give users the ability to choose an occasion
(holiday, birthday, anniversary,
etc.) for which gifts are currently being selected. The data 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?
A. Request scope variable
B. Page scope variable
C. Session scope variable
D. Content slot variable

11. 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.order.validateOrder
B. dw.ocapi.shop.basket.calculate
C. dw.ocapi.shop.basket.afterPostShipment
D. dw.ocapi.shop.order.afterPOST

12. Which two methods are efficient and scalable? (Choose two.)
A. ProductMgr.queryAllSiteProducts()
B. ProductSearchHit.getRepresentedProducts()
C. ProductSearchModel.getProductSearchHits()
D. Category.getProducts()

13. 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 container
✑Tree Model 201 container
The Developer created these three products in the catalog.
What is the next step in Business Manager to create “The Basics” as a
combination?
A. In the Product Bundles module, create a bundle named “The Basics”.
B. In the Products module, create a product named “The Basics” and add the
products to the Product
Bundles tab.
C. In the Products module, create a product named “The Basics” and add the
products to the Product
Sets tab.
D. In the Product Sets module, create a product set named “The Basics”.

14. A developer is given a task to implement a new Page Designer layout


component that doesn’t accept
certain asset components.
How should the developer achieve the above task?
A. Add layout_type_exclusion in the other asset components json configuration
B. Add component_type_inclusion in the layout json configuration
C. Add layout_type_inclusion in the target components json configurations
D. Add component_type_exclusions in the layout json configuration

15. .A client that sells to multiple countries in Europe needs to disable Apple
Pay for Denmark.
Which Business Manager module is used to achieve this requirement?
A. Locale Payments
B. Apple Pay
C. Payment Processors
D. Payment Methods

16. A developer uses the call() instance method of dw.svc.Service to invoke a


web service and
implemented the callback methods defined by the dw.svc.ServiceCallback
class.
Which callback method is required only when invoking a SOAP service?
A. initServiceClient
B. parseResponse
C. mockCall
D. createRequest
17. An instance has custom logging enabled. The log reaches the file size
limit.
What happens in this situation?
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
D. The log file rolls over and the oldest log messages are overwritten

18. When exporting a site catalog from an external system, which file
format or formats should a developer
use so it can be imported into a B2C Commerce site?
A. XML only
B. CSV only
C. XML and JSON
D. JSON only

19. A client uses tax tables in Business Manager to calculate tax. They
recently started shipping to a new
country, Italy, and the tax is not being calculated correctly on the
Storefront.
What is the likely problem?
A. Tax Region is configured wrong
B. Tax Country is missing
C. Tax Jurisdiction is missing
D. Tax Locale is configured wrong

20. A Storefront is designed so that multiple pages share a common header


and footer layout.
Which ISML tag should a developer use on the templates for these pages to
avoid code repetition in the
most effective way?
A. <isreplace>...</isreplace>
B. <isinclude>...</isinclude>
C. <iscontent>...</iscontent>
D. <isdecorate>...</isdecorate>

21. A developer configures the dw.json file and needs to fill in the
necessary parameters to complete the
task.
Which three parameters are required when using npm scripts? (Choose
three.)
A. Username/Password
B. Code Version
C. Site ID
D. CSRF Token
E. Hostname

22. A developer has a specification 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?
A. HTTP Form
B. POST Form
C. SOAP Form
D. HTML Form

23. .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.
Which action should the developer take to resolve the problem?
A. Change the data type of the attributes
B. Set the attributes to site-specific replicable
C. Create an Attribute Group with the desired attributes in it
D. Sort the attributes in the custom object type

24. Given the requirements:


- To show the washing instructions for a clothing product on a dedicated
section the detail page
- Washing instructions come from the product information manager (PIM)
- To have this attribute available to localize in the Storefront
Which action meets these requirements?
A. Create a custom attribute on the product system object and set it as
localizable.
B. Set the product system object type as localizable.
C. Add a resource file for every locale for which the attribute needs to be
translated.
D. Add a custom attribute for each locale

25. .Which two of these situations are appropriate cases for using the B2C
Commerce OCAPIs? (Choose
two.)
A. Extending System Object Type definitions with new attributes.
B. Displaying a list of B2C Commerce products in a mobile app.
C. Showing the customer's information in their B2C Commerce “My Account”
page.
D. Updating Inventory information from a management software

26. A developer must configure permissions for an Open Commerce API


resource on a sandbox instance
that currently does not have any permissions configured.
Which two configuration properties are required to enable access to the
resource? (Choose two.)
A. resource_id
B. read_attributes
C. version_range
D. client_id

27. .A developer has a B2C site and a merchant requirement to add a new
locale to it.
What are the steps to enable the locale in the Storefront?
A. Update the language under the Organization Profile section.
B. Create, configure, and activate the locale under Global Preferences section.
C. Add an alias for the new locale and then create and configure the locale itself
under Global
Preferences section.
D. Create and configure the locale under Global Preferences section and
activate it in Site Preferences.

28. 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. dw.svc.webref.getDefaultService()
B. dw.svc.LocalServiceRegistry.getDefaultService()
C. dw.svc.LocalServiceRegistry.createService()
D. dw.svc.LocalServiceInstance.createService()
29. A merchant asks a developer to create a Cache Partition for the home page, so
that when the home page
is edited, only the home page is cleaned.
Given the above requirement, where should the developer create that partition in
Business Manager?
A. Site > Site Preferences > Cache
B. Operations > Cache > Site
C. Administration > Sites > Manage Sites > Site > Cache
D. Operations > Site > Manage Sites > Cache

30. 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/de
B. templates/default
C. templates/resources
D. templates/default/resources

You might also like