AD0-E116 Exam Question 1

A developer determines that the dispatcher is NOT refreshing the cached page /content/sampleproject/sample.html after it is updated.
The dispatcher.any contains the following entries:
/cache
{
/docroot "/opt/dispatcher/cache"
/statfile "/tmp/dispatcher-website.stat"
/statfileslevel "2"
/rules
{
/0000 { /glob "*" /type "allow" }
}
/invalidate
{
/0000 { /glob "*" /type "deny" }
}
}
Refer to the $DOCROOT directory below:
[user@group /opt/dispatcher/cache]$ ls -la
total 2
drwxr-xr-x. 5 apache apache 4096 Feb 11 11:41 .
drwxr-xr-x. 3 apache apache 4096 Nov 29 16:07 ..
drw-r--r--. 4 root root 4096 Feb 7 03:21 content
-rw-r--r--. 1 apache apache 0 Feb 7 03:19 .stat
The dispatcher needs to cache the page and refresh it after it gets updated.
What action should the developer take to meet these requirements?
  • AD0-E116 Exam Question 2

    A developer creates a Sling Servlet. The Sling Servlet is bound to a path (/service/sling/sample). Refer to the resulting code below.
    @Component (immediate=true, service = {Servlet.class})
    @SlingServletPaths(value = {"/service/sling/sample"})
    What should the developer do to make the servlet access controlled using the default ACLs?
  • AD0-E116 Exam Question 3

    A developer has a component named foobar with the following file:
    FooBar.java
    import com.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?
  • AD0-E116 Exam Question 4

    A developer running a local AEM instance and working on an AEM project needs to change a large number of files locally in filesystem. The developer needs to get the changes uploaded to the local AEM instance to verify changes almost immediately in the browser.
    What action should the developer take to most efficiently meet these requirements?
  • AD0-E116 Exam Question 5

    Which two methods could a developer use to obtain a Session without using a deprecated API? (Choose two.)