Exam4Training

Adobe AD0-E134 Adobe Experience Manager Developer Exam Online Training

Question #1

Which attribute must be present in all filter rules in AEM dispatcher configuration?

  • A . /type
  • B . /selectors
  • C . /url
  • D . /glob

Reveal Solution Hide Solution

Correct Answer: A
Question #2

Which property under /cache on dispatcher.any file identifies the directory where cached files are stored?

  • A . /invalidate
  • B . /statfile
  • C . /docroot
  • D . /cacheroot

Reveal Solution Hide Solution

Correct Answer: C
Question #3

Which environment-specific configuration is used in AEM as a Cloud Service to store private API keys?

  • A . $[env:ENV_VAR_NAME]
  • B . $[env:SECRET_VAR_NAME]
  • C . $[secret:SECRET_VAR_NAME]
  • D . $[secret:ENV_VAR_NAME]

Reveal Solution Hide Solution

Correct Answer: C
C

Explanation:

This syntax allows the developer to reference a secret variable that is stored in the Cloud Manager UI under Environment Details > Variables. The secret variable name must start with a lowercase letter and can contain alphanumeric characters and underscores.

Reference: https://experienceleague.adobe.com/docs/experience-manager-cloud-service/implementing/deploying/configuring-osgi.html?lang=en#environment-specific-configuration

Question #4

A developer has to create a Logger and Writer pair for the company’s application logging.

Which OSGi configurations should the developer use?

  • A . Apache Sling Logging Logger Configuration and Apache Sling Logging Configuration
  • B . Apache Sling Request Logger and Apache Sling Logging Writer Configuration
  • C . Apache Sling Logging Logger Configuration and Apache Sling Logging Writer Configuration

Reveal Solution Hide Solution

Correct Answer: C
C

Explanation:

The Apache Sling Logging Logger Configuration and Apache Sling Logging Writer Configuration are the OSGi configurations that the developer should use to create a Logger and Writer pair for the company’s application logging. The Logger Configuration defines the log level and the log file name for a given logger name or category. The Writer Configuration defines the file size, number of files, and file location for a given log file name.

Reference: https://experienceleague.adobe.com/docs/experience-manager-65/deploying/configuring/configure-logging.html?lang=en#configuring-log-files

Question #5

If multiple configurations for the same PID are applicable, which configuration is applied?

  • A . The last modified configuration is applied.
  • B . The configuration with the highest number of matching run modes is applied.
  • C . The one that occurs first in the repository is applied.
  • D . A configuration factory is created and all configurations are applied.

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

When multiple configurations for the same PID are applicable, the configuration with the highest number of matching runmodes is applied. This is because the runmodes act as a filter to select the most specific configuration for a given environment. If there is a tie between two or more configurations with the same number of matching runmodes, the one that occurs first in the repository is applied.

Reference: https://experienceleague.adobe.com/docs/experience-manager-65/deploying/configuring/configure-runmodes.html?lang=en#configuring-osgi-settings-per-runmode

Question #6

Which configuration/section should be used to resolve the domain name by dispatcher?

  • A . Configuration in vhosts file
  • B . Configuration in filters.any
  • C . Configuration in httpd.conf
  • D . Configuration in DNS

Reveal Solution Hide Solution

Correct Answer: A
Question #7

Which configuration must be applied to enable re-fetching of cached items based on Cache Headers sent by AEM?

  • A . /autolnvalidate true
  • B . /autolnvalidate "1"
  • C . /enableTTLtrue
  • D . /enableTTL "1"

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

The /enableTTL “1” configuration must be applied to enable re-fetching of cached items based on Cache Headers sent by AEM. This configuration enables the Time To Live (TTL) feature of dispatcher, which allows dispatcher to check the Cache-Control and Expires headers of the cached files and re-fetch them from AEM if they are expired.

Reference: https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/configuring/page-invalidation.html?lang=en#time-based-cache-invalidation

Question #8

A developer needs to create a runmode-specific OSGi configuration for an AEM as a Cloud Service implementation.

In which location should the OSGi configuration be created?

  • A . core project, (/core/…/config <runmode>) folder
  • B . ui.config project, (/config/…/config.<runmode>) folder
  • C . all project, (/all/…/config.<runmode>) folder
  • D . ui.apps project (/apps/…/config.<runmode>) folder

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

The ui.config project, (/config/…/config.<runmode>) folder is the location where the OSGi configuration should be created for a runmode-specific configuration for an AEM as a Cloud Service implementation. The ui.config project contains OSGi configurations that are deployed to /apps in the repository. The config.<runmode> folder specifies the runmode for which the configuration is applicable, such as author or publish.

Reference: https://experienceleague.adobe.com/docs/experience-manager-cloud-service/implementing/deploying/configuring-osgi.html?lang=en#project-structure

Question #9

An AEM application wants to set up multi-tenancy using Adobe-recommended best practices and bind multiple configurations to it.

Which of the following options is recommended?

  • A . import org.apache.felix.scr.annotations.Component; @Component(label = "My configuration", metatype = true, factory= true)
  • B . import org.osgi.service.component.annotations.Component; @Component(service = ConfigurationFactory.class)
  • C . import org.osgi.service.metatype.annotations.AttributeDefinition; import org.osgi.service.metatype.annotations.ObjectClassDefinition; @ObjectClassDefinition(name = "My configuration")
  • D . @Component(service = ConfigurationFactory.class) @Designate(ocd = ConfigurationFactorylmpl.Config.class, factory=true)

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

The @Component(service = ConfigurationFactory.class) @Designate(ocd = ConfigurationFactorylmpl.Config.class,factory=true) option is recommended for creating a multi-tenancy configuration and binding multiple configurations to it. This option uses the OSGi R6 annotations to define a component that provides a service of type ConfigurationFactory and designates a class that contains the configuration properties. The factory=true attribute indicates that multiple configurations can be created for this component.

Reference: https://experienceleague.adobe.com/docs/experience-manager-65/deploying/configuring/osgi-configuration-settings.html?lang=en#creating-factory-configurations

Question #10

An AEM application requires LDAP Service integration to synchronize users/groups.

Which two OSGi configuration are required for LDAP integration in AEM? (Select Two.)

  • A . Apache Jackrabbit Oak AuthorizableActionProvider
  • B . Apache Jackrabbit Oak Solr server provider
  • C . Apache Jackrabbit Oak CUG Configuration
  • D . Apache Jackrabbit Oak External Login Module
  • E . Apache Jackrabbit Oak Default Sync Handler

Reveal Solution Hide Solution

Correct Answer: DE
DE

Explanation:

The Apache Jackrabbit Oak External Login Module and Apache Jackrabbit Oak Default Sync Handler are the two OSGi configurations that are required for LDAP integration in AEM. The External Login Module defines how AEM connects to the LDAP server and authenticates users against it. The Default Sync Handler defines how AEM synchronizes users and groups from the LDAP server to the repository.

Reference: https://experienceleague.adobe.com/docs/experience-manager-65/administering/security/ldap-config.html?lang=en#ldap-integration

Question #10

An AEM application requires LDAP Service integration to synchronize users/groups.

Which two OSGi configuration are required for LDAP integration in AEM? (Select Two.)

  • A . Apache Jackrabbit Oak AuthorizableActionProvider
  • B . Apache Jackrabbit Oak Solr server provider
  • C . Apache Jackrabbit Oak CUG Configuration
  • D . Apache Jackrabbit Oak External Login Module
  • E . Apache Jackrabbit Oak Default Sync Handler

Reveal Solution Hide Solution

Correct Answer: DE
DE

Explanation:

The Apache Jackrabbit Oak External Login Module and Apache Jackrabbit Oak Default Sync Handler are the two OSGi configurations that are required for LDAP integration in AEM. The External Login Module defines how AEM connects to the LDAP server and authenticates users against it. The Default Sync Handler defines how AEM synchronizes users and groups from the LDAP server to the repository.

Reference: https://experienceleague.adobe.com/docs/experience-manager-65/administering/security/ldap-config.html?lang=en#ldap-integration

Question #10

An AEM application requires LDAP Service integration to synchronize users/groups.

Which two OSGi configuration are required for LDAP integration in AEM? (Select Two.)

  • A . Apache Jackrabbit Oak AuthorizableActionProvider
  • B . Apache Jackrabbit Oak Solr server provider
  • C . Apache Jackrabbit Oak CUG Configuration
  • D . Apache Jackrabbit Oak External Login Module
  • E . Apache Jackrabbit Oak Default Sync Handler

Reveal Solution Hide Solution

Correct Answer: DE
DE

Explanation:

The Apache Jackrabbit Oak External Login Module and Apache Jackrabbit Oak Default Sync Handler are the two OSGi configurations that are required for LDAP integration in AEM. The External Login Module defines how AEM connects to the LDAP server and authenticates users against it. The Default Sync Handler defines how AEM synchronizes users and groups from the LDAP server to the repository.

Reference: https://experienceleague.adobe.com/docs/experience-manager-65/administering/security/ldap-config.html?lang=en#ldap-integration

Question #10

An AEM application requires LDAP Service integration to synchronize users/groups.

Which two OSGi configuration are required for LDAP integration in AEM? (Select Two.)

  • A . Apache Jackrabbit Oak AuthorizableActionProvider
  • B . Apache Jackrabbit Oak Solr server provider
  • C . Apache Jackrabbit Oak CUG Configuration
  • D . Apache Jackrabbit Oak External Login Module
  • E . Apache Jackrabbit Oak Default Sync Handler

Reveal Solution Hide Solution

Correct Answer: DE
DE

Explanation:

The Apache Jackrabbit Oak External Login Module and Apache Jackrabbit Oak Default Sync Handler are the two OSGi configurations that are required for LDAP integration in AEM. The External Login Module defines how AEM connects to the LDAP server and authenticates users against it. The Default Sync Handler defines how AEM synchronizes users and groups from the LDAP server to the repository.

Reference: https://experienceleague.adobe.com/docs/experience-manager-65/administering/security/ldap-config.html?lang=en#ldap-integration

Question #10

An AEM application requires LDAP Service integration to synchronize users/groups.

Which two OSGi configuration are required for LDAP integration in AEM? (Select Two.)

  • A . Apache Jackrabbit Oak AuthorizableActionProvider
  • B . Apache Jackrabbit Oak Solr server provider
  • C . Apache Jackrabbit Oak CUG Configuration
  • D . Apache Jackrabbit Oak External Login Module
  • E . Apache Jackrabbit Oak Default Sync Handler

Reveal Solution Hide Solution

Correct Answer: DE
DE

Explanation:

The Apache Jackrabbit Oak External Login Module and Apache Jackrabbit Oak Default Sync Handler are the two OSGi configurations that are required for LDAP integration in AEM. The External Login Module defines how AEM connects to the LDAP server and authenticates users against it. The Default Sync Handler defines how AEM synchronizes users and groups from the LDAP server to the repository.

Reference: https://experienceleague.adobe.com/docs/experience-manager-65/administering/security/ldap-config.html?lang=en#ldap-integration

Question #15

Add a LowerCase filter to the current indexes

Reveal Solution Hide Solution

Correct 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 “Cats and Dogs” are treated the same.

Reference: 1 Lucene Analyzers section

Question #16

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
  • B . The number of threads in Apache Felix Jetty Http Service
  • C . Launchers for each workflow
  • D . Maximum Parallel Jobs in OSGI console

Reveal Solution Hide Solution

Correct Answer: D
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

Question #17

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
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: BD
BD

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-block-statements.html?lang=en#use

Question #17

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
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: BD
BD

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-block-statements.html?lang=en#use

Question #17

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
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: BD
BD

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-block-statements.html?lang=en#use

Question #17

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
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: BD
BD

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-block-statements.html?lang=en#use

Question #17

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
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: BD
BD

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-block-statements.html?lang=en#use

Question #17

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
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: BD
BD

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-block-statements.html?lang=en#use

Question #17

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
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: BD
BD

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-block-statements.html?lang=en#use

Question #17

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
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: BD
BD

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-block-statements.html?lang=en#use

Question #17

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
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: BD
BD

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-block-statements.html?lang=en#use

Question #26

Create a Custom Sling Model that overrides the default behavior

Reveal Solution Hide Solution

Correct Answer: C
Question #27

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
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: B
Exit mobile version