12 September, 2020
What Breathing AD0-E103 Prep Is
It is more faster and easier to pass the Adobe AD0-E103 exam by using Exact Adobe Adobe Experience Manager Developer questuins and answers. Immediate access to the Most recent AD0-E103 Exam and find the same core area AD0-E103 questions with professionally verified answers, then PASS your exam with a high score now.
Online AD0-E103 free questions and answers of New Version:
Question 1
A developer creates two custom classes. ClassA has the following code: package com.aem.abc;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory; public class ClassA {
private static final Logger logger = LoggerFactory.getLogger(this.getClass()); public void classAMethod() {
logger.debug("Message from Class A method");
}
}
The developer creates a custom log custom.log with debug level in OSGi sling log support for the Java package com.aem.abc. The developer adds another class ClassB with the following code:
package com.aem.xyz; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; public class ClassB {
private static final Logger logger = LoggerFactory.getLogger(this.getClass()); public void classBMethod() {
logger.debug("Message from Class B method");
}
}
Which action must the developer take to see the log messages in the same file from both classes?
import org.slf4j.Logger;
import org.slf4j.LoggerFactory; public class ClassA {
private static final Logger logger = LoggerFactory.getLogger(this.getClass()); public void classAMethod() {
logger.debug("Message from Class A method");
}
}
The developer creates a custom log custom.log with debug level in OSGi sling log support for the Java package com.aem.abc. The developer adds another class ClassB with the following code:
package com.aem.xyz; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; public class ClassB {
private static final Logger logger = LoggerFactory.getLogger(this.getClass()); public void classBMethod() {
logger.debug("Message from Class B method");
}
}
Which action must the developer take to see the log messages in the same file from both classes?
Question 2
A developer creates a template-type for building editable templates.
The resulting editable templates and pages must always contain a specific layout container that can NOT be deleted by the author.
How should the developer meet this requirement?
The resulting editable templates and pages must always contain a specific layout container that can NOT be deleted by the author.
How should the developer meet this requirement?
Question 3
There is a config file package.myClass.config.factory-myApp.xml – what is true? (Choose two)
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?
+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?
Question 5
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?
${'path/page.infinity.json' @extension = 'html', removeSelectors = ['foo'],
selectors = ['foo', 'bar'], prependSuffix = 'hello', suffix = 'world' }
What is the expected output of this expression?
Question 6
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?
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?
Question 7
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?
Question 8
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?
Which change should the developer make in the existing components to support this requirement?
Question 9
Which log file should a developer use to search for exception stacktraces?
Question 10
Which xml tag is used within the vault package definition to add a new path to a content package?
Question 11
AEM is installed in $AEM_HOME.
In which subfolder are the command line startup and shutdown scripts located?
In which subfolder are the command line startup and shutdown scripts located?
Question 12
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?
/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?
Question 13
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)
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)
Question 14
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?
- 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?
Question 15
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"?