AD0-E116 無料問題集「Adobe Experience Manager Developer Expert」
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?
- 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?
正解:C
解答を投票する
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?
正解:C
解答を投票する
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?
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?
正解:D
解答を投票する
A developer creates Editable Templates based on a custom Page component. The developer wants to leverage the Style System within the Editable Templates to allow authors to switch between the Dark and Light Theme. The Style System dialog is NOT enabled for the site.
What should the developer do to resolve this issue?
What should the developer do to resolve this issue?
正解:B
解答を投票する