Free AD0-E116 Exam Braindumps
Adobe Experience Manager Sites Developer Expert Questions 41–45 (page: 10)

Updated On: 9-Feb-2026

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



A developer has a component named foobar with the following file:

FooBar.java

importcom.adobe.cq.sightly.WCMUsePojo;

public class FooBar extends WCMUsePojo; {

@Override

public void activate() throws Exception {}

public String getLink() {

return "http://www.foo'bar.com";

}

public String getText() {

return "foo'bar";

}

}

foobar.html

<div data-sly-use.fooBar="FooBar">

<a href="${fooBar.link}" title="${fooBar.text}">

${fooBar.text}

</a>
</div>

What is the output when the component is rendered?

  1. "<div>
    <a href=""https://www.foo%27bar.com"" title=""foo'bar""> foo&#39;bar
    </a>
    </div>"
  2. "<div>
    <a href=""https://www.foo%27bar.com"" title=""foo&#39;bar""> foo'bar
    </a>
    </div>"
  3. "<div>
    <ahref=""https://www.foo&#39;bar.com"" title=""foo&#39;bar""> foo&#39;bar
    </a>
    </div>"
  4. "<div>
    <a href=""https://www.foo%27bar.com"" title=""foo&#39;bar""> foo&#39;bar
    </a>
    </div>"

Answer(s): D



Viewing page 10 of 20
Viewing questions 46 - 50 out of 94 questions


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

AI Tutor AI Tutor 👋 I’m here to help!