1. Custom Log config for different Java Package ?
    1. Go to http://localhost:4502/system/console/slinglog (felix console --> Sling à Log Support )
    2. Click on Add New Logger
    3. Specify logger level(debug, info,warn, error, trace ,default )
    4. Add log file name and path
    5. Add package in in multifield.
  2. How to truncate Request Log File ?
    1. AEM provides 2 ways to access the logs without the need of special rights. You only need to have access rights to the AEM Web Console or the administrative tools section of AEM.
    2. Using http://localhost:4502/system/console/status-slinglogs
    3. Using system diagnostic page http://localhost:4502/libs/granite/operations/content/diagnosis.html
    4. The request.log offers a built-in way to get a look at how long requests take. For development purposes it is useful to tail -f the request.log and watch for slow response times. To analyze a bigger request.log we recommend the use of rlog.jar which allows you to sort and filter for response times.
    5.  
  3. Configure replication agent to flush dispatcher cache ?
    1. Go to miscadmin and click to replication
    2. click on agent on author and select Dispatcher flesh cache
    3. configure path http://localhost:8000/dispatcher/invalidate.cache
  4. How to upgrade V1 Core Component to V2 Core Component ( Proxy component ) ?
    1. We are not using core component directly instead crated proxy component which used refer core component as slingResourceSuperType with version information.
    2. So when you need to update core component make changes in slingResoureceSuperType in proxy component.
  5. How to make Servlet Access Controlled using Default ACL ?
    1. Register servlet with resuourceType instead of path so when access particular resource then it has assigned ACL.
  6. How to prevent sensitive information to stored in Plain text JCR ?
    1. Enabling Encryption Support
    2. Go felix console -> main à Crypto Support
    3. AEM now provides a Configuration Plugin to decrypt configuration properties. This AEM Plugin will automatically decrypt and retrieve the clear text properties.
  7. What are the strategies to ensure test ability of application code ( Junit )?
    1.  
  8. How to automate maven install in Local AEM Instance ?
  9. Workflow that needs to processed only for pages in particular folder ?
    1. Use aem workflow launcher feature which configure path and workflow when to trigger
  10. How to install package on publish instance which was installed in Author ?
    1. Using package manager and click on replicate so it will available to publish or download for author and install to publish using package mangaer.
  11. How to make a page to be cached and refresher in the Dispatcher ?
    1. Activate a page and configure dispatcher flush agent
  12. Tag used within vault package definition to add new path in content package ?
    1. Tags exist in /content/cq:tags/ folder so need to add filter for import and export
    2.  
  13. Available User Service Mapping for the service component ?
    1. loginService is not available in component it is violation of MVC pattern
  14. Maven plugin required to install content package ?
    1. com.day.jcr.vault

 content-package-maven-plugin responsible for installation of package.

Maven build phase ?

  1. Change the label of Sites in AEM ?
    1. Go to siteadmin and change the label of Site but you cannot change name of site with out crx/de
  2. Log to see Exception Stack traces ?
    1. Error.log default if you are not configured custom logger
  3. Dispatcher config to review both publish instances ?
    1. Specify both publish server in renders section as /render1 and /render2
  4. Configure Client Libs only on touch enabled devices ?
  5. How does different bundles that referenced OSGI services ?
  6. When there is new index added, which affects the performance how to debug it ?
  7. How to enable AEM page that returns JSON format data which is used for Single Page Instances ?  
  8. In the Template Editor where we can add the component so that the author cant be deleted ?
  9. Start Script to enable remote debugging ?
  10. How to truncate Request Log File
  11. How to configure replication agent to flush dispatcher cache
  12. How to change the version of the components from V1 Core Component to V2 Core Component
  13. Which Log prints stack traces
  14. How to make Servlet Access Controlled using Default ACL
  15. How to prevent sensitive information to be stored in Plain text JCR
  16. What are the strategies to ensure test ability of application code (Junit )
  17. How to automate maven install in Local AEM Instance
  18. Workflow that needs to processed only for pages in particular folder
  19. How to make a page to be cached and refresher in the Dispatcher
  20. Which tag is used in file vault package to add new path in content package
  21. Available User Service Mapping for the service component
  22. Maven build plugin use