A custom AEM application contains a service component that needs to access the JCR repository within the activate method. The activate method usesResourceResolverFactory.getServiceResourceResolver(...) without specifying a sub service name.
What should a developer do to make sure the user service mapping for the service component is available?
Correct Answer:B
A developer creates two custom classes. ClassA has the following code: package com.aem.abc;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory; public class ClassA {
private static final Logger logger = LoggerFactory.getLogger(this.getClass()); public void classAMethod() {
logger.debug("Message from Class A method");
}
}
The developer createsa custom log custom.log with debug level in OSGi sling log support for the Java package com.aem.abc. The developer adds another class ClassB with the following code:
package com.aem.xyz; import org.slf4j.Logger;
importorg.slf4j.LoggerFactory;
public class ClassB {
private static final Logger logger = LoggerFactory.getLogger(this.getClass()); public void classBMethod() {
logger.debug("Message from Class B method");
}
}
Which action mustthe developer take to see the log messages in the same file from both classes?
Correct Answer:D
There is a config file package.myClass.config.factory-myApp.xml – what is true? (Choose two)
Correct Answer:C
A developer is working on a dialog for a contact list component. The dialog has the following requirements:
* 1. The list of contacts must include one ormore entries.
* 2. Contact details must include a full name.
* 3. Contact details must include an email address
* 4. Contact details can optionally include a short bio
* 5. Authors need to be able to rearrange the contacts in the list
Which dialog configuration should the developer use to meet all of these requirements?
Correct Answer:A
A developer needs to change the label "Sites" in the navigation of AEM author to "Websites". Which action should the developer take to achieve this?
Correct Answer:B