Free AD0-E116 Exam Braindumps (page: 8)

Page 7 of 24

The dependency of an AEM project fails when a developer configures using Apache Maven. Refer to the error information below.

INFO]---------------------------------------

[ERROR] COMPILATION ERROR :

[INFO] ---------------------------------------

[ERROR]
/training/core/src/main/java/com/adobe/training/core/listeners/SimpleResourceListener.java :[18,28] package org.apache.sling.api doesnot exist

[ERROR]
/training/core/src/main/java/com/adobe/training/core/filters/LoggingFilter.java:[26,28] package org.apache.sling.api does not exist

[ERROR]
/training/core/src/main/java/com/adobe/training/core/filters/LoggingFilter.java:[27,31] packageorg.apache.sling.engine does not exist

[ERROR]
/training/core/src/main/java/com/adobe/training/core/models/HelloWorldModel.java:[22,37] package org.apache.sling.api.resource does not exist

[ERROR]
/training/core/src/main/java/com/adobe/training/core/models/HelloWorldModel.java:[25,33]
package org.apache.sling.api.settings does not exist

[ERROR]
/training/core/src/main/java/com/adobe/training/core/models/HelloWorldModel.java:[31,13] cannot find symbol

symbol: class SlingSettingsService

location: class com.adobe.training.core.models.HelloWorldModel

What should a developer add to the pom.xml to fixthe Maven build?

  1. "<dependency>
    <groupId>com.adode.aem</groupId>
    <artifactId>aem-api</artifactId>
    <version>6.4.0</version>
    <classifier>apis</classifier>
    <scope<provided</scope>
    </dependency>"
  2. "<dependency>
    <groupId>com.adode.aem</groupId>
    <artifactId>uber-jar</artifactId>
    <version>6.4.0</version>
    <classifier>apis</classifier>
    <scope<provided</scope>
    </dependency>"
  3. "<resources>
    <resource>
    <directory>src/main/content/jcr_root</directory> <filtering>false</filtering>
    <excludes>
    <exclude>**/.vlt</exclude>
    <exclude>**/.vltignore</exclude>
    <exclude>libs</exclude>
    </excludes>
    </resource>
    </resources>"
    "<repositories>
  4. <repository>
    <id>adobe-public-releases</id>
    <name>Adobe Public Repository</name>
    <url>https://repo.adobe.com/nexus/content/groups/public/</url> <layout>default</layout>
    </repository>
    </repositories>"

Answer(s): B



A developer is working on a dialog for a contact list component. The dialog has the
following requirements:

1. The list of contacts must include one ormore entries.
2. Contact details must include a full name.
3. Contact details must include an email address
4. Contact details can optionally include a short bio
5. Authors need to be able to rearrange the contacts in the list
Which dialog configuration should the developer use to meet all of these requirements?







  1. Option A
  2. Option B
  3. Option C
  4. Option D

Answer(s): A



Refer to the following Client Library node structure.

+clientlibs

- jcr:primaryType="cq:ClientLibraryFolder"

- categories="[clientlibs.example]"

+ js.txt

- jcr:primaryType="nt:file"

+ css.txt

- jcr:primaryType="nt:file"

+ js
- jcr:primaryType="nt:folder"

- javascript1.js

- javascript2.js

The js.txt looks like

javascript1.js

javascript2.js

The JavaScript is NOT present in the Client Library when it is loaded.

What should a developer do to resolve this issue?

  1. Change the js folder to a Client Library node and add the property categories = "[clientlibs.example]"
  2. Change the js folder to a Client Library node and embed it on the clientlibs node
  3. Add #base=js as the first line in the js.txt file
  4. Split the js and css into 2 Client Libraries since they can't be in the same Client Library

Answer(s): C



A custom bundle of an application is in state "Installed" after deploying it with Maven.

What should a developer do to change it to state "Active"?

  1. Use the "Start" action for the bundle in the Apache Felix Web Console
  2. Ensure all OSGi requirements are met and re-deploy using Maven
  3. Use the "Update" action for the bundle in the Apache Felix Web Console
  4. Reinstall the content package using the package manager

Answer(s): B






Post your Comments and Discuss Adobe AD0-E116 exam with other Community members:

AD0-E116 Discussions & Posts