Adobe AD0-E134 Practice Test - Questions Answers, Page 4
List of questions
Question 31

An application development team needs to create a multi-channel application that uses AEM as a headless CMS Which feature should be used to maintain structured data for this application?
Explanation:
A content fragment is a reusable piece of content that can be authored and managed independently from a page. Content fragments are based on structured data models that define the elements and data types of the content. Content fragments can be delivered as JSON using various APIs, such as Assets HTTP API, Content Fragments REST API, or Content Fragments GraphQL API. Content fragments are suitable for creating multi-channel applications that use AEM as a headless CMS.
Reference: https://experienceleague.adobe.com/docs/experience-managerlearn/foundation/headless/introduction-to-headless.html?lang=en
https://experienceleague.adobe.com/docs/experience-manager-65/assets/fragments/contentfragments.html?lang=en
Question 32

The following anchor tag is not resolving:
<a href="item.path" >{item.name}</a>
Upon further inspection the developer notices that the link has no .html appended to the end of the URL
What could be a potential fix for the issue?
A)
B)
C)
D)
Explanation:
Option B is a potential fix for the issue. Option B uses the data-sly-attribute block statement to add the href attribute to the anchor tag. The data-sly-attribute statement uses an expression to append ".html" to the item.path value. This way, the link will have the correct extension and will resolve to the corresponding page. Reference: https://experienceleague.adobe.com/docs/experiencemanager- htl/using-htl/htl-block-statements.html?lang=en#data-sly-attribute
Question 33

A developer needs to create a project based on AEM Project Archetype with a specific AEM as a Cloud Service SDK version on the local environment.
Which two properties must be defined when creating this project? (Choose two.)
Explanation:
The aemVersion property specifies the target AEM version for the project. To create a project based on AEM as a Cloud Service SDK, the value should be set to cloud. The sdkVersion property specifies the AEM as a Cloud Service SDK version to use for local development. To use a specific SDK version, the value should be set to the exact version number, such as 2022.5.7575.20220530T152407Z- 220401. Reference: https://experienceleague.adobe.com/docs/experience-manager-corecomponents/ using/developing/archetype/using.html?lang=en#properties
https://experienceleague.adobe.com/docs/experience-manager-cloudservice/ implementing/developing/aem-as-a-cloud-service-sdk.html?lang=en#sdk-versions
Question 34

In an AEM as a Cloud Service environment, which repository areas are considered as immutable?
Explanation:
In AEM as a Cloud Service environment, the repository areas /apps and /libs are considered as immutable, meaning that they cannot be modified at runtime by any means. These areas contain application code and configuration that are deployed via Cloud Manager and are read-only for security and performance reasons. Any changes to these areas require a new deployment via Cloud Manager. Reference: https://experienceleague.adobe.com/docs/experience-manager-cloudservice/implementing/deploying/overview.html?lang=en#repository-restrictions
https://experienceleague.adobe.com/docs/experience-manager-cloudservice/implementing/developing/aem-project-content-packagestructure.html?lang=en#repository-restrictions
Question 35

On package install content that is already present in the repos must not be overwritten and if not present in the repos it must not be removed.
Which import mode should the developer use?
Explanation:
The merge import mode is used to import content that is already present in the repository without overwriting it and without removing content that is not present in the package. This mode preserves existing content properties and nodes while adding new ones from the package. This mode is useful for incremental updates or initial content seeding. Reference:
https://jackrabbit.apache.org/filevault/vaultfs.html#Import_Modes
https://experienceleague.adobe.com/docs/experience-manager-cloudservice/ implementing/deploying/content-package-import-modes.html?lang=en
Question 36

Which AEM dependency provides APIs for all AEM environments?
A)
B)
C)
D)
Explanation:
Option C is the AEM dependency that provides APIs for all AEM environments. Option C uses the uber-jar dependency with the provided scope and the classifier set to apis. The uber-jar dependency contains all the public Java APIs that are available in AEM. The provided scope indicates that the dependency is not required for runtime, as it is already provided by the AEM platform. The apis classifier indicates that only the API classes are included in the dependency, not the implementation classes. Reference: https://experienceleague.adobe.com/docs/experience-manager-cloudservice/implementing/developing/aem-project-content-package-structure.html?lang=en#projectdependencies
https://helpx.adobe.com/experience-manager/6-4/sites/developing/using/htl/eclipse-setup.html
Question 37

A development team is starting a new AEM project that is going to integrate with the Adobe
Commerce platform. The developer needs to create a new AEM project using the Maven command line interface.
How can the 'mvn -B archetype:generate' command help the developer with the integration between AEM and Adobe Commerce?
Question 38

What is the recommended path to override /libs standard functionality?
Question 39

Which Maven plugin checks if all the requirements declarations made in OSGi bundles are satisfied by the capabilities declarations of other bundles included in the Maven project?
Question 40

An AEM development team is working on a new multi-country application using AEM as a Cloud
Service. A developer has been assigned the task for building the integration with a third-party web service. A secret key is needed to connect with this web service. The website creators will provide this key. The key is different for each type of environment (dev, stage and production)
What is the recommended way to make the secret key available in the AEM application?
Question