Adobe AD0-E103 Exam Practice Questions (P. 3)
- Full Access (92 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #11
A developer is installing a content package with the package manager. The developer needs to restrict the approximate number of nodes in a batch that is saved to persistent storage in one transaction.
How should the developer modify the number of transient nodes to be triggered until automatic saving?
How should the developer modify the number of transient nodes to be triggered until automatic saving?
- AAEM instances automatically modify the number of transient nodes based on the load balancing.
- BModify the export package manifest header and copy the content package to AEM installation folder.
- CSelect the option MergePreserve for the Access Control Handling drop-down in the Install Package dialog-box.
- DChange the value of Save Threshold in the Install Package dialog-box.
Correct Answer:
C
C
send
light_mode
delete
Question #12
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?
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?
- A1. 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.
- B1. 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.
- C1. 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.
- D1. 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.
Correct Answer:
C
C
send
light_mode
delete
Question #13
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?
What should the developer do to resolve this issue?
- ADefine Style Definitions using Page Policy dialog on Editable Template.
- BCreate two new client libraries with a dark and light theme and map them to the Page component.
- CSet the sling:resourceSuperType property to core/wcm/components/page/v2/page on the Page component.
- DCreate a new dialog for the custom Page components.
Correct Answer:
B
Reference:
https://medium.com/adobetech/using-aem-style-system-to-increase-reusability-of-components-8177c5b65c9e
B
Reference:
https://medium.com/adobetech/using-aem-style-system-to-increase-reusability-of-components-8177c5b65c9e
send
light_mode
delete
Question #14
A developer creates a custom component. The component dialog includes the following two fields:

The component should display the first "˜X' characters of the text entered in the "˜text' input where "˜X' is the number entered in the "˜charLimit' input. If zero, or no value, is entered in the "˜charLimit' input then the text should be unaltered. The developer creates the following Sling Model to perform the trancation:

A Null Pointer Exception occurs if NO charLimit values is set in the component dialog.
What should the developer do to resolve this issue?

The component should display the first "˜X' characters of the text entered in the "˜text' input where "˜X' is the number entered in the "˜charLimit' input. If zero, or no value, is entered in the "˜charLimit' input then the text should be unaltered. The developer creates the following Sling Model to perform the trancation:

A Null Pointer Exception occurs if NO charLimit values is set in the component dialog.
What should the developer do to resolve this issue?
- AReplace the defaultValue="0" attribute of the "˜charLimit' field in the dialog with min="0".
- BAdd the @Default annotation to the "˜chatLimit' variable in the Sling Model.
- CReplace the defaultValue="0" attribute of the charLimit field in the dialog with defaultValue="{Long}0".
- DChange the defaultInjectionStrategy of the Truncation Sling Model to DefaultInjectionStrategy.REQUIRED.
Correct Answer:
D
D
send
light_mode
delete
Question #15
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?
How can both bundles be deployed most efficiently across all environments?
- AUse the Felix Web Console to upload the bundles in the correct order.
- BCreate one content package per bundle and use a package dependency to ensure installation order.
- CEmbed both bundles in one content package and use property "˜installationOrder' in package properties for correct bundle installation order.
- DEmbed both bundles in one content package: the dependency via Import-Package is enough to ensure correct installation.
Correct Answer:
D
D
send
light_mode
delete
All Pages