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

Vce AD0-E103 Questions Latest

Page: 2 / 3
Total 94 questions

Adobe Experience Manager Developer Questions and Answers

Question 5

A developer is creating a new OSGi bundle com.custom.package.b to expose new services.

com.custom.package.a is already installed and active in the system and has the following package definition:

The system console shows the following package availability:

Bundle com.custom.package.b to be installed has the following package definition:

What will happen when the developer uploads the bundle com.custom.package.b into the system?

Options:

A.

The bundle will install but fail the activation due to unsatisfied dependencies com.sample.package.b and com.sample.package.c.

B.

The bundle will install but fail the activation due to unsatisfied dependency com.sample.package.c.

C.

The bundle will install and activate successfully.

D.

The bundle will install but fail the activation due to unsatisfied dependency com.sample.package.b.

Question 6

A service component periodically retrieves content from an external REST interface and saves the information in JCR. The REST endpoint is configured via an OSGi service property. There is one URL for production (runmode prod) and another URL for all other environments.

How should a developer configure the OSGi service?

Options:

A.

Underneath /apps//settings, create the sub folders global and prod and node with name .conf each and configure the properties via node properties.

B.

Underneath /config//settings, create the sub folders config.default and config.prod and a file with the name .config each and list the properties as key value pairs in there.

C.

Underneath /apps/, create the sub folders config and config.prod and a file with the name .config each and list the properties as key value pairs in there.

D.

Underneath /config//settings, create the sub folders config and config.prod and a file with the name .config each and list the properties as key value pairs in there.

Question 7

A developer needs to implement a header component for a website. The component has the following requirements:

- The component should be configured once on the page highest in the hierarchy.

- The header component on pages lower in the hierarchy should look the same and show the same data.

- If necessary, the configuration can be overwritten on a child page.

- The component should show a list of links that are configured in the header component.

Which code snippet for returning the list of pages should the developer use?

Options:

A.

"public String[] getHeaderLinks(Page page) {

final Resource pageContent = page.getContentResource();

final ComponentInheritanceValueMap properties = ComponentInheritanceValueMap(pageContent);

return properties.get(HEADER_PAGE_LIST, String[].class);

}"

B.

"public String[] getHeaderLinks(Resource componentResource) {

final ComponentInheritanceValueMap properties = componentResource.adaptTo(ComponentInheritanceValueMap.class);

return properties.getInherited(HEADER_PAGE_LIST, String[].class);

}"

C.

"public String[] getHeaderLinks(Resource componentResource) {

final HierarchyNodeInheritanceValueMap properties = new HierarchyNodeInheritanceValueMap (componentResource);

return properties.getInherited(HEADER_PAGE_LIST, String[].class);

}"

D.

"public String[] getHeaderLinks(Resource componentResource) {

final HierarchyNodeInheritanceVauleMap properties = componentResource.adaptTo(HierarchyNodeInheritanceVauleMap.class);

return properties.getInherited(HEADER_PAGE_LIST, String[].class);

}"

Question 8

In OSGi bundle Activator.java is registered through a service DevelopInfo.java

DeveloperInfo.java

Activator.java

Maven install generates an error during deployment. Refer to the error information below:

Which action should the developer take to resolve the build error?

Options:

A.

@Service annotation is missing in DeveloperInfo.java.

B.

Interface DeveloperInfo does NOT have any method.

C.

Activator class is NOT implementing DeveloperInfo interface.

D.

The required Maven repository for OSGi is missing.

Page: 2 / 3
Total 94 questions