Refer to the following four Client Library Folders.
A developer uses the following:
What is the resulting HTML?
A. Option A
B. Option B
C. Option C
D. Option D
A developer creates Editable Templates based on a custom Page component. The developer wants to leverage the Style System within the Editable Templates to allow authors to switch between the Dark and Light Theme. The Style System dialog is NOT enabled for the site.
What should the developer do to resolve this issue?
A. Define Style Definitions using Page Policy dialog on Editable Template.
B. Create two new client libraries with a dark and light theme and map them to the Page component.
C. Set the sling:resourceSuperType property to core/wcm/components/page/v2/page on the Page component.
D. Create a new dialog for the custom Page components.
A custom AEM application contains Bundle A and Bundle B. Bundle A has a dependency to Bundle B via Import-Package.
How can both bundles be deployed most efficiently across all environments?
A. Use the Felix Web Console to upload the bundles in the correct order.
B. Create one content package per bundle and use a package dependency to ensure installation order.
C. Embed both bundles in one content package and use property `installationOrder' in package properties for correct bundle installation order.
D. Embed both bundles in one content package: the dependency via Import-Package is enough to ensure correct installation.
An application runs specific license checks against certain DAM assets every day. It should send an email to a configured list if it finds warnings, and mark the asset accordingly. A service component that uses the Apache Sling Scheduler Service is created. DAM assets that must NOT be used anymore are hidden using ACLs and the license check must re-check them.
How should a developer obtain a resource resolver that can read and update the DAM assets?
A. Set up a cron job with curl calls with the admin user and use request.getResourse ().getResourceResolver().
B. Create a configuration line in PID com.day.cq.security.ACLSetup for the user that you obtain a session for via ResourceResolverFactory.getResourceResolver(...).
C. Configure the user admin in PID org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl as
user.default and make sure the service user exists and has jcr:read and jcr:write permissions.
D. Create a configuration for PID org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl.amended-damaccess that references a pre-created service user with r/w permissions and use ResourceResolverFactory.getServiceResourceResolver(...).
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 developer needs to ensure that the path /content/
Which import mode should the developer use in the filter definition?
A. update
B. merge
C. replace
D. optional
Which maven plugin is required to install a content package on a local AEM environment using maven?
A. Maven Install Plugin
B. FileVault Package Maven Plugin
C. Content Package Maven Plugin
D. Maven Bundle Plugin
A custom application contains a service component com.proj.ServiceComponent. A developer needs to configure the string value name and integer value intVal. The actual configuration must be deployed using a content package.
What should the developer do to meet these requirements?
A. Option A
B. Option B
C. Option C
D. Option D
A developer running a local AEM instance and working on an AEM project needs to change a large number of files locally in the 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 efficiency meet these requirements?
A. Access CRXDE and upload the files through the interface.
B. Make the changes in CRXDE create a content package, download it, and expand it into the working directory after each change.
C. Install FileVault bundle in the AEM instance and register the local working directory for synchronization.
D. Build a Content Package using maven and deploy it after each change.
A developer creates two custom classes. ClassA has the following code: The developer creates a 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:
Which action must the developer take to see the log message in the same file from both classes?
A. Create separate a log file in the OSGi web console -->Sling --> Log Support for logger com.aem.xyz.
B. Configure custom.log in the OSGi web console --> Sling --> Log Support and replace com.aem.xyz with com.aem.abc.
C. Configure custom.log in the OSGi web console --> Sling --> Log Support and replace logger com.aem.abc with com.aem.
D. Configure custom.log in the OSGi web console --> Sling --> Log Support and replace the package com.aem.abc with com.aem.xyz.