Free AD0-E116 Exam Braindumps (page: 6)

Page 5 of 24

A developer creates an OSGi service to access JCR content. Refer to the code snippet from the OSGi service below.

public class AccessRepository {

private static final String SERVICE_ACCOUNT_IDENTIFIER = "sample-service";

...

private final String getServiceUser() {

final Map<string, object=""> authInfo =
Collections.singletonMap(ResourceResolverFactory.SUBSERVICE, (Object) SERVICE_ACCOUNT_IDENTIFIER);
ResourceResolver serviceResolver =
resourceResolverFactory.getServiceResourceResolver(authInfo))

...

}

}

Bundle ID = com.adobe.aem.samples-bundle

Which set of steps should the developer take to make sure that the code works?

  1. "1. Create a System User called systemUser with appropriate ACLs
    2. Modify the Apache Sling Service User Mapper Service
    3. Set user.default to com.adobe.aem.samples-bundle:sample-service=systemUser"
  2. "1. Create an AEM User called systemUser with appropriate ACLs
    2. Modify the Apache Sling Service User Mapper Service
    3. Set user.default tocom.adobe.aem.samples-bundle:sample-service=systemUser"
  3. "1. Create a System User called systemUser with appropriate ACLs
    2. Modify the Apache Sling Service User Mapper Service Amendment
    3. Set user.default to com.adobe.aem.samples-bundle:sample-service=systemUser"
  4. "1. Create an AEM User called systemUser with appropriate ACLs
    2. Modify the Apache Sling Service User Mapper Service Amendment
    3. Set user.default to com.adobe.aem.samples-bundle:sample-service=systemUser"

Answer(s): A



A developer is working with the following HTL expression in a component rendering script:

${'path/page.infinity.json' @extension = 'html',

removeSelectors = ['foo'],

selectors = ['foo', 'bar'],

prependSuffix = 'hello',

suffix = 'world' }

What is the expected output of this expression?

  1. path/page.foo.bar.html/hello/world
  2. path/page.infinity.json.bar.html/world
  3. path/page.bar.html/hello/world
  4. path/page.bar.html/world

Answer(s): C



A developer needs to implement a functionality that requires creating a Custom Workflow Step.

Which two steps shouldthe developer take to start developing the custom behavior? (Choose two)

  1. Implement a Java class extending from class
    com.adobe.granite.workflow.exec.WorkflowProcess
  2. Create a Workflow component node of the Super Resource Type "cq/workflow/components/model/process" under the folder /apps/components
  3. Create a Workflow component node of the Super Resource Type "cq/workflow/components/step" under the folder /etc/workflow/models
  4. Implement a Java class with this method "public void process (WorkItem item, WorkflowSession wfsession) throws WorkflowException"
  5. Implement a Java class implementing the interface com.adobe.granite.workflow.exec.WorkflowProcess

Answer(s): B,E



How should a developer enable remote debugging of anAEM server without modifying the AEM start script?

  1. Enable the remote debugging service through the AEM Cloud Services menu.
  2. Rename the quickstart jar file to include the additional debug settings.
  3. Enable the remote debugging servicethrough the AEM Web Console.
  4. Include an additional JVM parameter when starting AEM with java -jar.

Answer(s): B






Post your Comments and Discuss Adobe AD0-E116 exam with other Community members:

AD0-E116 Discussions & Posts