Exam AD0-E103 All QuestionsBrowse all questions from this exam
Question 7

A developer creates a Sling Servlet. The Sling Servlet is bound to a path (/service/sling/sample). Refer to the resulting code below.

What should the developer do to make the servlet access controlled using the default ACLs?

    Correct Answer: A

    To make the Sling Servlet access controlled using the default ACLs, a developer should use @SlingServletResourceTypes instead of @SlingServletPaths. Using @SlingServletPaths bypasses the default ACL security checks on content resources, while @SlingServletResourceTypes ensures that the servlet adheres to the access control defined in the repository, making it aligned with the default ACL permissions.

Discussion
chunpinOption: A

Answer: A

mat2020Option: A

Answer: A