Free CCD-102 Exam Braindumps (page: 17)

Page 17 of 52

Business Manager has the configuration:

Active log category is “root”
Log level of INFO
The code below execites:
Var log = Logger.getLogger(“products”,”export”);
Log.info (“This is important information”);

Using this information, what is the beginning of the filename in which the log will be written?

  1. custom-export
  2. custom-products
  3. products
  4. info-export

Answer(s): B



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?

  1. Create a service and implement the mockfull callback and a sitepreference to enable or disable the mock response.
  2. Create a service and implement the mockFill callback and set the service mode to mock.
  3. Create a service and a Sitepreference that induce the service to respond witch a mock response using a conditional.
  4. Create two services, one mock and the real one, and a Sitepreference that enable the mock or the real one

Answer(s): B



A developer needs to update the package.json file so that it points to the hock file for a cartridge, using the hooks keyword. Which snippets work correctly when added to the file?

  1. { “hooks”: “./cartridge/scripts/hooks.json” }
  2. { “hooks”: “./scripts/hooks.json” }
  3. { hooks: “./cartridge/scripts/hooks.json” }
  4. { hooks: ./scripts/hooks.json }

Answer(s): A



Given the following snippet:

Server.append( ‘Show’ , function (req, res, next) )
According to SFRA, which two options shows a correct way to complete the code above in order to provide data to the response using a controller? Choose 2 answers


  1. res.viewData = { data: myDataObject
    };
    res.render(‘/content/myPage’);
    next();
    });

  2. res.setViewData ({ data: myDataObject
    });
    res.render(‘/content/myPage’);
    next();
    });

  3. res.render(‘/content/myPage’,{
    data: myDataObject
    });
    next();
    });

  4. res.render(‘/content/myPage’);
    next();
    }).append{( Data:myDataObject
    });

Answer(s): C



Page 17 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