A developer creates an OSGi service to access JCR content. Refer to the code snippet from the OSGi service below. Bundle ID = com.adobe.aem.samples-bundle Which set of steps should the developer take to make sure that the code works?
A.
1. Create an AEM User called serviceUser with appropriate ACLs. 2. Modify the Apache Sling Service User Mapper Service Amendment. 3. Set user.mapping to com.adobe.aem.samples-bundle:sample-service=serviceUser.
B.
.1. Create an AEM User called serviceUser with appropriate ACLs. 2. Modify the Apache Sling Service User Mapper Service. 3. Set user.default to com.adobe.aem.samples-bundle:sample-service=systemUser.
C.
1. Create a System User called systemUser with appropriate ACLs. 2. Modify the Apache Sling Service User Mapper Service. 3. Set user.default to com.adobe.aem.samples-bundle:sample-service=systemUser.
D.
1. Create a System User called systemUser with appropriate ACLs. 2. Modify the Apache Sling Service User Mapper Service Amendment. 3. Set user.mapping to com.adobe.aem.samples-bundle:sample-service=systemUser.
Answer: D
Reference:
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/apache-sling-service-user-mapper-service-amendment-configuring/qaq-p/232419
C is correct. here ref: https://stackoverflow.com/questions/31350548/resourceresolverfactory-getserviceresourceresolver-throws-exception-in-aem-6-1/31394583#31394583
D this is the prove https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/apache-sling-service-user-mapper-service-amendment-configuring/qaq-p/232419
A is not correct. You must create system user. C should be the correct answer.
upvoted 1 times
...
Log in to ExamTopics
Sign in:
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.
heenamadan
Highly Voted 4 years, 8 months agochunpin
Most Recent 4 years, 2 months agochat_c
4 years, 2 months agochat_c
4 years, 2 months agochat_c
4 years, 2 months agochat_c
4 years, 2 months agochat_c
4 years, 2 months agochat_c
4 years, 2 months agoRafael1016
4 years, 4 months agokasyap1125
4 years, 4 months agogkay2
4 years, 7 months agoniiraley
4 years, 8 months agopkg82
4 years, 8 months ago