A developer is writing a unit test for a service that depends on a query of nodes inside the JCR.
What is the correct approach to unit testing the service?
Answer : A
A developer is debugging an issue where a Sling Model is not properly adapting to the resource. Upon
investigation, the developer notices the following Sling Model code:
@Model(adaptables = Resource.class)
public class MyCustomModel {

}
What is causing the issue?
Answer : C
Given the following error:
[ERROR] org.acme:mybundle:0.0.1-SNAPSHOT: Bundle org.acme:mybundle:0.0.1-SNAPSHOT is exporting package
org.acme.foo without a version.
What are the appropriate troubleshooting steps for addressing this error?
Answer : C
Which tool is commonly used to manage front-end dependencies and automate tasks like bundling, minification, and transpilation in an AEM project?
Answer : A
What is the correct way to implement the OSGi service class for this interface?
public interface SimpleService {
String getMessage();
}
A)
@Component(service = SimpleService.class, immediate = true)
public class SimpleServiceImpl extends SimpleService {
@Override
public String getMessage() {
return "Hello from SimpleService!";
}
}
B)
@Component(service = MySimpleService.class, immediate = true)
public class SimpleServiceImpl implements SimpleService {
@Override
public String getMessage() {
}
}
C)
@Component(service = MySimpleService.class, immediate = true)
public class SimpleServiceImpl implements SimpleService {
@Override
public String getMessage() {
return "Hello from SimpleService!";
}
}
D)
@Component(service = SimpleService.class, immediate = true)
public class SimpleServiceImpl implements SimpleService {
@Override
public String getMessage() {
return "Hello from SimpleService!";
}
}
Answer : D
An Adobe Experience Manager team is using an additional DEV environment in Adobe Experience Manager as a Cloud Service as their UAT env. An Adobe Experience Manager architect is asked to configure a dedicated url endpoint to be used as preview service for the same environment.
Which configuration will accomplish this task?
Answer : B
Which action is typically performed by a replication agent in AEM?
Answer : A