Tested AD0-E103 Preparation 2021
Act now and download your Adobe AD0-E103 test today! Do not waste time for the worthless Adobe AD0-E103 tutorials. Download Up to the immediate present Adobe Adobe Experience Manager Developer exam with real questions and answers and begin to learn Adobe AD0-E103 with a classic professional.
Free demo questions for Adobe AD0-E103 Exam Dumps Below:
NEW QUESTION 1
A developer wants to consume AEM Page Data in 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?Script Resolver and Error handler Configuration
- B. Implement a Sling Model Exporter for the components
- C. Create a custom sling event handler to handle JSON requests
- D. Invoke the page URL with the extension .json to get the values to construct the required output
Answer: B
NEW QUESTION 2
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?
- A. Change the js folder to a Client Library node and add the property categories = "[clientlibs.example]"
- B. Change the js folder to a Client Library node and embed it on the clientlibs node
- C. Add #base=js as the first line in the js.txt file
- D. Split the js and css into 2 Client Libraries since they can't be in the same Client Library
Answer: C
NEW QUESTION 3
How should a developer configure the replication agent to flush the dispatcher cache for a newly activated page?
- A. Create a dispatcher flush agent in publish instance
- B. Create a reverse replication agent on the author instance
- C. Create a new replication agent and set transport URI to point to the dispatcher
- D. Set the serialization type property of the default agent to dispatcher flush
Answer: A
NEW QUESTION 4
A developer has a component named foobar with the following file:
FooBar.java
import com.adobe.cq.sightly.WCMUsePojo; public class FooBar extends WCMUsePojo; {
@Override
public void activate() throws Exception {} public String getLink() {
return "http://www.foo'bar.com";
}
public String getText() { return "foo'bar";
}
}
foobar.html
<div data-sly-use.fooBar="FooBar">
<a href="${fooBar.link}" title="${fooBar.text}">
${fooBar.text}
</a>
</div>
What is the output when the component is rendered?
- A. "<div><a href=""https://www.foo%27bar.com"" title=""foo'bar""> foo'bar</a></div>"
- B. "<div><a href=""https://www.foo%27bar.com"" title=""foo'bar""> foo'bar</a></div>"
- C. "<div><a href=""https://www.foo'bar.com"" title=""foo'bar""> foo'bar</a></div>"
- D. "<div><a href=""https://www.foo%27bar.com"" title=""foo'bar""> foo'bar</a></div>"
Answer: D
NEW QUESTION 5
The following stack trace is written in the error.log file after installing a custom application package. Could not start bundle 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/<project>/libs folder in CRX DE to make it available for the OSGi bundle
Answer: AD
NEW QUESTION 6
AEM is installed in $AEM_HOME.
In which subfolder are the command line startup and shutdown scripts located?
- A. $AEM_HOME/
- B. $AEM_HOME/crx-quickstart/scripts
- C. $AEM_HOME/crx-quickstart/opt/
- D. $AEM_HOME/crx-quickstart/bin/
Answer: D
NEW QUESTION 7
A developer needs to configure sets of values according to the following parameters:
- Varies for different staging environments
- Varies for different content paths
- Diffets between author and publish
Which implementation strategy should the developer use to meet these requirements?
- A. A context aware configuration with buckets using an OSGi configuration
- B. One OSGi configuration for the set of values with runmodes
- C. A custom cloud condifuration
- D. A JCR property at the content root node of the site with inheritedPageProperties
Answer: A
NEW QUESTION 8
A developer is working with the following HTL expression in a component rendering script:
${'path/page.infinity.json' @extension = 'html', removeSelectors = ['foo'],
selectors = ['foo', 'bar'], prependSuffix = 'hello', suffix = 'world' }
What is the expected output of this expression?
- A. path/page.foo.bar.html/hello/world
- B. path/page.infinity.json.bar.html/world
- C. path/page.bar.html/hello/world
- D. path/page.bar.html/world
Answer: C
NEW QUESTION 9
A developer creates an OSGi service to access JCR content. Refer to the code snippet from the OSGi service below.
public class AccessRepository {
private static final String SERVICE_ACCOUNT_IDENTIFIER = "sample-service";
...
private final String getServiceUser() {
final Map<string, object=""> authInfo = Collections.singletonMap(ResourceResolverFactory.SUBSERVICE, (Object) SERVICE_ACCOUNT_IDENTIFIER);
ResourceResolver serviceResolver = resourceResolverFactory.getServiceResourceResolver(authInfo))
...
}
}
Bundle ID = com.adobe.aem.samples-bundle
Which set of steps should the developer take to make sure that the code works?
- A. "1. Create a System User called systemUser with appropriate ACLs2. Modify the Apache Sling Service User Mapper Service3. Set user.default to com.adobe.aem.samples-bundle:sample-service=systemUser"
- B. "1. Create an AEM User called systemUser with appropriate ACLs2. Modify the Apache Sling Service User Mapper Service3. Set user.default to com.adobe.aem.samples-bundle:sample-service=systemUser"
- C. "1. Create a System User called systemUser with appropriate ACLs2. Modify the Apache Sling Service User Mapper Service Amendment3. Set user.default to com.adobe.aem.samples-bundle:sample-service=systemUser"
- D. "1. Create an AEM User called systemUser with appropriate ACLs2. Modify the Apache Sling Service User Mapper Service Amendment3. Set user.default to com.adobe.aem.samples-bundle:sample-service=systemUser"
Answer: A
NEW QUESTION 10
The developer is presented with a component "Component A" which inherits from a component "Component B".
The dialog of Component A on path ../cq:dialog/../../items looks like:
+ align
- jcr:primaryType="nt:unstructured"
- sling:resourceType="granite/ui/components/coral/foundation/form/select"
- fieldLabel="Align Text"
- name="./align"
The dialog of Component B on path ../cq:dialog/../../items looks like:
+ title
- jcr:primaryType="nt:unstructured"
- sling:resourceType="granite/ui/components/coral/foundation/form/textarea"
- fieldLabel="Title"
- name="./title"
+ description
- jcr:primaryType="nt:unstructured"
- sling:resourceType="granite/ui/components/coral/foundation/form/textarea"
- fieldLabel="Description"
- name="./description"
The requirement for the dialog is that the *Align Text* field is shown after the *Title* field. What should the developer do without changing Component B?
- A. Move the align node from Component A to Component B and order them according the requirements.
- B. Move all the nodes under the item node from Component B to Component A and order them according the requirements.
- C. Extend Component B with the functionality of Component A
- D. Add the property sling:orderBefore="description" to the align node.
Answer: D
NEW QUESTION 11
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 does not 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] package org.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 fix the Maven build?
- A. "<dependency><groupId>com.adode.aem</groupId><artifactId>aem-api</artifactId><version>6.4.0</version><classifier>apis</classifier><scope<provided</scope></dependency>"
- B. "<dependency><groupId>com.adode.aem</groupId><artifactId>uber-jar</artifactId><version>6.4.0</version><classifier>apis</classifier><scope<provided</scope></dependency>"
- C. "<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>
- D. <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: B
NEW QUESTION 12
An application contains an OSGi configuration that contains a password.
How should a developer prevent this sensitive information from being stored in plain text in JCR?
- A. 1. Use console at /system/console/crypto to encrypt the value2. Either create an encrypted value for each AEM instance and use runmodes to apply the different values or make sure relevant instances share the same master key3. When loading the value in the code, call CryptoSupport.unprotect(_) before using the value
- B. 1. Use console at /system/console/configMgr and tick the checkbox "encrypt" before saving a configuration2. Use encrypted values work across all instances3. When loading the value in the code, call CryptoSupport.unprotect(...) before using the value
- C. 1. Use console at /system/console/crypto to encrypt the value2. Either create an encrypted value for each AEM instance and use runmodes to apply the different values or make sure relevant instances share the same master key3. Sensitive information is automatically decrypted using the CryptoSupport OSGi service before thevalue is returned
- D. 1. Use console at /system/console/configMgr and tick the checkbox "encrypt" before saving a configuration2. Either create an encrypted value for each AEM instance and use runmodes to apply the different values or make sure relevant instances share the same master key3. Sensitive information is automatically decrypted using the CryptoSupport OSGi service before the value is returned
Answer: A
NEW QUESTION 13
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. Goto Tools > Operations > Diagnosis > Log Message
- B. Configure DEBUG log level on com.day.cq.search to monitor search queries.
- C. Goto Tools > Operations > Diagnosis > Query Performance > Slow Querie
- D. Select a Query and Click on Explain
- E. Goto Tools > Operations > Diagnosis > Index Manage
- F. Select the new Indexes and run a consistency check.
- G. Goto Tools > Operations > Diagnosis > Download Thread Dump
- H. Analyze the Thread Dumps to identify long running requests.
Answer: B
NEW QUESTION 14
A developer installs the latest Service pack to a local AEM author instance. How should the developer install this package on the publish instance?
- A. Replicate from package manager of publish instance
- B. Use upload/install from OSGi console of publish instance
- C. Replicate from package manager of author instance
- D. Use upload/install from OSGi console of author instance
Answer: C
NEW QUESTION 15
A developer running a local AEM instance and working on an AEM project needs to change a large number of files locally in 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 efficiently meet these requirements?
- A. Build a Content Package using maven and deploy it after each change
- B. Access CRXDE and upload the files through the interface
- C. Make the changes in CRXDE, create a content package, download it and expand it into the working directory after each change
- D. Install FileVault bundle in the AEM instance and register the local working directory for synchronization
Answer: D
NEW QUESTION 16
A developer needs to install a content package on an AEM environment. However a content package with the same name is already installed.
What would be the safest way for the developer to install the content package to make sure only the changes of the new content package get applied?
- A. Upload the content package to the CRX Package Share before installing it
- B. Use the "Force Upload" option when uploading the new content package
- C. Uninstall the existing content package before installing the new content package
- D. Install the content package using the OSGi web console
Answer: C
NEW QUESTION 17
A developer wants to create a Client Library that will only be included on touch enabled devices. What action should the developer take to achieve this?
- A. Add the line "#base=touch" to the js.txt and css.txt files in the Client Library Folder
- B. Pass the parameter user-agent='touch' when referencing the Client Library
- C. Set the channels property on the Client Library Folder to "touch"
- D. Create a resource folder called "touch" under the Client Library Folder
Answer: C
NEW QUESTION 18
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 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
Answer: AD
NEW QUESTION 19
......
P.S. 2passeasy now are offering 100% pass ensure AD0-E103 dumps! All AD0-E103 exam questions have been updated with correct answers: https://www.2passeasy.com/dumps/AD0-E103/ (50 New Questions)