exam questions

Exam AD0-E103 All Questions

View all questions & answers for the AD0-E103 exam

Exam AD0-E103 topic 1 question 25 discussion

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

An application runs specific license checks against certain DAM assets every day. It should send an email to a configured list if it finds warnings, and mark the asset accordingly. A service component that uses the Apache Sling Scheduler Service is created. DAM assets that must NOT be used anymore are hidden using
ACLs and the license check must re-check them.
How should a developer obtain a resource resolver that can read and update the DAM assets?

  • A. Set up a cron job with curl calls with the admin user and use request.getResourse().getResourceResolver().
  • B. Create a configuration line in PID com.day.cq.security.ACLSetup for the user that you obtain a session for via ResourceResolverFactory.getResourceResolver(...).
  • C. Configure the user admin in PID org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl as user.default and make sure the service user exists and has jcr:read and jcr:write permissions.
  • D. Create a configuration for PID org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl.amended-damaccess that references a pre-created service user with r/w permissions and use ResourceResolverFactory.getServiceResourceResolver(...).
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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: D Reference: https://experienceleague.adobe.com/docs/experience-manager-65/administering/security/security-service-users.html?lang=en#overview
upvoted 1 times
...
grios
4 years, 8 months ago
We need to use the Sling Amend to make sure that the service user will have the necessary permissions when the service is running. So D is the correct answer.
upvoted 1 times
...
niiraley
4 years, 8 months ago
Correct Answer-D Reference - https://docs.adobe.com/content/help/en/experience-manager-65/administering/security/security-service-users.html
upvoted 3 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