AD0-E906 practice question 15 of 15

An AEM Developer needs to create a log file for the project. Which next step should the developer take?

Full set: 55 questions
Answer options
A: Create a log file under /apps/systemconfiguration… specific runmodp folder(s).
B: Ask AMS/DevOps for admin access to ceate a log file via console.
C: Create a log file under /apps/myprotect/configuration…. specific rubmode folder(s). Correct answer
Correct Answer:
C. Create a log file under /apps/myprotect/configuration…. specific rubmode folder(s).
Explanation

The correct and standard practice for creating a persistent, deployable custom log file configuration in AEM is to define it as an OSGi configuration within the project's application code structure. This is done by creating a configuration node (typically of type sling:OsgiConfig) under the project's /apps directory. Using run mode-specific folders, such as /apps/myproject/config.author or /apps/myproject/config.publish, ensures that the configuration is applied only to the intended AEM instances. This approach allows the configuration to be version-controlled and deployed consistently across different environments as part of the project's content package.

Why Incorrect

A. Create a log file under /apps/systemconfiguration… specific runmodp folder(s). This is incorrect because /apps/systemconfiguration is not a standard or recommended repository path for project-specific OSGi configurations in AEM.
B. Ask AMS/DevOps for admin access to ceate a log file via console. This is incorrect as it describes a manual, non-repeatable process. Best practices dictate that configurations should be managed as code for consistency and version control, not created manually in the Web Console.

References

1. Adobe Experience League - OSGi Configuration: "Configurations are stored as content nodes in the JCR repository under /apps... The naming convention for the folders is /config.. The run mode segment is optional if the configuration applies to all run modes." This document confirms that the standard location for project-specific, run mode-aware configurations is /apps//config..

Source: Adobe Experience League, "OSGi Configuration," Development > OSGi Bundles and Services section.

2. Adobe Experience League - AEM 6.5 Deploying Guide: "To add a new logger... you need to add a new configuration for the Apache Sling Logging Logger Configuration service factory... You can add a factory configuration through the Web Console or by defining a sling:OsgiConfig node in the repository." This establishes that creating a sling:OsgiConfig node in the repository is the correct method for creating a persistent logger configuration.

Source: Adobe Experience League, "Working with Audit Records and Log Files," AEM 6.5 > Deploying > Monitoring and Maintaining section.

3. Apache Sling Documentation - OSGi Installer: The OSGi Installer, a core part of AEM, reads configuration files from specific repository paths. "The JCR provider... scans folders named install or config below /libs and /apps." This confirms that a folder named config (or configuration by convention) under /apps is the correct location for deployable configurations.

Source: Apache Sling Official Documentation, "OSGi Installer," Provisioning Model section.

Scroll to Top