Adobe Experience Manager Sites Developer Professional AD0-E123 Exam Practice Test

Page: 1 / 14
Total 50 questions
Question 1

A developer wants to build an AEM project with a specific version. Which property on Maven would be used for this purpose9



Answer : B

In a Maven project, the <version> property is used to specify the version of the project itself. This version can include the version of the AEM project being built if that's the convention used in the project's versioning strategy. It's typically specified in the pom.xml file at the root of the project and is inherited by all the modules of the project unless they specify a different version locally in their respective pom.xml files.


Question 2

A developer needs to use AEM Core Components in production mode (without sample content). The developer would like to do this without needing to download and install the core components before using them.

Which AEM version would the developer use?



Answer : C

AEM as a Cloud Service includes the latest AEM features out-of-the-box, including AEM Core Components, which are production-ready without the need for additional downloads or installations of sample content. This version of AEM has a continuous delivery model, ensuring that the most up-to-date features and components are readily available.

Option A, Version 6.3, is incorrect because this version would require the manual download and installation of core components.

Option B, Adobe Managed Services, is not a version of AEM, but rather a hosting option that could include various versions of AEM.


Question 3

In an AEM as a Cloud Service environment, a client needs a feature to be able to explicitly clear a dispatcher cache of required resources.

Which approach is preferred to create this feature?



Answer : B

In an AEM as a Cloud Service environment, the preferred approach to clear dispatcher cache of required resources is to use the Replication API along with a replication flush agent. This method allows for programmatic clearing of the cache and is the standard way of invalidating cached content so that the dispatcher can retrieve fresh content from the publish instance.

Option A, 'Enable the explicit cache invalidation feature in cloud manager,' is not a standard feature available in Cloud Manager.

Option C, 'Create a servlet, which will make an HTTP request to the dispatcher,' is not advisable as it bypasses the recommended AEM replication and flushing mechanisms and could lead to inconsistencies.


Question 4

Which two options are included in the AEM service pack release notes? (Choose two.)



Answer : A, B

AEM service pack release notes typically include information that helps users understand the changes that the service pack will bring to their AEM instance. These release notes commonly include:

A) Deprecated features - This section informs users about the features that are being deprecated with the current release and guides them on migrating away from deprecated features to the recommended alternatives.

B) Known issues - This section provides information about any issues or bugs that are known at the time of the release, which might not yet be fixed. It often includes workarounds for these issues if they are available.

Option C, 'Next service pack release date,' is not typically included because release dates are subject to change and are usually communicated through official channels closer to the actual release.

Option D, 'Download link to AEM jar,' is not included in the release notes but is typically available through the Adobe Software Distribution site or Cloud Manager for AEM as a Cloud Service.


Question 5

A developer is using a Sling Model to apply some business logic to the values stored in the JCR before outputting them to the page, and all injected fields are optional for this model.

What is the proper way to apply this behavior on the class level?



Answer : A

In Sling Models, the @DefaultInjectionStrategy annotation is used to specify the strategy for injecting fields into the model. When setting it to DefaultInjectionStrategy.OPTIONAL, it indicates that all injected fields in the Sling Model are optional and the model will not fail to instantiate if a field cannot be injected. This is a class-level annotation that affects the default injection behavior of all fields within the Sling Model.

Option B is incorrect because requiredInjectionStrategy is not a valid annotation property in Sling Models.

Option C is incorrect because injectionStrategy is not specified at the class level; it is used on the field level with the @Inject annotation.


Question 6

A developer needs to produce various content fragments depending on some dynamic names and decides to use JAVA code.

Which code snippet should be used to create a new content fragment?



Answer : C

To create new content fragments programmatically in AEM, a developer would typically use an API provided by AEM for content fragment operations. Among the options given, FragmentTemplate.createFragment() seems to be the most fitting API method call, as it implies the use of a template to create a fragment. In practice, the Content Fragment Java API provides methods to create and manage content fragments in AEM by interacting with the underlying JCR (Java Content Repository). However, without specific API documentation, I'm relying on provided patterns that align with typical AEM Java API usage.


Question 7

A developer has created a custom workflow model which includes a JAVA-based custom process step. During the creation of this custom process step, some data has been saved in metadata programmatically for subsequent workflow steps.

Which code snippet can be used to save this metadata in JAVA code7



Answer : C

When working with custom workflow steps in AEM, metadata associated with the workflow session can be programmatically accessed and manipulated. The MetaDataMap object serves as a container for this data. The correct way to access and modify this metadata in Java would be:

Option C, MetaDataMap wfd = WorkItem.getWorkflow().getWorkflowData().getMetaDataMap(); wfd.put('mykey', 'My Step Value'); This snippet correctly retrieves the MetaDataMap from the WorkflowData of the current Workflow session. It then uses the put method to store a new key-value pair, where 'mykey' is the key and 'My Step Value' is the value to be saved.

Options A and B do not properly chain the method calls to access the MetaDataMap associated with the current workflow session and are therefore incorrect.


Page:    1 / 14   
Total 50 questions