Which log file contains AEM application request and response entries?
A. response.log
B. request.log
C. history.log
D. audit.log
A developer wants to extend AEM Core Components to create a custom Carousel Component. How should the developer extend the Core Components?
A. Make changes to the original component and assign a component group.
B. Use the sling:resourceSuperType property to point to the core component.
C. Use the sling:resourceType property to point to the core component.
D. Copy the Core Carousel component to /apps/
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.
An OSGi bundle Activator.java is registered through a service DevelopInfo.java DeveloperInfo.java
Activator.java
Maven install generates an error during deployment. Refer to the error information below:
Which action should the developer take to resolve the build error?
A. @Service annotation is missing in DeveloperInfo.java.
B. Interface DeveloperInfo does NOT have any method.
C. Activator class is NOT implementing DeveloperInfo interface.
D. The required Maven repository for OSGi is missing.
Refer to the following Client Library node structure.
The js.txt looks like
The JavaScript is NOT present in the Client Library when it is loaded. What should a developer do to resolve this issue?
A. Add #base=js as the first line in the js.txt file.
B. Change the js folder to a Client Library node and add the property categories="[clientlibs.example]".
C. Split the js and css into 2 Client Libraries since they can't be in the same Client Library.
D. Change the js folder to a Client Library node and embed it on the clientlibs node.
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 creates an editable template with a Layout Container. The developer needs to restrict the Layout Container to just one column layout.
What should the developer do to the editable template to enforce this restriction?
A. Using Template Editor, set the responsive settings to 1 column for Layout Container Policy.
B. Add responsive column control component to the template and set column type to 1.
C. Overlay wcm.foundation.components.page.responsive Client Library and set @max_col to 1.
D. Using Template Editor, lock the Structure Component for the template.
Two AEM publish feed a single Dispatcher.
Which part of the Dispatcher configuration should a developer review to ensure both AEM publish instance are used?
A. virtualhosts
B. cache
C. filter
D. farms
A customer bundle of an application is in state "Installed" after deploying it with Maven.
What should a developer do to change it to state "Active"?
A. Use the "Update" action for the bundle in the Apache Felix Web Console.
B. Use the "Start" action for the bundle in the Apache Felix Web Console.
C. Reinstall the content package using the package manager.
D. Ensure all OSGi requirements are met and re-deploy using Maven.
A developer needs to configure sets of values according to the following parameters: Varies for different staging environments Varies for different content paths Differs between author and publish
Which implementation strategy should the developer use to meet these requirements?
A. A custom cloud configuration
B. A context aware configuration with buckets using an OSGi configuration
C. One OSGi configuration for the set of values with runmodes
D. A JCR property at the content root node of the site with inheritedPageProperties