Free AD0-E116 Exam Braindumps
Adobe Experience Manager Sites Developer Expert Questions 31–35 (page: 8)

Updated On: 9-Feb-2026

A developer creates two custom classes. ClassA has the following code:

package com.aem.abc;

import org.slf4j.Logger;

import org.slf4j.LoggerFactory;

public class ClassA {

private static final Logger logger = LoggerFactory.getLogger(this.getClass());

public void classAMethod() {

logger.debug("Message from Class A method");
}

}

The developer createsa custom log custom.log with debug level in OSGi sling log support for the Java package com.aem.abc. The developer adds another class ClassB with the following code:

package com.aem.xyz;

import org.slf4j.Logger;

importorg.slf4j.LoggerFactory;

public class ClassB {

private static final Logger logger = LoggerFactory.getLogger(this.getClass());

public void classBMethod() {

logger.debug("Message from Class B method");

}

}

Which action mustthe developer take to see the log messages in the same file from both classes?

  1. Configure custom.log in OSGi web console -> Sling -> Log Support and replace com.aem.xyz with com.aem.abc
  2. Configure custom.log in OSGi web console -> Sling -> Log Supportand replace com.aem.abc with com.aem.xyz
  3. Create separate a log file in the OSGi web console -> Sling -> Log Support for logger com.aem.xyz
  4. Configure custom.log in OSGi web console -> Sling -> Log Support and replace com.aem.abc with com.aem

Answer(s): D



Which log file should a developer use to search for exception stacktraces?

  1. <aem-install>/crx-quickstart/logs/error.log
  2. <aem-install>/crx-quickstart/logs/request.log
  3. <aem-install>/crx-quickstart/logs/access.log
  4. <aem-install>/crx-quickstart/logs/info.log

Answer(s): A



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



Viewing page 8 of 20
Viewing questions 36 - 40 out of 94 questions


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

AI Tutor AI Tutor 👋 I’m here to help!