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?
Answer(s): C
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.
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?
Answer(s): B
Option B is the final rendered html output for the code snippet. The code snippet uses the data-sly- list 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.
https://experienceleague.adobe.com/docs/experience-manager-htl/using-htl/htl-block- statements.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?
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.
https://developer.adobe.com/experience-manager/reference- materials/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:1. A centralized Header and Footer2. The ability to create a variation for both the Header and Footer3. Change the Header and Footer for specific time periods4. The ability to restore a previous version for both the Header and Footer What should the developer use to meet the requirements?
Answer(s): D
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.
https://experienceleague.adobe.com/docs/experience- manager-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?
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.
https://experienceleague.adobe.com/docs/experience-manager-learn/spa-editor-overview/spa- overview.html?lang=en#design-models
Post your Comments and Discuss Adobe AD0-E134 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the AD0-E134 content, but please register or login to continue.