Adobe AD0-E134 Practice Test - Questions Answers, Page 2
List of questions
Question 11

A client is having issues with some query results:
• Many of the client's industry terms have the same meaning, and users do not always search the exact wording
• Many users search by typing in short phrases instead of exact keywords, ex:// "cats and dogs"
What index analyzers should the AEM developer recommend?
Explanation:
A Synonym filter can help to map different terms that have the same meaning, such as "cat" and "feline". A LowerCase filter can help to normalize the case of the terms, so that "cats and dogs" and https://www.validexamdumps.com "Cats and Dogs" are treated the same.
Reference: 1 Lucene Analyzers section
Question 12

An AEM server is overloaded with too many concurrently running workflows. The developer decides to reduce the number of concurrent workflows.
What should be configured to reduce the number of concurrent workflows?
Explanation:
Maximum Parallel Jobs is a configuration property that controls how many workflows can run concurrently on an AEM instance. Reducing this value can help to avoid overloading the server with too many workflows.
Reference: Workflow Engine Configuration section
Question 13

A custom component has one dialog field:
The developer needs to implement a Sling Model to perform a business logic on the authored value.
The developer writes the following HTL snippet.
Which two implementations will support this HTL snippet? (Choose two.)
A)
B)
C)
D)
Explanation:
Option B and Option D are two implementations that will support the HTL snippet. Option B uses the
@Model annotation with the adaptables parameter set to Resource.class. This allows the Sling
Model to adapt from a resource object and access its properties using the ValueMap interface.
Option B also uses the @Inject annotation with the name parameter set to "./text" to inject the value of the text property into the text field. Option D uses the @Model annotation with the defaultInjectionStrategy parameter set to OPTIONAL. This allows the Sling Model to use optional injection for all fields and avoid null pointer exceptions if a property is missing. Option D also uses the @Inject annotation without any parameters to inject the value of the text property into the text field, using the field name as the default property name. Reference:
https://sling.apache.org/documentation/bundles/models.html
https://experienceleague.adobe.com/docs/experience-manager-htl/using-htl/htl-blockstatements.html?lang=en#use
Question 14

A developer needs to create a new Title component. The requirements are:
Explanation:
A proxy component is a site-specific component that inherits from a core component and allows customization of the component name, group, dialog, and behavior. A proxy component can refer to any version of the core component by changing the sling:resourceSuperType property. A custom sling model can be used to implement the logic for adding the page title as prefix to the text property. A component template can be used to define the layout of the component.
Reference: 1 Using Core Components section 2 Create Proxy Component in AEM section 3 AEMCreate
Proxy Component section 4 Proxy Components in AEM 6.4 section 5 AEM Proxy Component Pattern and Component Versioning section
Question 15

A developer needs to create sling models for two fields name and occupations. The dialog has two fields, name - a single value field, and occupations - a multi value field.
The following code is included in sling models inherited from interface com.adobe.aem.guides.wknd.core.models.Byline
A)
B)
C)
D)
Explanation:
Option C is the correct implementation for the Sling Model. Option C uses the @Model annotation with the adaptables parameter set to Resource.class. This allows the Sling Model to adapt from a resource object and access its properties using the ValueMap interface. Option C also uses the @Inject annotation with the name parameter set to "./name" and "./occupations" to inject the values of the name and occupations properties into the name and occupations fields. Option C also uses the @Named annotation with the value parameter set to "byline" to specify the name of the Sling Model that can be used in HTL scripts. Reference:
https://sling.apache.org/documentation/bundles/models.html
https://experienceleague.adobe.com/docs/experience-manager-htl/using-htl/htl-blockstatements.html?lang=en#use
Question 16

SPA components are connected to AEM components via the MapTo() method.
Which code should be used to correctly connect an SPA component called ItemList to its AEM equivalent?
Explanation:
The MapTo() method is used to map a SPA component to an AEM component by specifying the sling:resourceType of the AEM component as an argument. The MapTo() method should be called on the SPA component and not on a string. The second argument of the MapTo() method is optional and can be used to provide an edit configuration for the SPA component.
Reference: 1 Map SPA components to AEM components section 2 Developing SPAs for AEM section
Question 17

Refer to the exhibit.
The current page has three children.
What is the final rendered html output for the code snippet?
A)
B)
C)
Explanation:
Option B is the final rendered html output for the code snippet. The code snippet uses the data-slylist block statement to iterate over the child pages of the current page. The data-sly-list statement assigns each child page to a variable named page and provides an index variable named i. The code snippet then uses the data-sly-test block statement to check if the index is odd or even and applies a different CSS class accordingly. The code snippet also uses the data-sly-element block statement to create an HTML element with the name specified by the elementName variable. The code snippet also uses the data-sly-attribute block statement to add an attribute with the name specified by the attrName variable and the value specified by the attrValue variable. The code snippet also uses the data-sly-resource block statement to include a resource with the path specified by the page.path variable and the resourceType specified by the resourceType variable. Reference:
https://experienceleague.adobe.com/docs/experience-manager-htl/using-htl/htl-blockstatements.html?lang=en
Question 18

A developer needs to create a dynamic participant step where the participant is selected automatically at run time.
The developer decides to develop an OSGi service, which needs to implement the com.day.cq.workflow.exec.ParticipantStepChooser interface.
Which method should the developer implement from the com.day.cq.workflow.exec.ParticipantStepChooser interface?
Explanation:
The com.day.cq.workflow.exec.ParticipantStepChooser interface is intended for implementations that will define the participant dynamically. This interface replaces the deprecated com.day.cq.workflow.exec.ParticipantChooser interface. The method getDynamicParticipant returns the dynamically resolved Principal id based on the work item, workflow session and metadata map parameters. Reference: https://developer.adobe.com/experience-manager/referencematerials/ cloud-service/javadoc/com/day/cq/workflow/exec/ParticipantStepChooser.html
Question 19

An AEM application has a Header and Footer authored on every page.
The customer asks for the following:
Explanation:
An experience fragment is a group of one or more components including content and layout that can be referenced within pages. Experience fragments allow authors to create variations for different channels and modify them for specific time periods. Experience fragments also support versioning and restoring previous versions. Reference: https://experienceleague.adobe.com/docs/experiencemanager- 65/authoring/authoring/experience-fragments.html?lang=en
Question 20

AEM SPA integration provides various design models. In an application the developer chooses to use
AEM as a headless CMS without using the SPA Editor SDK framework.
What would be an advantage for this design model?
Explanation:
AEM SPA integration provides various design models for different levels of authoring capabilities and developer control. In the design model where AEM is used as a headless CMS without using the SPA
Editor SDK framework, the developer has full control over the app and can use any SPA framework or library. However, this also means that the content author cannot edit the app using AEM's content authoring experience, the SPA is not compatible with the template editor, and the developer cannot enable authoring in restricted areas of the app. Reference:
https://experienceleague.adobe.com/docs/experience-manager-learn/spa-editor-overview/spaoverview.html?lang=en#design-models
Question