[UPDATED 2022] Salesforce CCD-102 Questions Prepare with Free Demo of PDF
NEW 2022 Certification Sample Questions CCD-102 Dumps & Practice Exam
Understanding functional and technical aspects of B2C Commerce Developer with SFRA
The following will be asked from you in the SALESFORCE CCD-102 exam dumps:
- Given a situation, set up item rules to meet business prerequisites
- Given a situation, set up a group design to meet business prerequisites
NEW QUESTION 46
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. $url('Page-Show', 'cid', 'terms-and-conditions')$
- C. $httpUrl('Content-Show', 'cid', 'terms-and-conditions')$
- D. $http('Content-Page', 'cid', 'terms-and-conditions')$
Answer: C
NEW QUESTION 47
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 form field.
How should the Digital Developer resolve this issue so that the error message is displayed on the address ID form field?
- A. addressForm.addresssid.invalidateFormElement = true;
- B. addressForm.invalidateFormElement(addressForm.addressid);
- C. addressForm.addresssid.invalidateFormElement();
- D. addressForm.invalidateFormElement("addressid");
Answer: B
NEW QUESTION 48
What happens if the log file size limit is reached in custom logging?
- A. Logging is suspended for the day.
- B. The log file rolls over and the last used log is overwritten.
- C. The log file is deleted and recreated from scratch.
- D. Logging is suspended for two hours.
Answer: A
NEW QUESTION 49
A client wants to differentiate their monobrand stores with a special icon when shown in the store locator. The information is saved in a true/false custom attribute for each Store object in Merchant tools.
How should the developer follow SFRA best practices to expose this data for rendering?
- A. Ad dan <isscript> to the template, and call StoreMgr.searchStoresByCoordinates();
- B. Use the module.superModule functionality and the call method to add a new property to the Store Model.
- C. Pass the Store system object to the template, so that custom propierties are available
- D. Extend the existing Stores_Find controller with a new middleware function that performs the query
Answer: B
NEW QUESTION 50
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?
- A. * Add the new attribute to the "Customer" system object.
* Modify the "COPlaceOrder" controller to add this new attribute to the current session's "Customer" object. - B. * Modify the "COPlaceOrder" 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. * Create a new custom object type for order comments that contains the attributes: order ID and comments.
* Modify the "COPlaceOrder" controller to create a new order comments custom object upon order completion. - D. * Add the new attribute to the "Order" system object.
* Modify the "COPlaceOrder" controller to add this new attribute to the current session's "Order" object.
Answer: D
NEW QUESTION 51
Which three techniques improve client-side performance in production while following documented best practices? (Choose three.)
- A. Use inline Javascript.
- B. Combine several images into a single image.
- C. Place CSS outside of templates.
- D. Compress CSS.
- E. Use one style sheet for each ISML decorator template.
Answer: A,D,E
NEW QUESTION 52
Which three operations should be done in a controller?
Choose 3 answers
- A. Use the model needed for the view.
- B. Use the Script API to generate data for the view.
- C. Create a plain JavaScript object representing a system object
- D. Use middleware functions when applicable
- E. Generate the response as JSON or HTML
Answer: A,D,E
NEW QUESTION 53
Once the Cache Information tool of the storefront toolkit is enabled, how can a Digital Developer view caching information for a particular component of the page?
- A. Start a pipeline debugging session and view the caching information provided.
- B. Open the Request Logs to view the caching information.
- C. Right-click on the component in UX Studio and view the caching properties of the file.
- D. Hover over the caching icons now present on the storefront.
Answer: D
NEW QUESTION 54
A Digital Developer needs to check for product inventory in a specific inventory list using the Open Commerce API.
An example request URL is:
Which resource_id value enables the appropriate resource?
- A. /inventory_list_search
- B. /inventory_lists/*
- C. /inventory_lists/**
- D. /products/*
Answer: D
NEW QUESTION 55
To ensure SFRA best practices and protect against request forgery, the developer introduced CSRF token generation in the customer address form:
<form ... action = "submit">
<input name ="${dw.web.CSRFProtection.getTokenName()}"
value = "${dw.web.CSRFProtection.generateToken()">
...
<the rest of the Form fields>
...
</form>
To implement CSRF protection when the form is submitted, the developer needs to introduce the CSRF validation using one or both of these methods as applicable:
* validateRequest
* validateAjaxRequest
Where in the code does the developer need to add this CSRF validation check?
- A. In the controller function that displays the form
- B. In the middleware chain of the controller post route
- C. In the controller function that handles the submitted form
- D. In the model function that persists the form data
Answer: B
NEW QUESTION 56
A Digital Developer needs to store information temporarily and decides to create a custom object.
Which code creates a custom object?
- A. CustomObjectMgr.createCustomObject(primaryKey);
- B. CustomObject.createCustomObject(primaryKey,CustomObjectType);
- C. CustomObjectMgr.createCustomObject(CustomObjectType,primaryKey)
- D. CustomObject.createCustomObject(CustomObjectType,primaryKey);
Answer: D
NEW QUESTION 57
A Digital Developer adds the following line of code to a script.
The code executes without error; however, the log file on disk does NOT contain the log message.
Which two actions should be completed to write the log message to disk? (Choose two.)
- A. Archive old log files to make room in the log directory.
- B. Ensure that the "login" category is added to the Custom Log Filters in the Log Settings Business Manager module.
- C. Ensure that the debug log level is enabled to write to file in the Custom 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.
Answer: A,D
NEW QUESTION 58
A Digital Developer is working on a project to 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. Create and use a new controller debug configuration.
- B. Modify the debugger configuration and use the existing pipeline debugger.
- C. Use the existing pipeline debugger.
- D. Create and use a new script debug configuration.
Answer: B
NEW QUESTION 59
A developer has a 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 credential URL field
- B. Use a Sitepreference dedicated for the service URL
- C. Use the service status area, set the override URL checkbox, and then populate the URL field with the required one.
- D. Use a Globalpreference dedicated for the service URL
Answer: A
NEW QUESTION 60
Given the customer basket described below:
* A customer has an existing basket that consists of multiple items.
* One of the items is identified as a gift item by an attribute at the product line item.
The developer needs to write custom code to fetch the customer basket and then 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 ending with validatebasket.
* Dw.ocapi.shop.basket.modifyGETResponse
* -- missing hook -
* -- missing hook --
* dw.ocapi.shop.basket.validateBasket
What are the two missing hooks in the middle?
- A. dw.ocapi.shop.basket.shipment.beforePATCH
- B. dw.ocapi.shop.basket.shipment.afterDELETE
- C. dw.ocapi.shop.basket.shipment.beforeDELETE
- D. dw.ocapi.shop.baskep.shopment.beforePOST
Answer: A,D
Explanation:
Estos indican antes de actualizar y antes de introducir
NEW QUESTION 61
In order to build the SFRA code to a developer sandbox for the first time, which build steps should the developer perform for the site to appear and function as designed?
- A. npm run compile:js, npm run compile:scss, npm run compile:fonts
- B. npm run compile:scss, npm run compile:html, npm run clean
- C. npm run compile:js, npm run compile: scss, npm run compile:html
- D. npm run compile:js, npm run compile:html, npm run clean
Answer: A
NEW QUESTION 62
......
Salesforce CCD-102 Exam Syllabus Topics:
| Topic | Details |
|---|---|
| Topic 1 |
|
| Topic 2 |
|
| Topic 3 |
|
| Topic 4 |
|
| Topic 5 |
|
CCD-102 Deluxe Study Guide with Online Test Engine: https://www.examcost.com/CCD-102-practice-exam.html
CCD-102 Test Prep Training Practice Exam Questions Practice Tests: https://drive.google.com/open?id=1ENUA_KRgNIB5NLbvpGHLF_AzCY_QxBs6

