Adobe Experience Manager Sites Developer AD0-E134 Exam Questions

Page: 1 / 14
Total 50 questions
Question 1

A developer has multiple LDAP Authentication providers. The user is not required to pass the authentication test of the Authentication provider

* If authentication succeeds, control is returned to the caller; no subsequent Authentication provider down the list Is executed.

* If authentication fails, authentication continues down the list of providers.

What should be the JAAS Control flag value in Apache Jackrabbit Oak External Login Module configuration?



Answer : A

The JAAS Control flag SUFFICIENT is used when you have multiple LDAP authentication providers and you want the following behavior:

Immediate Return on Success:

If authentication succeeds with the current provider, control is returned to the caller immediately, and no subsequent providers in the list are executed.

This is efficient and reduces unnecessary processing if a user's credentials are successfully authenticated by one of the initial providers.

Continue on Failure:

If authentication fails with the current provider, the authentication process continues down the list of providers until a successful authentication occurs or all providers are exhausted.

This ensures that all available providers are tried before authentication is ultimately denied.

The SUFFICIENT control flag is thus well-suited for configurations where multiple authentication providers are used, and only one successful authentication is needed to grant access.


Apache Jackrabbit Oak Documentation

JAAS Control Flags

Question 2

Which practice should be used to push a code fix to make it into the current release candidate?



Answer : D

To push a code fix into the current release candidate, the best practice is to cherry-pick the fix commit into the release candidate branch. Cherry-picking allows you to apply specific changes from one branch to another, ensuring that only the necessary fixes are included without introducing unrelated changes.

Here's how to cherry-pick a commit:

Identify the Commit: Locate the commit hash of the fix you need to apply. This can be found in your version control system (e.g., Git).

Checkout the Release Candidate Branch:

git checkout release-candidate-branch

Cherry-pick the Commit:

git cherry-pick <commit-hash>

Resolve Conflicts (if any): If there are conflicts, resolve them manually and then continue the cherry-pick process:

git add <resolved-files>

git cherry-pick --continue

Test the Changes: Ensure that the changes are tested thoroughly in the release candidate environment to confirm the fix works as expected.

Push the Changes:

git push origin release-candidate-branch

Cherry-picking ensures that only the required changes are applied to the release candidate, maintaining the stability and integrity of the codebase.


Git Cherry-pick Documentation

Question 3

A developer has to create a Logger and Writer pair for the company's application logging. Which OSGi configurations should the developer use?



Answer : C

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 4

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?



Answer : D

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.


Question 5

Which option should be used to synchronize user data across publish servers in a publish farm?



Answer : A

Sling Content Distribution is a feature that allows synchronizing user data across publish servers in a publish farm. Sling Content Distribution uses agents to distribute content from one instance to another using a publish-publish topology. Sling Content Distribution can be configured to synchronize user data under /home/users and /home/groups paths, as well as their ACLs. Reference: https://experienceleague.adobe.com/docs/experience-manager-65/administering/security/sync.html?lang=en https://experienceleague.adobe.com/docs/experience-manager-learn/sites/deploying/sling-content-distribution.html?lang=en


Question 6

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

Which method should be used to used to represent this model in HTL?

A)

B)

C)

D)



Answer : C

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


Question 7

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



Answer : C

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


Page:    1 / 14   
Total 50 questions