ExamGecko
Home Home / Adobe / AD0-E103

Adobe AD0-E103 Practice Test - Questions Answers, Page 7

Question list
Search
Search

List of questions

Search

Related questions











A custom application contains a service component com.proj.ServiceComponent. A developer needs to configure the string value name and integer value intVal. The actual configuration must be deployed using a content package.

What should the developer do to meet these requirements?

A.
A.
Answers
B.
B.
Answers
C.
C.
Answers
D.
D.
Answers
Suggested answer: C

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.)

A.
Use BundleContext.getServiceReference(…) and BundleContext.getService(…) in application code to look up the required services just before usage.
A.
Use BundleContext.getServiceReference(…) and BundleContext.getService(…) in application code to look up the required services just before usage.
Answers
B.
Use static methods to avoid boilerplate in application code.
B.
Use static methods to avoid boilerplate in application code.
Answers
C.
Use a mock framework to be able to create and inject mocks in the test code.
C.
Use a mock framework to be able to create and inject mocks in the test code.
Answers
D.
Use the standard OSGi @Reference annotation to wire the dependencies in application code.
D.
Use the standard OSGi @Reference annotation to wire the dependencies in application code.
Answers
E.
Deploy a third party dependency injection container to wire dependencies more efficiently in application code.
E.
Deploy a third party dependency injection container to wire dependencies more efficiently in application code.
Answers
Suggested answer: C, D

A developer creates an editable template with a Layout Container. The developer needs to restrict the Layout Container to just one column layout.

What should the developer do to the editable template to enforce this restriction?

A.
Using Template Editor, set the responsive settings to 1 column for Layout Container Policy.
A.
Using Template Editor, set the responsive settings to 1 column for Layout Container Policy.
Answers
B.
Add responsive column control component to the template and set column type to 1.
B.
Add responsive column control component to the template and set column type to 1.
Answers
C.
Overlay wcm.foundation.components.page.responsive Client Library and set @max_col to 1.
C.
Overlay wcm.foundation.components.page.responsive Client Library and set @max_col to 1.
Answers
D.
Using Template Editor, lock the Structure Component for the template.
D.
Using Template Editor, lock the Structure Component for the template.
Answers
Suggested answer: A

A developer is working on an HTL script for a custom component. The script has the following requirements:

This script must list the title of every child page of the current page.

If a child page does not have any children, then its title should link directly to that page.

If a child page has children, then the title of every one of its children should be listed beneath its title.

Which HTL script should the developer use to meet these requirements?

A.
A.
Answers
B.
B.
Answers
C.
C.
Answers
D.
D.
Answers
Suggested answer: B

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?

A.
Add the dependency to the third party bundle in the pom.xml of the project bundle.
A.
Add the dependency to the third party bundle in the pom.xml of the project bundle.
Answers
B.
Embed the third party bundle in the bundle that depends on it.
B.
Embed the third party bundle in the bundle that depends on it.
Answers
C.
Embed the bundle in a content package to have it automatically deployed.
C.
Embed the bundle in a content package to have it automatically deployed.
Answers
D.
Declare the dependency correctly using a link to the OSGi Bundle Repository (OBR).
D.
Declare the dependency correctly using a link to the OSGi Bundle Repository (OBR).
Answers
Suggested answer: D

A developer is working with the following HTL expression in a component rendering script:

What is the expected output of this expression?

A.
path/page.bar.html/world
A.
path/page.bar.html/world
Answers
B.
path/page.bar.html/hello/world
B.
path/page.bar.html/hello/world
Answers
C.
path/page.foo.bar.html/hello/world
C.
path/page.foo.bar.html/hello/world
Answers
D.
path/page.infinity.json.bar.html/world
D.
path/page.infinity.json.bar.html/world
Answers
Suggested answer: B

A developer running a local AEM instance and working on an AEM project needs to change a large number of files locally in the filesystem. The developer needs to get the changes uploaded to the local AEM instance to verify changes almost immediately in the browser?

What action should the developer take to most efficiency meet these requirements?

A.
Access CRXDE and upload the files through the interface.
A.
Access CRXDE and upload the files through the interface.
Answers
B.
Make the changes in CRXDE create a content package, download it, and expand it into the working directory after each change.
B.
Make the changes in CRXDE create a content package, download it, and expand it into the working directory after each change.
Answers
C.
Install FileVault bundle in the AEM instance and register the local working directory for synchronization.
C.
Install FileVault bundle in the AEM instance and register the local working directory for synchronization.
Answers
D.
Build a Content Package using maven and deploy it after each change.
D.
Build a Content Package using maven and deploy it after each change.
Answers
Suggested answer: A

A developer wants to consume AEM Page Data in a Single Page Application. The Single Page Application is coded to understand JSON format. Only page content should be exposed through JSON. All the existing components are based on foundation components.

Which change should the developer make in the existing components to support this requirement?

A.
Add JSON as the default extension in Apache Sling Servlet/Split Resolver and Error Handler Configuration.
A.
Add JSON as the default extension in Apache Sling Servlet/Split Resolver and Error Handler Configuration.
Answers
B.
Invoke the page URL with the extension .json to get the values to construct the required output.
B.
Invoke the page URL with the extension .json to get the values to construct the required output.
Answers
C.
Implement a Sling Model Exporter for the components.
C.
Implement a Sling Model Exporter for the components.
Answers
D.
Create a custom sling event handler to handler JSON requests.
D.
Create a custom sling event handler to handler JSON requests.
Answers
Suggested answer: D

A custom AEM application contains a service component that needs to access the JCR repository within the activate method. The activate method uses ResourceResolverFactory.getServiceResourceResolver(…) without specifying a sub service name.

What should a developer do to make sure the user service mapping for the service component is available?

A.
Create a field of type ServiceUserMapped and annotate it with @Reference.
A.
Create a field of type ServiceUserMapped and annotate it with @Reference.
Answers
B.
Wait for the service ServiceUserMapper via BundleContext.getServiceReference(…).
B.
Wait for the service ServiceUserMapper via BundleContext.getServiceReference(…).
Answers
C.
Create a field of type ServiceUserMapped and annotate it with @Reference using ReferencePolicy.DYNAMIC.
C.
Create a field of type ServiceUserMapped and annotate it with @Reference using ReferencePolicy.DYNAMIC.
Answers
D.
Create a field of type ServiceUserMapper and annotate it with @Reference using ReferencePolicy.STATIC.
D.
Create a field of type ServiceUserMapper and annotate it with @Reference using ReferencePolicy.STATIC.
Answers
Suggested answer: A

After a recent code deployment, an AEM site is experiencing longer than usual query execution time. The deployment package contained some new Lucene index definitions. A developer needs to identify the long running queries and confirm that the new index definitions are getting applied correctly.

Which action should the developer take to investigate this problem?

A.
Go to Tools > Operations >Diagnosis > Download Thread Dumps. Analyze the Thread Dumps to identify long running requests.
A.
Go to Tools > Operations >Diagnosis > Download Thread Dumps. Analyze the Thread Dumps to identify long running requests.
Answers
B.
Go to Tools > Operations >Diagnosis > Log Message. Configure DEBUG log level on com.day.cq.search to monitor search queries.
B.
Go to Tools > Operations >Diagnosis > Log Message. Configure DEBUG log level on com.day.cq.search to monitor search queries.
Answers
C.
Go to Tools > Operations > Diagnosis > Index Manager. Select the new Indexes and run a consistency check.
C.
Go to Tools > Operations > Diagnosis > Index Manager. Select the new Indexes and run a consistency check.
Answers
D.
Go to Tools > Operations >Diagnosis > Query Performance > Slow Queries. Select a Query and Click on Explain.
D.
Go to Tools > Operations >Diagnosis > Query Performance > Slow Queries. Select a Query and Click on Explain.
Answers
Suggested answer: B
Total 92 questions
Go to page: of 10