Labour Day Sale - Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 575363r9

Welcome To DumpsPedia

AD0-E103 Sample Questions Answers

Questions 4

A developer is working on the following Sling Model that is being used in a component.

@Model(adaptables = SlingHttpServletRequest.class, defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL)

public class SampleModel {

@Inject

private Page currentPage;

private boolead matchingTitle;

@PostConstruct

private void init(){

matchingTitle = title.equals(currentPage.getName());

}

public boolean isMatchingTitle(){

return matchingTitle;

}

}

The model must check if the configured value of the jct:title property for the component matches the same name of the current page. If the jcr:title property of the component has NOT been configured, then isMatchingTitle() must return false.

How should the developer inject the title property in this model?

Options:

A.

"@ValueMapValue

@Via(""jcr:title"")

@Required

private String titile;"

B.

"@ValueMapValue

@Named(""jcr:title"")

@Default(values = """")

private String titile;"

C.

"@ValueMapValue

@Named(""jcr:title"")

@Required

private String titile;"

D.

"@ValueMapValue

@Via(""jcr:title"")

@Default(values = """")

private String titile;"

Buy Now
Questions 5

A banking AEM application contains functionality to calculate a mortgage rate based on user input. A servlet in place calculates the result in the backend. A call to an internal third-party REST service is required to retrieve the average object value based on a given zip code.

The following three service interfaces are used:

MortgageCalculationServlet, MortgageCalculationService and ObjectValueLookupRestService where MortgageCalculationServlet has a dependency to MortgageCalculationService and MortgageCalculationService has a dependency to ObjectValueLookupRestService.

The calculation has many combinations of input parameters and edge cases, so the JUnit coverage must be as high as possible.

Which two strategies should the developer use to ensure testability of the application code? (Choose two)

Options:

A.

Use the standard OSGi @Reference annotation to wire the dependencies in application code

B.

Use BundleContext.getServiceReference(...) and BundleContext.getService(...) in application code to look up for the required services just before usage

C.

Deploy a third party dependency injection container to wire dependencies more efficiently in application code

D.

Use a mock framework to be able to create and inject mocks in the test code

E.

Use static methods to avoid boilerplate in application code

Buy Now
Questions 6

The structure section of an editable template has a locked component.

What happens to the content of that component when a developer unlocks it?

Options:

A.

The content stays in the same place but it ignored on pages using the template.

B.

The content is moved to the initial section of the editable template.

C.

The content is deleted after confirmation from the template author.

D.

The content is copied to the initial section of the editable template.

Buy Now
Questions 7

A developer wants to extend AEM Core Components to create a custom Carousel Component.

How should the developer extend the Core Components?

Options:

A.

Make changes to the original component and assign a component group.

B.

Use the sling:resourceSuperType property to point to the core component.

C.

Use the sling:resourceType property to point to the core component.

D.

Copy the Core Carousel component to /apps/ folder.

Buy Now
Questions 8

A Client-Side Library has the category "library.example".

Which HTL statement should a developer use to reference only the CSS files of this Client-Side library

Options:

A.

B.

C.

D.

Buy Now
Questions 9

A custom AEM application has a run time dependency to a third party OSGi bundle that is NOT included in out-of-the-box AEM. The third party dependency needs to be available for multiple applications and be upgraded separately from the custom AEM application.

How should a developer make sure that the bundle is installed on all environments?

Options:

A.

Add the dependency to the third party bundle in pom.xml of the project bundle

B.

Embed the third party bundle in the bundle that depends on it

C.

Embed the bundle in a content package to have it automatically deployed

D.

Declare the dependency correctly using a link to the OSGi Bundle Reposirory (OBR)

Buy Now
Questions 10

A developer identifies that some requests for the page /content/sampleproject/page.html take longer than other requests for the same page.

Refer to the $DOCROOT/content/sampleproject directory below.

[user@group /opt/dispatcher/cache/content/sampleproject ]$ ks -la

total 2

drwxr-xr-x. 5 apache apache 4096 Feb 11 11:41 .

drwxr-xr-x. 3 apache apache 4096 Nov 29 16:07 ..

drwxr-xr-x. 4 apache apache 4096 Feb 7 03:21 page.html

-rw-r--r--. 1 apache apache 0 Feb 7 03:19 .stat

The dispatcher.log file contains the following lines:

[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] checking [/libs/cq/security/userinfo.json]

[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] Caching disabled due to query string: tracking_id=1350373444666

[Wed Feb 13 13:14:04 2012] [D] [1376(1572)] cache-action for [/libs/cq/security/userinfo.json]: None

How should the developer make sure that the page is always cached?

Options:

A.

"Modify the dispatcher.any file to contain the following lines:

/filter

{

...

/0023 { /type ""allow"" /url ""/content/*/*.html?tracking_id=*"" }

...

}"

B.

"Modify the dispatcher.any file to contain the following lines:

/rules

{

...

/0000 { /glob ""*"" /type ""allow"" /params ""tracking_id"" }

...

}"

C.

"Modify the dispatcher.any file to contain the following lines:

/ignoreUrlParams

{

...

/0002 { /glob ""tracking_id"" /type ""allow"" }

...

}"

D.

"Modify the dispatcher.any file to contain the following lines:

/filter

{

...

/0023 { /type ""allow"" /url ""/content/*/*.html"" /params ""tracking_id"" }

...

}"

Buy Now
Questions 11

An online insurance company website has user-generated content that must be replicated in all publish instances.

What action should the developer take to achieve this?

Options:

A.

Configure the dispatcher flush agent in publish instance.

B.

Configure reverse replication agents for the author.

C.

Configure the replication agent in the publish instances.

D.

Disable static agent in the author instance.

Buy Now
Questions 12

A developer is working on a complex project with multiple bundles. One bundle provides an OSGi service for other bundles.

Which two options are necessary to ensure that the other bundles can reference that OSGi service? (Choose two.)

Options:

A.

The bundles consuming the service need to import the fully qualified name of the service interface.

B.

The bundle providing the service needs to contain an adequate SCR descriptor file.

C.

The bundle providing the service needs to export the java package of the service interface.

D.

The bundle providing the service needs to contain a whitelist of allowed consumer bundles.

E.

The service needs to correctly declare metatype information.

Buy Now
Questions 13

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

Which tool should the developer use to achieve this goal?

Options:

A.

vlt command

B.

Content Explorer

D.

mvn command

Buy Now
Questions 14

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"?

Options:

A.

Use the "Start" action for the bundle in the Apache Felix Web Console

B.

Ensure all OSGi requirements are met and re-deploy using Maven

C.

Use the "Update" action for the bundle in the Apache Felix Web Console

D.

Reinstall the content package using the package manager

Buy Now
Status:
Expired
Exam Code: AD0-E103
Exam Name: Adobe Experience Manager Developer
Last Update: Apr 14, 2023
Questions: 94
$64  $159.99
$48  $119.99
$40  $99.99
buy now AD0-E103