Question 1
A developer wants to write a Java service that will serve some data to the custom component.
Which one of the Maven modules is the place to create this service?
A Java service, which is a backend Java class that encapsulates some business logic or functionality, should be placed in the core Maven module of an AEM project. This module is intended for the Java code that contains OSGi services, servlets, and other Java backend code. By creating the service in the core module, it can be properly compiled, packaged, and deployed as an OSGi bundle within AEM.
