ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 25 - AD0-E103 discussion

Report
Export

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().
Answers
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(...).
Answers
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.
Answers
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(...).
Answers
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(...).
Suggested answer: C
asked 02/10/2024
Sankalp Wadiwa
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first