Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam AD0-E103 topic 1 question 55 discussion

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

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.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
heenamadan
Highly Voted 3 years, 10 months ago
Ans is D
upvoted 5 times
...
chunpin
Most Recent 3 years, 3 months ago
Answer: D Reference: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/apache-sling-service-user-mapper-service-amendment-configuring/qaq-p/232419
upvoted 1 times
...
chat_c
3 years, 3 months ago
C seems to be wrong because it says set user.default, but should be user.mapping, which is for ...Amended, So D should be correct
upvoted 1 times
chat_c
3 years, 3 months ago
Sorry I think A is correct, as A uses service user, whereas C uses user.default and D uses system user, so C & D would be wrong.
upvoted 1 times
chat_c
3 years, 3 months ago
Apologies for confusions, D is correct as it has to be system user.
upvoted 1 times
...
...
...
chat_c
3 years, 3 months ago
C is correct. here ref: https://stackoverflow.com/questions/31350548/resourceresolverfactory-getserviceresourceresolver-throws-exception-in-aem-6-1/31394583#31394583
upvoted 1 times
chat_c
3 years, 3 months ago
Sorry I think A is correct, as A uses service user, whereas C uses user.default and D uses system user, so C & D would be wrong.
upvoted 1 times
chat_c
3 years, 3 months ago
Apologies for confusions, D is correct as it has to be system user.
upvoted 1 times
...
...
...
Rafael1016
3 years, 5 months ago
D this is the prove https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/apache-sling-service-user-mapper-service-amendment-configuring/qaq-p/232419
upvoted 1 times
...
kasyap1125
3 years, 6 months ago
Correct answer is D
upvoted 1 times
...
gkay2
3 years, 9 months ago
Correct answer is C
upvoted 1 times
...
niiraley
3 years, 10 months ago
Correct -C Catch is here "Modify"- In case of Amendment , need to create new mapper hence removes option D. A and B is wrong.
upvoted 1 times
...
pkg82
3 years, 10 months ago
A is not correct. You must create system user. C should be the correct answer.
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 ...