A developer is working on a complex project with multiple bundles. One bundle provides an OSGi service for other bundles.
Which two options are necessary to ensure that the other bundles can reference that OSGi service? (Choose two.)
A. The bundles consuming the service need to import the fully qualified name of the service interface.
B. The service needs to correctly declare metatype information.
C. The bundle providing the service needs to contain a whitelist of allowed consumer bundles.
D. The bundle providing the service needs to contain an adequate SCR descriptor file.
E. The bundle providing the service needs to export the java package of the service interface.
A developer must create a workflow step that assigns a `WorkItem' to the appropriate person based on
who has the least amount work to do.
The group that must perform the action is configured into the workflow.
Which non-deprecated interface should the Java implementation class use to perform the assignment?
A. com.adobe.granite.workflow.exec.ParticipantStepChooser
B. com.day.cq.workflow.exec.ParticipantChooser
C. com.day.cq.workflow.exec.WorkItem
D. com.adobe.granite.workflow.exec.WorkflowData
From which AEM Web Console should a developer access and download full AEM Log Files?
A. Web Console -> System Information
B. Status -> Log files
C. OSGI -> Sing Log Service
D. AEM -> Log files
For each CRX node in the hierarchy, which actions can be configured using the user admin interface?
A. Read, Modify, Create, Delete, Read ACL, Edit ACL, Replicate
B. Read, Write, Read ACL, Edit ACL, Replicate
C. Read, Write, Delete, Edit ACL, Replicate
D. Read, Modify, Create, Delete, Read ACL, Edit ACL
A developer determines that the dispatcher is NOT refreshing the cached page /content/sampleproject/
sample.html after it is updated.
The dispatcher.any contains the following entries:
Refer to the $DOCROOT directory below:
The dispatcher needs to cache the page and refresh it after it gets updated. What action should the developer take to meet these requirements?
A. Remove /statfile or /statfileslevel.
B. Delete the contents of the DOCROOT directory.
C. Change the value of the entry /statfileslevel to "3".
D. Add the entry /0001 { /glob "-.html" /type "allow" } in the /invalidate section.
A custom AEM application is using the PageManager API.
What should a developer add to make the application compile and run correctly in AEM?
A. a maven dependency to AEM uber-jar to the content package
B. a maven dependency to bundle cq-wcm-core to the application bundle
C. a maven dependency to AEM uber-jar to the application bundle
D. a maven dependency to bundle cq-wcm-api to the content package
Too many pages are invalidated in the dispatcher cache when a page is published.
What is most likely causing this issue in the dispatcher configuration?
A. Sticky session are NOT configured properly, resulting in requests being delivered to the wrong server.
B. The level of cache invalidation is NOT appropriate for the published content model.
C. File globbing in the dispatcher configuration is NOT correct.
D. The OS file system permissions are NOT properly configured.
The developer is presented with a component "Component A" which inherits from a component
"Component B".
The dialog of Component A on path ../cq:dialog/../../items looks like:
The dialog of Component B on path ../cq:dialog/../../items looks like:
The requirement 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. Move the align node from Component A to Component B and order them according the requirements.
B. Extend Component B with the functionality of Component A.
C. Add the property sling:orderBefore="description" to the align node.
D. Move all nodes under the item node from Component B to Component A and order them according the requirements.
A service component periodically retrieves content from an external REST interface and saves the information in JCR. The REST endpoint is configured via an OSGi service property. There is one URL for production (runmode prod) and another URL for all other environments.
How should a developer configure the OSGi service?
A. Underneath /apps/
B. Underneath /config/
C. Underneath /apps/
D. Underneath /config/
A developer is working on an HTL script for a custom component. The script has the following
requirements:
This script must list the title of every child page of the current page.
If a child page does not have any children, then its title should link directly to that page.
If a child page has children, then the title of every one of its children should be listed beneath its title.
The title of every grandchild page should link directly to that page. Which HTL script should the developer use to meet these requirements?
A. Option A
B. Option B
C. Option C
D. Option D
A developer wants to consume AEM Page Data in a 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?
A. Add JSON as the default extension in Apache Sling Servlet/Split Resolver and Error Handler Configuration.
B. Invoke the page URL with the extension .json to get the values to construct the required output.
C. Implement a Sling Model Exporter for the components.
D. Create a custom sling event handler to handler JSON requests.
Which environment variable in the AEM start script should a developer modify to enable remote debugging?
A. CQ_HOST
B. CQ_JVM_OPTS
C. CQ_PORT
D. CQ_RUNMODE
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 or more 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?
A. Option A
B. Option B
C. Option C
D. Option D
Which log file should a developer use to search for exception stack traces?
A.
B.
C.
D.
A developer has a component named foobar with the following file: FooBar.java
foobar.html
What is the output when this component is rendered?
A. Option A
B. Option B
C. Option C
D. Option D