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 questionsThe 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.
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.
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.
Keep practicing
Take the free AD0-E906 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other AD0-E906 practice questions
- Question 1An implementation consultant wants to configure the enhanced connector inside a customer'…
- Question 2A custom field needs to be mapped in AEM metadata mapping the field details are below: La…
- Question 3A company has a workflow where multiple people ate downloading and working on the same do…
- Question 4An AEM server is overloaded with too many concurrently running workflows. The developer d…
- Question 6An AEM Author wants to search and filter through all assets in the DAM to find assets exp…
- Question 7Metadata mappings between Adobe Workfront and the AEM have been configured A user wants t…
