Adobe Experience Manager Sites Developer AD0-E134 Exam Practice Test

Page: 1 / 14
Total 50 questions
Question 1

Which query parameter needs to be added and set to true to debug a CQ HTML client library in the AEM author instance?



Answer : A

To debug a CQ HTML client library in the AEM author instance, you need to add the query parameter debugClientLibs set to true. This parameter instructs AEM to include additional debugging information for client libraries, making it easier to troubleshoot issues with JavaScript, CSS, and other assets.

Steps to enable client library debugging:

Open the AEM Page: Navigate to the AEM page where you want to debug the client libraries.

Append the Query Parameter: Add ?debugClientLibs=true to the URL. For example:

http://localhost:4502/content/we-retail/us/en.html?debugClientLibs=true

Reload the Page: Refresh the browser page. AEM will now include debugging information for client libraries.

This parameter helps in identifying issues with client library loading, dependencies, and other client-side resources.


Debugging Client Libraries in AEM

Question 2

A developer is working on a project based on core components. The client requests that text pasted inside the Text component should be stripped of all styling and formatting.

The developer needs to override RTE plugin implementation and change the default paste (CTRL+V) behavior.

Which paste option should the developer add to achieve this?



Answer : B

To ensure that text pasted inside the Text component in AEM is stripped of all styling and formatting, you need to override the RTE (Rich Text Editor) plugin implementation and change the default paste behavior. The correct option to achieve this is defaultPasteMode=plaintext.

Steps to configure the RTE plugin for plain text pasting:

Locate the RTE Configuration: Find the existing configuration for the RTE or create a new one in the /apps directory of your AEM project.

Modify the Plugin Configuration: Add or update the configuration to include the defaultPasteMode parameter. The configuration might look something like this:

{

'jcr:primaryType': 'nt:unstructured',

'features': '[text]',

'defaultPasteMode': 'plaintext'

}

Apply the Configuration: Ensure that this configuration is applied to the Text component. This typically involves updating the component dialog or design dialog to reference the updated RTE configuration.

Test the Configuration: In the AEM author instance, open the page with the Text component and paste text using CTRL+V. The pasted text should now be stripped of all styling and formatting, adhering to the plaintext mode.

By setting defaultPasteMode to plaintext, you ensure that the RTE only accepts plain text input, removing any formatting that might come from external sources.


AEM Rich Text Editor (RTE) Documentation

Configuring the Rich Text Editor in AEM

Question 3

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


Question 4

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



Question 5

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 6
Question 7

Which OSGi configuration values can be used in an AEM as a Cloud Service Implementation?



Answer : D

In AEM as a Cloud Service, the OSGi configuration values that can be used include Inline, secret, and environment-specific. These configurations provide flexibility and security for managing environment-specific settings and sensitive information.

Inline Configurations: Inline configurations are directly embedded within the code and are typically used for straightforward configurations.

Secret Configurations: Secret configurations are used to securely store sensitive information, such as passwords and API keys. These configurations are managed separately to ensure security.

Environment-Specific Configurations: Environment-specific configurations allow you to tailor settings for different environments (e.g., development, staging, production) without changing the underlying codebase.

Example of using these configurations:

Inline Configuration:

{

'service.url': 'https://api.example.com'

}

Secret Configuration: Managed through Adobe IMS and not directly embedded in the code.

Environment-Specific Configuration:

{

'runmode': 'dev',

'service.timeout': '30'

}


Managing OSGi Configurations in AEM

Adobe IMS for Secrets Management

Page:    1 / 14   
Total 50 questions