AD0-E116 Exam Question 1

A custom application contains a service component com.proj.ServiceComponent. A developer needs to configure the string value name and integer value intVal. The actual configuration must be deployed using a content package.
What should the developer do to meet these requirements?
  • AD0-E116 Exam Question 2

    A developer needs to create an OSGi service to run on an Author instance and send out newsletters at periodic intervals. Intervals should be customized using the Web Console Configuration. Concurrent execution must be prevented.
    Which code snippet should a developer use to achieve?


  • AD0-E116 Exam Question 3

    A developer is creating a custom method. This method must return a String property y from child x. the method must use only Sling APIs.
    How should the developer retrieve property y of node x, and node x may or may NOT exist?

  • AD0-E116 Exam Question 4

    A developer creates Editable Templates based on a custom Page component. The developer wants to leverage the Style System within the Editable Templates to allow authors to switch between the Dark and Light Theme. The Style System dialog is NOT enabled for the site.
    What should the developer do to resolve this issue?
  • AD0-E116 Exam Question 5

    A service component periodically retrieves content from an external REST interface and saves the information in JCR. The REST endpoint is configured via an OSGi service property. There is one URL for production (runmode prod) and another URL for all other environments.
    How should a developer configure the OSGi service?