Free AD0-E116 Exam Braindumps (page: 9)

Page 8 of 24

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?

  1. Define Style Definitions using PagePolicy dialog on Editable Template.
  2. Create two new client libraries with a dark and light theme and map them to the Page component.
  3. Set the sling:resourceSuperType property to core/wcm/components/page/v2/page on the Page component.
  4. Create a new dialog for the custom Page components.

Answer(s): B



From which AEM Web Console should a developer access and download full AEM Log Files?

  1. WebConsole -> System Information
  2. Status -> Log files
  3. OSGI -> Sing Log Service
  4. AEM -> Log files

Answer(s): B



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






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

AD0-E116 Discussions & Posts