The developer is presented with acomponent "Component A" which inherits from a component "Component B".
The dialog of Component A on path ../cq:dialog/../../items looks like:
+ align
- jcr:primaryType="nt:unstructured"
- sling:resourceType="granite/ui/components/coral/foundation/form/select"
- fieldLabel="Align Text"
- name="./align"
The dialog of Component B on path ../cq:dialog/../../items looks like:
+ title
- jcr:primaryType="nt:unstructured"
- sling:resourceType="granite/ui/components/coral/foundation/form/textarea"
- fieldLabel="Title"
- name="./title"
+ description
- jcr:primaryType="nt:unstructured"
- sling:resourceType="granite/ui/components/coral/foundation/form/textarea"
- fieldLabel="Description"
- name="./description"
Therequirement for the dialog is that the *Align Text* field is shown after the *Title* field.
What should the developer do without changing Component B?
A developer running a local AEM instance and working on an AEM project needs to change a largenumber of files locally in filesystem. The developer needs to get the changes uploaded to the local AEM instance to verify changes almost immediately in the browser.
What action should the developer take to most efficiently meet these requirements?
A developer needs to create an OSGi service to run on an Author instance and send out newsletters at periodic intervals. Intervals should be customized using the Web Console Configuration. Concurrent execution must beprevented.
Which code snippet should a developer use to achieve?
How should a developer enable remote debugging of anAEM server without modifying the AEM start script?
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?
After adding new features, a developer’senvironment is experiencing slowness before ultimately running out of memory. The initial log analysis points towards a large number of open sessions.
Which action should the developer take to further monitor the overall session count on this AEM instance?
Two AEM publish instances feed a single Dispatcher.
Which part of the Dispatcher configuration should a developer review to ensure both AEM publishinstances are used?
A developer installs the latest Service pack to a local AEM author instance.
How should the developer install this package on the publish instance?
A developer creates a custom component. The component dialog includes the following two fields:
he component should display the first ‘X’ characters of the text entered in the ‘text’ input where ‘X’ is the number entered in the ‘charLimit’ input. If zero, or no value, is entered in the ‘charLimit’ input then the text shouldbe unaltered. The developer creates the following Sling Model to perform the trancation:
A Null Pointer Exception occurs if NO charLimit values is set in the component dialog.
What should the developer do to resolve this issue?
There are performance, stability, and security issues with an installed AEM instance.
What should a developer do to fix these issues?
A developer wants to change the log level for a custom API.
Which OSGi configuration should the developer modify?
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?
A developer is creating a custom component on the page /latestBlogs.html that needs to list all the titles of the blogs pages under /content/blogs.
How does this component get the list of child pages?
A custom AEMapplication has a run time dependency to a third party OSGi bundle that is NOT included in out-of-the-box AEM. The third party dependency needs to be available for multiple applications and be upgraded separately from the custom AEM application.
How should a developer make sure that the bundle is installed on all environments?