100% Correct AD0-E103 Tutorials 2021
Exam Code: AD0-E103 (Practice Exam Latest Test Questions VCE PDF)
Exam Name: Adobe Experience Manager Developer
Certification Provider: Adobe
Free Today! Guaranteed Training- Pass AD0-E103 Exam.
Free AD0-E103 Demo Online For Adobe Certifitcation:
NEW QUESTION 1
An AEM site experiences slower page loads. A developer needs to identify the slow running requests. How should a developer analyze the requests with long response times?
- A. Use proxy.jar with the following command java -jar proxy.jar <host> <remoteport> <localport> to debug the webserver and AEM server communication
- B. Use rlog.jar with the following command $ java -jar ../opt/helpers/rlog.jar -n 10 request.log to identify long running requests
- C. Download Heapdumps from Tools > Operations > Diagnosis and analyze the Heapdumps using the Memory Analyzer Tool
- D. Embed /libs/foundation/components/timing component in the Page Component and verify the page load time
Answer: B
NEW QUESTION 2
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 3
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 4
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 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
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 7
A developer determines that the dispatcher is NOT refreshing the cached page
/content/sampleproject/sample.html after it is updated.
The dispatcher.any contains the following entries:
/cache
{
/docroot "/opt/dispatcher/cache"
/statfile "/tmp/dispatcher-website.stat"
/statfileslevel "2"
/rules
{
/0000 { /glob "*" /type "allow" }
}
/invalidate
{
/0000 { /glob "*" /type "deny" }
}
}
Refer to the $DOCROOT directory below: [user@group /opt/dispatcher/cache]$ ls -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 ..
drw-r--r--. 4 root root 4096 Feb 7 03:21 content
-rw-r--r--. 1 apache apache 0 Feb 7 03:19 .stat
The dispatcher needs to cache the page and refresh it after it gets updated. What action should the developer take to meet these requirements?
- A. Add the entry /0001 { /glob "*.html" /type "allow" } in the /invalidate section
- B. Change the value of the entry /statfileslevel to "3"
- C. Delete the contents of the DOCROOT directory
- D. Remove /statfile or /statfileslevel
Answer: A
NEW QUESTION 8
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.)
- 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.
Answer: AC
NEW QUESTION 9
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 10
A developer wants to automatically truncate request log files once they exceed 10 MB. Which OSGi configuration should the developer modify?
- A. Apache Sling Logging Configuration
- B. Adobe Granite Log Analysis Service
- C. Apache Sling Customizable Request Data Logger
- D. Apache Sling Logging Writer Configuration
Answer: D
NEW QUESTION 11
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 12
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 13
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. "Use a file com.proj.ServiceComponent.cfg with content name=""Service name""intVal=I""5"""
- B. "Use a file com.proj.ServiceComponent.config with content name=""Service name""intVal=I""5"""
- C. "Use a file com.proj.ServiceComponent.xml with content<?xml version=""1.0"" encoding=""UTF-8""?><jcr:root jcr:primaryType=""sling:OsgiConfig"" name=""Service Name""intVal=""5""/>"
- D. "Use a file com.proj.ServiceComponent.xml with content<?xml version=""1.0"" encoding=""UTF-8""?><jcr:root xmlns:jcr=""http://www.jcp.org/jcr/1.0"" jcr:primaryType=""sling:OsgiConfig""name=""Service Name"" intVal=""{Integer}5""/>"
Answer: B
NEW QUESTION 14
What is not available in globel.jsp?
- A. currentPage
- B. currentNode
- C. currentDesign
- D. currentResource
Answer: D
NEW QUESTION 15
A developer is creating a custom component on the page /latestBlogs.html that needs to list all the titles of the blogs pages under /content/blogs.
How does this component get the list of child pages?
- A. Instantiate a node object with session.getNode(/content/blogs) and then iterate through the child nodesand print the title for each.
- B. Use the QueryDebugger to look for all children of /content/blogs and then iterate through the result set and print the title for each.
- C. Adapt the resourceResolver to the PageManger service, then use the getPage(/content/blogs) to instantiate a Page object and then iterate through the child pages and print the title for each.
- D. Use PageManager.getPage("/content/blogs") of the static PageManager class to instantiate a Page object and then iterate through the child pages and print the title for each.
Answer: B
NEW QUESTION 16
Which environment variable in the AEM start script should a developer modify to enable remote debugging?
- A. CQ_RUNMODE
- B. CQ_JVM_OPTS
- C. CQ_PORT
- D. CQ_HOST
Answer: B
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
In which maven build phase is the content package assembled?
- A. install
- B. compile
- C. package
- D. deploy
Answer: C
NEW QUESTION 19
Which xml tag is used within the vault package definition to add a new path to a content package?
- A. <path>
- B. <filter>
- C. <content>
- D. <rule>
Answer: B
NEW QUESTION 20
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?
- 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);}"
Answer: C
NEW QUESTION 21
......
Recommend!! Get the Full AD0-E103 dumps in VCE and PDF From Certshared, Welcome to Download: https://www.certshared.com/exam/AD0-E103/ (New 50 Q&As Version)