A developer needs to implement a service component that should be manually configured by operations to react on operational circumstances. The service component should NOT be active by default. The service has the properties myservice.name (one string value) and myservice.stringValues (a list of the string values) to be configured. The developer needs to use OSGi Metatype annotations to make those properties configurable in the Apache Felix Web Console.
Which set of steps should the developer take to meet these requirements?
A. 1. For the class fields myserviceName and myserviceStringValues, add a @AttributeDefinition annotation each with names set to myservice.name and myservice.stringValues respectively.
2.
Use the @Component annotation with configurationFactory = true on the service component class.
3.
Use the @Service service component class.
4.
Use the activate method of the service component class to get the configuration annotation interface class injected.
B. 1. Create an annotation interface as inner class of the service component and annotate it with @ObjectClassDefinition.
2.
Apply @AttributeDefinition for the methods myservice.name and myservice.stringValues.
3.
Use the @Component annotation with configurationPolicy = ConfigurationPolicy.REQUIRE on the service component.
4.
Use the @Designate annotation to link the service component to the created configuration
annotation interface.
5.
Use the activate method of the service component class to get the configuration annotation interface class injected.
C. 1. Create an annotation interface as inner class of the service component and annotate it with @ObjectClassDefinition.
2.
Apply @AttributeDefinition for the methods myservice_name and myservice_stringValues.
3.
Use the @Component annotation with configurationPolicy = ConfigurationPolicy.REQUIRE on the service component.
4.
Use the @Designate annotation to link the service component to the created configuration
annotation interface.
5.
Use the activate method of the service component class to get the configuration annotation interface class injected.
D. 1. For the class fields myserviceName and myserviceStringValues, add a @Property annotation each with names set to myservice.name and myservice.stringValues respectively.
2.
Use the @Component annotation with configurationFactory = true on the service component class.
3.
Use the @Service service component class.
4.
The configuration is automatically injected into the field by the service component runtime.
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 be prevented.
Which code snippet should a developer use to achieve?
A. Option A
B. Option B
C. Option C
D. Option D
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 has a component foobar that consists of the files listed below: script-a.js
script-b.js
foobar.html
What is the output when this component is rendered?
A. Option A
B. Option B
C. Option C
D. Option D
What is the artifact ID of the maven dependency that contains all core AEM APIs?
A. core-jar
B. api-jar
C. aem-jar
D. uber-jar
One content package of a custom application contains the following content paths.
The server also contains the content path /apps/myproj/configuration that must NOT be touched when installing the package.
Which two filter definitions should a developer use to always update only the contained paths upon installation in the server? (Choose two.)
A. Option A
B. Option B
C. Option C
D. Option D
E. Option E
A developer has a component 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 developer resolve this issue, while taking security into consideration?
A. Change the ACLs for the Client Library.
B. Move the Client Library under /apps/
C. Add the property allowProxy with a boolean value true.
D. Allow the path to the clientlibs on the dispatcher.
A developer creates an OSGi service to access JCR content. Refer to the code snippet from the OSGi service below.
Bundle ID = com.adobe.aem.samples-bundle
Which set of steps should the developer take to make sure that the code works?
A. 1. Create an AEM User called serviceUser with appropriate ACLs.
2.
Modify the Apache Sling Service User Mapper Service Amendment.
3.
Set user.mapping to com.adobe.aem.samples-bundle:sample-service=serviceUser.
B. 1. Create an AEM User called serviceUser with appropriate ACLs.
2.
Modify the Apache Sling Service User Mapper Service.
3.
Set user.default to com.adobe.aem.samples-bundle:sample-service=systemUser.
C. 1. Create a System User called systemUser with appropriate ACLs.
2.
Modify the Apache Sling Service User Mapper Service.
3.
Set user.default to com.adobe.aem.samples-bundle:sample-service=systemUser.
D. 1. Create a System User called systemUser with appropriate ACLs.
2.
Modify the Apache Sling Service User Mapper Service Amendment.
3.
Set user.mapping to com.adobe.aem.samples-bundle:sample-service=systemUser.
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
A developer needs to upgrade existing components (Proxy Components) based on Core Components Version 1(v1) to Core Components Version 2(v2).
How should the developer upgrade to V2 Core Components?
A. Modify the sling:resourceSuperType property on the proxy component to point to V2 Component.
B. Modify the sling:resourceSuperType property on the proxy component to point to V2 Component.
C. Create a new Proxy Component and set sling:resourceType property to V2 Core Component.
D. Proxy Components will be automatically upgraded to the V2 Core Component on AEM Restart.