Free AD0-E103 Exam Braindumps (page: 5)

Page 4 of 24

A developer creates Editable Templates based on a custom Page component. The developer wants to leverage the Style System within the Editable Templates to allow authors to switch between the Dark and Light Theme. The Style System dialog is NOT enabled for the site.
What should the developer do to resolve this issue?

  1. Define Style Definitions using Page Policy dialog on Editable Template.
  2. Create two new client libraries with a dark and light theme and map them to the Page component.
  3. Set the sling:resourceSuperType property to core/wcm/components/page/v2/page on the Page component.
  4. Create a new dialog for the custom Page components.

Answer(s): B


Reference:

https://medium.com/adobetech/using-aem-style-system-to-increase-reusability-of-components-8177c5b65c9e



A developer creates a custom component. The component dialog includes the following two fields:


The component should display the first ‘X’ characters of the text entered in the ‘text’ input where ‘X’ is the number entered in the ‘charLimit’ input. If zero, or no value, is entered in the ‘charLimit’ input then the text should be unaltered. The developer creates the following Sling Model to perform the trancation:


A Null Pointer Exception occurs if NO charLimit values is set in the component dialog. What should the developer do to resolve this issue?

  1. Replace the defaultValue=”0” attribute of the ‘charLimit’ field in the dialog with min=”0”.
  2. Add the @Default annotation to the ‘chatLimit’ variable in the Sling Model.
  3. Replace the defaultValue=”0” attribute of the charLimit field in the dialog with defaultValue=”{Long} 0”.
  4. Change the defaultInjectionStrategy of the Truncation Sling Model to
    DefaultInjectionStrategy.REQUIRE

Answer(s): D



A custom AEM application contains Bundle A and Bundle B. Bundle A has a dependency to Bundle B via Import-Package. How can both bundles be deployed most efficiently across all environments?

  1. Use the Felix Web Console to upload the bundles in the correct order.
  2. Create one content package per bundle and use a package dependency to ensure installation order.
  3. Embed both bundles in one content package and use property ‘installationOrder’ in package properties for correct bundle installation order.
  4. Embed both bundles in one content package: the dependency via Import-Package is enough to ensure correct installation.

Answer(s): D



After adding new features, a developer’s environment is experiencing slowness before ultimately running out of memory. The initial log analysis points towards a large number of open sessions.
Which action should the developer take to further monitor the overall session count on this AEM instance?

  1. Run the following command to generate thread dumps jstack -l <pid> >> threaddumps.log, analyze thread dumps to find long running sessions.
  2. Go to Web Console > Status > Threads, verify the overall thread count.
  3. Go to Tools > Operations > Monitoring. Create a new report based on Number of Active Sessions as metric.
  4. Go to <aem-install>/crx-qiuckstart/logs/strderr/log, use the following command grep -o ‘CRXSessionImpl’ strderr.log| wc -l.

Answer(s): D






Post your Comments and Discuss Adobe AD0-E103 exam with other Community members:

AD0-E103 Discussions & Posts