What is the artifact ID of the maven dependency that contains all core AEM APIs?
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?
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 wants to create a ClientLibrary that will only be included on touch enabled devices.
What action should the developer take to achieve this?
Refer to thefollowing four Client Library Folders.
A developer uses the following:
What is the resulting HTML?
A developer has acomponent located under the path /apps. This component has a Client Library which is directly loaded onto a page. The publish instance loads the page correctly. The dispatcher also loads the page but the Client Library is missing.
How should the developerresolve this issue, while taking security into consideration?
A developer wants to consume AEM Page Data in Single Page Application. The Single Page Application is coded to understand JSON format. Only page content should be exposed through JSON. All the existing components are based on foundation components.
Which change should the developer make in the existing components to support this requirement?
The dependency of an AEM project fails when a developer configures using Apache Maven. Refer to the error information below.
INFO]---------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] ---------------------------------------
[ERROR] /training/core/src/main/java/com/adobe/training/core/listeners/SimpleResourceListener.java:[18,28] package org.apache.sling.api doesnot exist
[ERROR] /training/core/src/main/java/com/adobe/training/core/filters/LoggingFilter.java:[26,28] package org.apache.sling.api does not exist
[ERROR] /training/core/src/main/java/com/adobe/training/core/filters/LoggingFilter.java:[27,31] packageorg.apache.sling.engine does not exist
[ERROR] /training/core/src/main/java/com/adobe/training/core/models/HelloWorldModel.java:[22,37] package org.apache.sling.api.resource does not exist
[ERROR] /training/core/src/main/java/com/adobe/training/core/models/HelloWorldModel.java:[25,33] package org.apache.sling.api.settings does not exist
[ERROR] /training/core/src/main/java/com/adobe/training/core/models/HelloWorldModel.java:[31,13] cannot find symbol
symbol: class SlingSettingsService
location: class com.adobe.training.core.models.HelloWorldModel
What should a developer add to the pom.xml to fixthe Maven build?
A developer needs to analyze log messages forcustom Java application. The developer writes the following Java class:
The developer creates a custom log named custom.log with a debug level in OSGi web console for Java package com.abc.xyz.
Where should the developer look in the OSGi webconsole to view the above message?
A developer creates a custom Client Library named foobar.
This Client Library embeds 5 other Client Libraries and contains 10 JavaScript source files. One of these files, called foo.js, has a bug on line 8which causes an exception. The Client Library is throwing this exception on line 1350 when it is included on a webpage.
How should a developer find the exact line in foo.js where the exception has been thrown?
There are performance, stability, and security issues with an installed AEM instance.
What should a developer do to fix these issues?
A developer is creating a custom component that shows a list of pages. For each page, the following items must be shown:
* Title of the page
* Description of the page
* A button with fixed text “Read more” that must be translatable
All of the above fields must bewrapped in a
The logic for obtaining the list of pages must be reusable for future components.
Which snippet should the developer use to meet these requirements?
A developer is creating a new OSGi bundle com.custom.package.b to expose new services.
com.custom.package.a is already installed and active in the system and has the following package definition:
The system console shows the following package availability:
Bundle com.custom.package.b to be installed has the following packagedefinition:
What will happen when the developer uploads the bundle com.custom.package.b into the system?
A developer creates the following code snippet to implement a simple polling importer to fetch stock prices from anexternal source:
The polling importer needs to fetch stock prices for a specific stock symbol and needs to be triggered every 5 minutes.
Which node structure should the developer create in CRX to make sure that the code shown is executed successfully?