exam questions

Exam AD0-E103 All Questions

View all questions & answers for the AD0-E103 exam

Exam AD0-E103 topic 1 question 7 discussion

Actual exam question from Adobe's AD0-E103
Question #: 7
Topic #: 1
[All AD0-E103 Questions]

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.
  • B. Modify @SlingServletPaths(value = {"/bin/sling/sample" }).
  • C. Add @SlingServletName(servletName = "AccessControlServlet") annotation.
  • D. Add @SlingServletPrefix(value = "/apps") annotation.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
Reference:
https://sling.apache.org/documentation/the-sling-engine/servlets.html#caveats-when-binding-servlets-by-path

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
chunpin
4 years, 2 months ago
Answer: A
upvoted 2 times
...
mat2020
4 years, 6 months ago
Answer: A
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago