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 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?
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
In Log Center, a developer notes anumber of Cross Site Request Forgery (CSRF) log entries. The developer knows that this happens when a CSRF token is either not found or is invalid, and is working to remedy the situation as soon as possible.
Which two courses of action might solve the problem?
Choose 2 answers
UniversalContainers 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 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 merchant has a requirement to render personalized content ton a category page via a Content Slot that
targets VIP high-spending customers during a specific promotional period.
Which two items should the developer create to achieve the specified requirements?
Choose 2 answers:
Given the file structure below, which ISML method call renders the customLandingPage template?
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 2 answers
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?
Why should a Digital Developeruse ProductSearchModel.getProducts() instead of Category.getOnlineProducts() to access products?
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 must these requirements?
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.
Given the above OCAPI definitions, which permission or permissions apply?
Which of these situations is anappropriate use of the B2C Commerce OCAPIs?
A developer customized the Cart-Show controller routewith a LINK cartridge that adds social media data. There is a new requirement to add a datalayer object to the Cart-Show controller route.
How should the developer achieve this to ensure that no code change will be needed if the client decides to remove the LINK cartridge?
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 developer is asked to write a log containing the ID and name of the product with a variable named myProduct.
Which snippet of code should be used?
Given the code snippet aboce, what should be added after this code so it can be used for page
component display?
A Digital Developer selects “Show Orderable Products Only” in the Search > Search Preferences Business Manager module.
Which business goal does this accomplish?
A developer wants to use an external application to manage their stores information (such as opening
hours, and so on), and see their changes in their B2C Commerce Staging instance aas son as they are
saved.
What is the appropriatetechnique the developer should perform to allow the merchant to create a new
store in this scenario?
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?
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?
Below is a form definition snippet from the newsletter.xml file:
Which line of code creates a JSON object to contain the form data?
A Digital Developer has identified that the code segment below is causing performance problems.
What should theDeveloper do to improve the code?
Universal Containers sells physical gift cards for the holidays.
What needs to occur to guarantee the cards will always be available?
A client that sells sport shows wants to allow its customers to filer products based on the intended activity (such as tennis, jogging, basketball, etc.) but this particular information is not present in the current catalog.
Which two actions does a developer need to perform in a B2C Commerce instance to allow this two happen?
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'
A client sells its products in North America, Europe, and Asia, and has a B2C Commerce Site for each of these markets. The client receives three area-specific snippets of analytics code by a third-party provider to insert in the sites.
How should the developer configure an instance to allow the merchant to independently insert and update these snippets?
Given the SFRA Controller below:
Why would a JavaScript debugger, that is stopped at line 06, fall to show the viewdata variable in the inspection tool?
What happens if the log file size limit is reached in custom logging?
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?
In order to implement site custom functionality, a developer creates a new cartridge.
Which step should the developer take to ensure their cartridge changes take effect?
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 developer has the following files in template/resources:
account.proierties
weight.unit=kilos
account_en.propierties
weight.unit=stones
account_en_US.propierties
weight.unit= pounds
Using the default locale configuration, what is the current outcome of the page that renders the
account.isml template snippet below when visiting the Sofrefront with the English for Canada(en_CA) locale=
Your parcel weighs 10 ${Resource.msg(‘weight.unit’,’account’)}
Given a job step configured in the steptype.json, a developer needs to add a custom status code
“No_FILES_FOUND”.
Which code snippet will complete the requirement?
A merchant has a content slot on a page that currently displays products based on the top Sellers for the
current week.
They wish to change this functionality and, instead, 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 this change?
Choose 2 answers
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?
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.
Which statement correctly adds a log entry?
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 formfield.
How should the Digital Developer resolve this issue so that the error message is displayed on the address ID form field?
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?
A developer needs to check for product inventory in all inventory lists using the Open Commerce API.
An example requestURL is:
Which properly should the developer check in the OCAPI settings to confirm the appropriate resource is enabled?
Given the customerbasket described below:
A customer has an existing basket that consists of multiple items.
One of the items is identified as a gift ítem by an attribute at the product line ítem.
The developer needs to write custom code to fetch the customer basket andthen modify the basket based
upon the items in the cart. If the basket contains any gift items, modify the basket and create a separate
shipment for the gift item.
Four hooks are required to make the modification, beginning with modifyGETRespone and endingwith
validatebasket.
Dw.ocapi.shop.basket.modifyGETResponse
-- missing hook –
-- missing hook --
dw.ocapi.shop.basket.validateBasket
What are the two missing hooks in the middle?
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
Given the sandbox with:
Service configured and assigned to its profile and credential
A code version that uses that service
And given the requirement to limit the number of success or error calls the code can perform to a restricted number ofcalls per second.
Which configuration should the developer perform?
Multiple shoppers report slow performance on the Product Details Page.
Which tool can a developer use to view average response times for the Product-Detail controller route?
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?
Which three operations should be done in a controller?
Choose 3 answers
A developer is is configuring Shipping Methods on a storefront. Which of the following considerations must be kept in mind while configuring shipping methods.
Given the requirement to add caching toan existing page while adhering to SFRA best practices, which code snippet should be used?
A)
B)
C)
In order to build the SFRA code to adeveloper sandbox for the first time, which build steps should the developer perform for the site to appear and function as designed?
A developer is implementing new Page Designer content on a merchant's Storefront and adds the line below to
What does this achieve?
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?
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?
The developer is asked to enhance the functionality of an existing controller route by adding information to the response's viewData.
How should thedeveloper approach this task while following SFRA best practices?
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.)
Given a NewsletterSubscription custom object that has a key attribute named email of type String, what is the correct syntax to create the NewsletterSubscription custom object and persist it to the database?
Assume the code below is executing:
Business Manager has the configuration:
Active Log category is “root” with log level of “info.”
Given this information, what is the beginningof the filename in which the log will be written?
A Digital Developer is working on a projectto 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 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?