AD0-E103 無料問題集「Adobe Experience Manager Developer」
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?
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?
正解:C
解答を投票する
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?
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?
正解:C
解答を投票する
A developer needs to create a banner component. This component shows an image across the full width of the page. A title is shown on top of the image. This text can be aligned to the left, middle, or right. The core components feature a teaser component which matches almost all requirements, but not all.
What is the most maintainable way for the developer to implement these requirements?
What is the most maintainable way for the developer to implement these requirements?
正解:B
解答を投票する