Free AD0-E116 Exam Braindumps

A developer has a component named foobar with the following file:

foobar.html:

<div data-one="${'foo'}" data-two="${2}" data-three="${true}"></div>

<div data-one="${''}" data-two="${0}" data-three="${false}"></div>

What is the output when the component is rendered?

  1. "<div data-one=""foo"" data-two=""2"" data-three=""true""></div> <div data-one="""" data-two=""0"" data-three=""false""></div>"
  2. "<div data-one=""foo"" data-two=2 data-three=""""></div> <div data-one="""" data-two=0 data-three=""""></div>"
  3. "<div data-one=""foo"" data-two=""2"" data-three></div> <div data-two=""0""></div>"
  4. "<div data-one=""foo"" data-two=2data-three=""""></div> <div data-two=0 data-three=""""></div>"

Answer(s): C



An application runs specific license checks against certain DAM assets every day. It should send an email to a configured list if it finds warnings, and mark the assetaccordingly. A service component that uses the Apache Sling Scheduler Service is created. DAM assets that must NOT be used anymore are hidden using ACLs and the license check must re- check them.

How should a developer obtain a resource resolver thatcan read and update the DAM assets?

  1. Set up a cron job with curl calls with the admin user and use request.getResourse().getResourceResolver().
  2. Create a configuration line in PID com.day.cq.security.ACLSetup for the user that you obtain a session forvia ResourceResolverFactory.getResourceResolver(...).
  3. Configure the user admin in PID
    org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl as user.default and make sure the service user exists and has jcr:read and jcr:write permissions.
  4. Create a configuration for PID
    org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl.amended-damaccess that references a pre-created service user with r/w permissions and use ResourceResolverFactory.getServiceResourceResolver(...).

Answer(s): C



A developer needs to ensure that the path /content/<proj>/segments exists on all environments with the correct initial content that the developerprovides in a package. Content that exists in that path should NOT be affected.

Which import mode should the developer use in the filter definition?

  1. update
  2. merge
  3. replace
  4. optional

Answer(s): B



A developer needs to install a content package on an AEM environment. However a content package with the same name is already installed.

What would be the safest way for the developer to install the content package to make sureonly the changes of the new content package get applied?

  1. Upload the content package to the CRX Package Share before installing it
  2. Use the "Force Upload" option when uploading the new content package
  3. Uninstall the existing content package before installingthe new content package
  4. Install the content package using the OSGi web console

Answer(s): C






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

AD0-E116 Discussions & Posts