Free CCD-102 Exam Braindumps (page: 21)

Page 21 of 52

Below is a form definition snippet from the newsletter.xml file:

<?xml versión=”1.0”?>
<form xmlns=http://www.demandware.com/xml/form/2008-04-15>
<field formid=”email” lavel=”Email” type=”String” mandatory=”True” max-length=”50” />
</form>

Which line of code creates a JSON object to contain the form data?

  1. Server.form.getForm(‘dwfrm_newsletter’)
  2. Server.form.getForm(‘newsletter’);
  3. Server.forms.getForm(‘newsletter’);
  4. Server.forms.getForm(‘dwfrm_newsletter’)
    En el controller:

    En el Formulario:

Answer(s): C



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?

  1. Extend the existing Stores_Find controller with a new middleware function that performs the query
  2. Pass the Store system object to the template, so that custom propierties are available
  3. Ad dan <isscript> to the template, and call StoreMgr.searchStoresByCoordinates();
  4. Use the module.superModule functionality and the call method to add a new property to the Store Model.

Answer(s): D



A merchant requires that an existing section of the Site become editable from the Business Manager, so that they can modify it independently of the developer.

Which of these is an important factor for a developer to consider when choosing the appropriate solution between a content slot and a Page Designer component?

  1. Only Page Designer Components can be localized for different languages.
  2. Only content slot configurations can be tied to campaigns.
  3. Only page Designer components can ve tied to campaigns.
  4. Only content slot configurations can ve localized for different languages.

Answer(s): A



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?

  1. var status = {success: ‘OK’. Message: ‘NO_FILES_FOUND’};
    return status;
  2. var status = require(‘dw/system/status’);
    return new Status(Status.OK, ‘NO_FILES_FOUND’);
  3. this.status = ‘NO_FILES_FOUND’
    return this;
  4. return ‘NO_FILES_FOUND

Answer(s): B



Page 21 of 52



Post your Comments and Discuss Salesforce CCD-102 exam with other Community members:

Fernando commented on November 04, 2024
Very cool and very helpful. Bought 2 exams with 50% discount.
Brazil
upvote