AD0-E103 Exam QuestionsBrowse all questions from this exam

AD0-E103 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?

Show Answer
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

2 comments
Sign in to comment
chunpinOption: A
Jan 9, 2021

Answer: A

mat2020Option: A
Aug 20, 2020

Answer: A