ExamGecko
Home Home / Adobe / AD0-E134

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

Question list
Search
Search

List of questions

Search

Related questions











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?

A.
1. Add a Mapping filter to the current indexes
A.
1. Add a Mapping filter to the current indexes
Answers
B.
Add a Stop filter to the current indexes
B.
Add a Stop filter to the current indexes
Answers
C.
1. Tokenize the current indexes with a Keyword tokenizer
C.
1. Tokenize the current indexes with a Keyword tokenizer
Answers
D.
Add a Mapping filter to the current indexes
D.
Add a Mapping filter to the current indexes
Answers
E.
1. Add a Synonym filter to the current indexes
E.
1. Add a Synonym filter to the current indexes
Answers
F.
Add a Stop filter to the current indexes
F.
Add a Stop filter to the current indexes
Answers
G.
1. Add a Synonym filter to the current indexes
G.
1. Add a Synonym filter to the current indexes
Answers
H.
Add a LowerCase filter to the current indexes
H.
Add a LowerCase filter to the current indexes
Answers
Suggested answer: D

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

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?

A.
The number of threads in Scheduler
A.
The number of threads in Scheduler
Answers
B.
The number of threads in Apache Felix Jetty Http Service
B.
The number of threads in Apache Felix Jetty Http Service
Answers
C.
Launchers for each workflow
C.
Launchers for each workflow
Answers
D.
Maximum Parallel Jobs in OSGI console
D.
Maximum Parallel Jobs in OSGI console
Answers
Suggested answer: D

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

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)

A.
Option A
A.
Option A
Answers
B.
Option B
B.
Option B
Answers
C.
Option C
C.
Option C
Answers
D.
Option D
D.
Option D
Answers
Suggested answer: B, 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

A developer needs to create a new Title component. The requirements are:

A.
The layout must be the same as the Title core component
A.
The layout must be the same as the Title core component
Answers
B.
The text property must have the page title as prefix (e.g., Page Title - <component text>)
B.
The text property must have the page title as prefix (e.g., Page Title - <component text>)
Answers
C.
The component must be reusableWhich approach is recommended?
C.
The component must be reusableWhich approach is recommended?
Answers
D.
D.
Answers
E.
Create a Proxy Component of Title core component
E.
Create a Proxy Component of Title core component
Answers
F.
Create a Custom Sling Model that overrides the default behavior
F.
Create a Custom Sling Model that overrides the default behavior
Answers
G.
Customize the component templateB, 1. Create a custom component from scratch
G.
Customize the component templateB, 1. Create a custom component from scratch
Answers
H.
Create a Custom Sling Model for the component that follows the requirement
H.
Create a Custom Sling Model for the component that follows the requirement
Answers
I.
Create a Model Exporter
I.
Create a Model Exporter
Answers
J.
J.
Answers
K.
Create a Proxy Component from Title core component
K.
Create a Proxy Component from Title core component
Answers
L.
Create a Custom Sling Model that overrides the default behavior
L.
Create a Custom Sling Model that overrides the default behavior
Answers
Suggested answer: A

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

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)

A.
Option A
A.
Option A
Answers
B.
Option B
B.
Option B
Answers
C.
Option C
C.
Option C
Answers
D.
Option D
D.
Option D
Answers
Suggested answer: C

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

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?

A.
('project/components/content/itemList,).MapTo(ltemList,ltemListEditConfig);
A.
('project/components/content/itemList,).MapTo(ltemList,ltemListEditConfig);
Answers
B.
MapToCproject/cornponents/content/itemList^ltemListJtemListEditConfig);
B.
MapToCproject/cornponents/content/itemList^ltemListJtemListEditConfig);
Answers
C.
ItemList.MapToCproject/components/content/itemList1);
C.
ItemList.MapToCproject/components/content/itemList1);
Answers
D.
MapTo(ltemList)('project/components/content/itemList,,ltemListEditConfig);
D.
MapTo(ltemList)('project/components/content/itemList,,ltemListEditConfig);
Answers
Suggested answer: C

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

Refer to the exhibit.

The current page has three children.

What is the final rendered html output for the code snippet?

A)

B)

C)

A.
Option A
A.
Option A
Answers
B.
Option B
B.
Option B
Answers
C.
Option C
C.
Option C
Answers
Suggested answer: B

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

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?

A.
String getParticipant(Workltem workltem, WorkflowSession workflowSession, MetaDataMap metaDataMap)
A.
String getParticipant(Workltem workltem, WorkflowSession workflowSession, MetaDataMap metaDataMap)
Answers
B.
void getParticipant(Workltem workltem, WorkflowSession workflowSession, MetaDataMap metaDataMap)
B.
void getParticipant(Workltem workltem, WorkflowSession workflowSession, MetaDataMap metaDataMap)
Answers
C.
String getDynamicParticipant(Workltem workltem, WorkflowSession workflowSession,MetaDataMap metaDataMap)
C.
String getDynamicParticipant(Workltem workltem, WorkflowSession workflowSession,MetaDataMap metaDataMap)
Answers
D.
void getDynamicParticipant(Workltem workltem, WorkflowSession workflowSession,MetaDataMap metaDataMap)
D.
void getDynamicParticipant(Workltem workltem, WorkflowSession workflowSession,MetaDataMap metaDataMap)
Answers
Suggested answer: C

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

An AEM application has a Header and Footer authored on every page.

The customer asks for the following:

A.
A centralized Header and Footer
A.
A centralized Header and Footer
Answers
B.
The ability to create a variation for both the Header and Footer
B.
The ability to create a variation for both the Header and Footer
Answers
C.
Change the Header and Footer for specific time periods
C.
Change the Header and Footer for specific time periods
Answers
D.
The ability to restore a previous version for both the Header and FooterWhat should the developer use to meet the requirements?
D.
The ability to restore a previous version for both the Header and FooterWhat should the developer use to meet the requirements?
Answers
E.
Custom component
E.
Custom component
Answers
F.
Content fragment
F.
Content fragment
Answers
G.
Static template
G.
Static template
Answers
H.
Experience fragment
H.
Experience fragment
Answers
Suggested answer: D

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

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?

A.
The content author can edit the app using AEM's content authoring experience.
A.
The content author can edit the app using AEM's content authoring experience.
Answers
B.
The developer has full control over the app.
B.
The developer has full control over the app.
Answers
C.
The SPA is compatible with the template editor
C.
The SPA is compatible with the template editor
Answers
D.
The developer keeps control over the app by only enabling authoring in restricted areas of the app
D.
The developer keeps control over the app by only enabling authoring in restricted areas of the app
Answers
Suggested answer: B

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

Total 50 questions
Go to page: of 5