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

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?

    Correct Answer: D

    To obtain a resource resolver that can read and update DAM assets, a developer should use the Sling Service User Mapper Service to map a service user to their service. In this case, they would create a configuration for the PID to reference a pre-created service user with read/write permissions, and then use the ResourceResolverFactory.getServiceResourceResolver method. This ensures that the service user will have the necessary access rights and follows the best practices for security.

Discussion
niiraleyOption: D

Correct Answer-D Reference - https://docs.adobe.com/content/help/en/experience-manager-65/administering/security/security-service-users.html

chunpinOption: D

Answer: D Reference: https://experienceleague.adobe.com/docs/experience-manager-65/administering/security/security-service-users.html?lang=en#overview

griosOption: D

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.