ExamGecko
Home Home / Adobe / AD0-E103

Adobe AD0-E103 Practice Test - Questions Answers, Page 2

Question list
Search
Search

List of questions

Search

Related questions











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?

A.
AEM instances automatically modify the number of transient nodes based on the load balancing.
A.
AEM instances automatically modify the number of transient nodes based on the load balancing.
Answers
B.
Modify the export package manifest header and copy the content package to AEM installation folder.
B.
Modify the export package manifest header and copy the content package to AEM installation folder.
Answers
C.
Select the option MergePreserve for the Access Control Handling drop-down in the Install Package dialog-box.
C.
Select the option MergePreserve for the Access Control Handling drop-down in the Install Package dialog-box.
Answers
D.
Change the value of Save Threshold in the Install Package dialog-box.
D.
Change the value of Save Threshold in the Install Package dialog-box.
Answers
Suggested answer: C

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.
A.
1. For the class fields myserviceName and myserviceStringValues, add a @AttributeDefinition annotation each with names set to myservice.name and myservice.stringValues respectively.
Answers
B.
Use the @Component annotation with configurationFactory = true on the service component class.
B.
Use the @Component annotation with configurationFactory = true on the service component class.
Answers
C.
Use the @Service service component class.
C.
Use the @Service service component class.
Answers
D.
Use the activate method of the service component class to get the configuration annotation interface class injected.
D.
Use the activate method of the service component class to get the configuration annotation interface class injected.
Answers
E.
1. Create an annotation interface as inner class of the service component and annotate it with @ObjectClassDefinition.
E.
1. Create an annotation interface as inner class of the service component and annotate it with @ObjectClassDefinition.
Answers
F.
Apply @AttributeDefinition for the methods myservice.name and myservice.stringValues.
F.
Apply @AttributeDefinition for the methods myservice.name and myservice.stringValues.
Answers
G.
Use the @Component annotation with configurationPolicy = ConfigurationPolicy.REQUIRE on the service component.
G.
Use the @Component annotation with configurationPolicy = ConfigurationPolicy.REQUIRE on the service component.
Answers
H.
Use the @Designate annotation to link the service component to the created configuration annotation interface.
H.
Use the @Designate annotation to link the service component to the created configuration annotation interface.
Answers
I.
Use the activate method of the service component class to get the configuration annotation interface class injected.
I.
Use the activate method of the service component class to get the configuration annotation interface class injected.
Answers
J.
1. Create an annotation interface as inner class of the service component and annotate it with @ObjectClassDefinition.
J.
1. Create an annotation interface as inner class of the service component and annotate it with @ObjectClassDefinition.
Answers
K.
Apply @AttributeDefinition for the methods myservice_name and myservice_stringValues.
K.
Apply @AttributeDefinition for the methods myservice_name and myservice_stringValues.
Answers
L.
Use the @Component annotation with configurationPolicy = ConfigurationPolicy.REQUIRE on the service component.
L.
Use the @Component annotation with configurationPolicy = ConfigurationPolicy.REQUIRE on the service component.
Answers
M.
Use the @Designate annotation to link the service component to the created configuration annotation interface.
M.
Use the @Designate annotation to link the service component to the created configuration annotation interface.
Answers
N.
Use the activate method of the service component class to get the configuration annotation interface class injected.
N.
Use the activate method of the service component class to get the configuration annotation interface class injected.
Answers
O.
1. For the class fields myserviceName and myserviceStringValues, add a @Property annotation each with names set to myservice.name and myservice.stringValues respectively.
O.
1. For the class fields myserviceName and myserviceStringValues, add a @Property annotation each with names set to myservice.name and myservice.stringValues respectively.
Answers
P.
Use the @Component annotation with configurationFactory = true on the service component class.
P.
Use the @Component annotation with configurationFactory = true on the service component class.
Answers
Q.
Use the @Service service component class.
Q.
Use the @Service service component class.
Answers
R.
The configuration is automatically injected into the field by the service component runtime.
R.
The configuration is automatically injected into the field by the service component runtime.
Answers
Suggested answer: C

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.
A.
Define Style Definitions using Page Policy dialog on Editable Template.
Answers
B.
Create two new client libraries with a dark and light theme and map them to the Page component.
B.
Create two new client libraries with a dark and light theme and map them to the Page component.
Answers
C.
Set the sling:resourceSuperType property to core/wcm/components/page/v2/page on the Page component.
C.
Set the sling:resourceSuperType property to core/wcm/components/page/v2/page on the Page component.
Answers
D.
Create a new dialog for the custom Page components.
D.
Create a new dialog for the custom Page components.
Answers
Suggested answer: B

Explanation:

Reference: https://medium.com/adobetech/using-aem-style-system-to-increase-reusability-of-components-8177c5b65c9e

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?

A.
Replace the defaultValue=”0” attribute of the ‘charLimit’ field in the dialog with min=”0”.
A.
Replace the defaultValue=”0” attribute of the ‘charLimit’ field in the dialog with min=”0”.
Answers
B.
Add the @Default annotation to the ‘chatLimit’ variable in the Sling Model.
B.
Add the @Default annotation to the ‘chatLimit’ variable in the Sling Model.
Answers
C.
Replace the defaultValue=”0” attribute of the charLimit field in the dialog with defaultValue=”{Long}0”.
C.
Replace the defaultValue=”0” attribute of the charLimit field in the dialog with defaultValue=”{Long}0”.
Answers
D.
Change the defaultInjectionStrategy of the Truncation Sling Model to DefaultInjectionStrategy.REQUIRED.
D.
Change the defaultInjectionStrategy of the Truncation Sling Model to DefaultInjectionStrategy.REQUIRED.
Answers
Suggested answer: D

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.
A.
Use the Felix Web Console to upload the bundles in the correct order.
Answers
B.
Create one content package per bundle and use a package dependency to ensure installation order.
B.
Create one content package per bundle and use a package dependency to ensure installation order.
Answers
C.
Embed both bundles in one content package and use property ‘installationOrder’ in package properties for correct bundle installation order.
C.
Embed both bundles in one content package and use property ‘installationOrder’ in package properties for correct bundle installation order.
Answers
D.
Embed both bundles in one content package: the dependency via Import-Package is enough to ensure correct installation.
D.
Embed both bundles in one content package: the dependency via Import-Package is enough to ensure correct installation.
Answers
Suggested answer: D

After adding new features, a developer’s environment is experiencing slowness before ultimately running out of memory. The initial log analysis points towards a large number of open sessions.

Which action should the developer take to further monitor the overall session count on this AEM instance?

A.
Run the following command to generate thread dumps jstack -l <pid> >> threaddumps.log, analyze thread dumps to find long running sessions.
A.
Run the following command to generate thread dumps jstack -l <pid> >> threaddumps.log, analyze thread dumps to find long running sessions.
Answers
B.
Go to Web Console > Status > Threads, verify the overall thread count.
B.
Go to Web Console > Status > Threads, verify the overall thread count.
Answers
C.
Go to Tools > Operations > Monitoring. Create a new report based on Number of Active Sessions as metric.
C.
Go to Tools > Operations > Monitoring. Create a new report based on Number of Active Sessions as metric.
Answers
D.
Go to <aem-install>/crx-qiuckstart/logs/strderr/log, use the following command grep -o‘CRXSessionImpl’ strderr.log| wc -l.
D.
Go to <aem-install>/crx-qiuckstart/logs/strderr/log, use the following command grep -o‘CRXSessionImpl’ strderr.log| wc -l.
Answers
Suggested answer: D

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.
A.
@Service annotation is missing in DeveloperInfo.java.
Answers
B.
Interface DeveloperInfo does NOT have any method.
B.
Interface DeveloperInfo does NOT have any method.
Answers
C.
Activator class is NOT implementing DeveloperInfo interface.
C.
Activator class is NOT implementing DeveloperInfo interface.
Answers
D.
The required Maven repository for OSGi is missing.
D.
The required Maven repository for OSGi is missing.
Answers
Suggested answer: C

An online insurance company website has user-generated content that must be replicated in all publish instances.

What action should the developer take to achieve this?

A.
Configure the dispatcher flush agent in publish instance.
A.
Configure the dispatcher flush agent in publish instance.
Answers
B.
Configure reverse replication agents for the author.
B.
Configure reverse replication agents for the author.
Answers
C.
Configure the replication agent in the publish instances.
C.
Configure the replication agent in the publish instances.
Answers
D.
Disable static agent in the author instance.
D.
Disable static agent in the author instance.
Answers
Suggested answer: A

Explanation:

Reference: https://helpx.adobe.com/fi/experience-manager/6-4/sites/deploying/using/replication.html

A developer needs to analyze log messages for custom Java application. The developer writes the following Java class:

The developer creates a custom log named custom.log with a debug level in OSGi web console for Java package com.abc.xyz.

Where should the developer look in the OSGi web console to view the above message?

A.
OSGi -> Log Service and click logs/custom.log
A.
OSGi -> Log Service and click logs/custom.log
Answers
B.
Sling-> Log Support and click logs/custom.log
B.
Sling-> Log Support and click logs/custom.log
Answers
C.
Sling -> Metrics and click logs/custom.log
C.
Sling -> Metrics and click logs/custom.log
Answers
D.
AEM -> Log Support and click logs/custom.log
D.
AEM -> Log Support and click logs/custom.log
Answers
Suggested answer: B

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
A.
com.adobe.granite.workflow.exec.ParticipantStepChooser
Answers
B.
com.day.cq.workflow.exec.ParticipantChooser
B.
com.day.cq.workflow.exec.ParticipantChooser
Answers
C.
com.day.cq.workflow.exec.WorkItem
C.
com.day.cq.workflow.exec.WorkItem
Answers
D.
com.adobe.granite.workflow.exec.WorkflowData
D.
com.adobe.granite.workflow.exec.WorkflowData
Answers
Suggested answer: B

Explanation:

Reference: https://docs.adobe.com/content/help/en/experience-manager-64/developing/extending-aem/extending-workflows/workflows-step-ref.html

Total 92 questions
Go to page: of 10