Free AD0-E116 Exam Braindumps (page: 12)

Page 11 of 24

A developer wants to create a ClientLibrary that will only be included on touch enabled devices.

What action should the developer take to achieve this?

  1. Add the line "#base=touch" to the js.txt and css.txt files in the Client Library Folder
  2. Pass the parameter user-agent='touch' when referencing the Client Library
  3. Set the channels property on the Client Library Folder to "touch"
  4. Create a resource folder called "touch" under the Client Library Folder

Answer(s): C



A developer needs to implement a header component for a website. The component has the following requirements:

- The component should be configured once on the page highest in the hierarchy.

- The header component on pages lower in the hierarchy should look the same and show the same data.

- If necessary, the configuration can be overwritten on a child page.

- The component should show a list of links that are configured in the header component.

Which code snippet for returning the list of pages should the developer use?

  1. "public String[] getHeaderLinks(Page page) {
    final Resource pageContent = page.getContentResource(); final ComponentInheritanceValueMap properties
    =ComponentInheritanceValueMap(pageContent);
    return properties.get(HEADER_PAGE_LIST, String[].class); }"
  2. "public String[] getHeaderLinks(Resource componentResource) { final ComponentInheritanceValueMap properties
    =componentResource.adaptTo(ComponentInheritanceValueMap.class); return properties.getInherited(HEADER_PAGE_LIST, String[].class); }"
  3. "public String[] getHeaderLinks(Resource componentResource) { final HierarchyNodeInheritanceValueMap properties =new HierarchyNodeInheritanceValueMap (componentResource); return properties.getInherited(HEADER_PAGE_LIST, String[].class); }"
  4. "public String[] getHeaderLinks(Resource componentResource) { final HierarchyNodeInheritanceVauleMap properties = componentResource.adaptTo(HierarchyNodeInheritanceVauleMap.class); return properties.getInherited(HEADER_PAGE_LIST, String[].class); }"

Answer(s): C



A custom AEM application is using the PageManager API.

What should a developer add to make the application compile and run correctly in AEM?

  1. a maven dependency to AEM uber-jar to the content package
  2. a maven dependency tobundle cq-wcm-core to the application bundle
  3. a maven dependency to AEM uber-jar to the application bundle
  4. a maven dependency to bundle cq-wcm-api to the content package

Answer(s): C



A developer is creating a custom component that shows a list of pages. For each page, the following items must be shown:

* Title of the page

* Description of the page
* A button with fixed text "Read more" that must be translatable

All of the above fields must bewrapped in a <div> tag.

The logic for obtaining the list of pages must be reusable for future components.

Which snippet should the developer use to meet these requirements?



  1. Option A
  2. Option B
  3. Option C
  4. Option D

Answer(s): C

Explanation:

https://docs.adobe.com/content/help/en/experience-manager- htl/using/htl/block-statements.html






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

AD0-E116 Discussions & Posts