Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: dpt65

AD0-E116 Questions and Answers

Question # 6

A developer has a component named foobar with the following file:

foobar.html:

What is the output when the component is rendered?

A.

"

"

B.

"

"

C.

"

"

D.

"

"

Full Access
Question # 7

The following stack trace is written in the error.log file after installing a custom application package.

Could not startbundle com.adobe.cq.sample-bundle [526]. Reason: {}. Will retry.

org.osgi.framework.BundleException: Unable to resolve com.adobe.cq.sample-bundle [526](R 526.0): missing requirement [com.adobe.cq.sample-bundle] osgi.wiring.package

What are two different ways that the developer could resolve the OSGi bundle dependency error? (Choose two)

A.

Go to the Dependency Finder in the System Console to find if another bundle is exporting a similar version of the classes and change the project pom.xml to match the same version

B.

Install the jar in AEM via the curl command 'curl -u username:password -F file=@"./com.example.customlib-3.8.jar" -F name="Dependency" -F force=true -F install=true http://localhost:4502/crx/packmgr/service.jsp --progress-bar -o upload.txt'

C.

Create a folder named "deploy" under $AEM_HOME/crx-quickstart/ and copy com.example.customlib-3.8.jar in there so AEM uploads it automatically

D.

Go to the project parent pom.xml file and add the dependency with the scope "compile" and instruct the bundle plugin to include the dependency in runtime

E.

Upload the file com.example.customlib-3.8.jar into /apps//libs folder in CRX DE to make it available for the OSGi bundle

Full Access
Question # 8

A developer has acomponent located under the path /apps. This component has a Client Library which is directly loaded onto a page. The publish instance loads the page correctly. The dispatcher also loads the page but the Client Library is missing.

How should the developerresolve this issue, while taking security into consideration?

A.

Change the ACLs for the Client Library.

B.

Move the Client Library under /apps/library.

C.

Add the property allowProxy with a boolean value true.

D.

Allow the path to the clientlibson the dispatcher.

Full Access
Question # 9

A developer is creating templates and/or components using CRXDE Lite. The developer needs to check the files into source control.

Whichtool should the developer use to achieve this goal?

A.

vlt command

B.

Content Explorer

C.

http://localhost:4502/crx/checkout

D.

mvn command

Full Access
Question # 10

What is not available in globel.jsp?

A.

currentPage

B.

currentNode

C.

currentDesign

D.

currentResource

Full Access
Question # 11

A developer creates a template-type for building editable templates.

The resulting editable templates and pages must always contain a specific layoutcontainer that can NOT be deleted by the author.

How should the developer meet this requirement?

A.

Add the layout container component to the structure section of the template-type

B.

Add the layout container component by including it on the actual page component

C.

Add a content policy to the template-type to disable the removal of the layout container

D.

Add the layout container component to the initial section of the template-type

Full Access
Question # 12

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 assetaccordingly. 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 thatcan 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 forvia 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(...).

Full Access
Question # 13

Which two methods could a developer use to obtain a Session without using a deprecated API? (Choose two.)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

E.

Option E

Full Access