ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 7 - AD0-E103 discussion

Report
Export

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?

A.
Use @SlingServletResourceTypes instead of @SlingServletPaths.
Answers
A.
Use @SlingServletResourceTypes instead of @SlingServletPaths.
B.
Modify @SlingServletPaths(value = {“/bin/sling/sample” }).
Answers
B.
Modify @SlingServletPaths(value = {“/bin/sling/sample” }).
C.
Add @SlingServletName(servletName = “AccessControlServlet”) annotation.
Answers
C.
Add @SlingServletName(servletName = “AccessControlServlet”) annotation.
D.
Add @SlingServletPrefix(value = “/apps”) annotation.
Answers
D.
Add @SlingServletPrefix(value = “/apps”) annotation.
Suggested answer: A

Explanation:

Reference: https://sling.apache.org/documentation/the-sling-engine/servlets.html#caveats-when-binding-servlets-by-path

asked 02/10/2024
ALAEDDINE BENMAKHLOUF
46 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first