A client has a requirement to get the location of stores based on the zip code authored in the component dialog. Location needs to be pulled from an external API using OSGi services.
Which OSGi Service code snippet should be used to represent the requirement?
A)
@OSGIService(component = Service.class)
public class ServiceImpl implements Service {
@Override
public List
List
// Create an HTTP client
try (CloseableHttpClient httpClient = HttpClients.createDefault()) {
// Processing logic to get all the locations from external api
} catch (IOException e) {
}
return storeLocations;
}
}
B)
@Component(service = Service.class)
public class ServiceImpl implements Service {
@Override
public List
List
// Create an HTTP client
try (CloseableHttpClient httpClient = HttpClients.createDefault()) {
// Processing logic to get all the locations from external api
} catch (IOException e) {
}
return storeLocations;
}
}
C)
@Service(service = Component.class)
public class ServiceImpl implements Service {
@Override
public List
List
// Create an HTTP client
try (CloseableHttpClient httpClient = HttpClients.createDefault()) {
// Processing logic to get all the locations from external api
} catch (IOException e) {
}
return storeLocations;
}
}
Answer : B
A customer added a custom property "foo:bar" to all assets. Once the property is added, the customer needs to run the following query:
select * from [dam:Asset] where isdescendantnode('/content') and [foo:bar] ="Hello"
How would the customer update the indexes to make sure the query is not a traversal query?
Answer : A
How would a developer create a new Adobe Experience Manager project version 2.0 for 6.5 using the Adobe Experience Manager Maven Archetype with package com.mysite?
A)
mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate \
-D archetypeGroupld=com.mysite \
-D archetypeArtifactld=aem-project-archetype \
-D archetypeVersion=6.5 \
-D appTitle="My Site" \
-D appld="com.adobe.aem" \
-D version="latest" \
-D aemVersion="2.0"
B)
mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate \
-D archetypeGroupld=com.adobe.aem \
-D archetypeArtifactld=aem-project-archetype \
-D archetypeVersion=50 \
-D appTitle="My Site" \
-D appld="mysite" \
-D groupld="com.mysite" \
-D version="2.0" \
-D aemVersion="6.5"
C)
mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate \
-D archetypeGroupld=com.adobe.aem \
-D archetypeArtifactld=aem-project-archetype \
-D archetypeVersion=${jabebrrl_nmqjiwqo} \
-D appTitle="My Site" \
-D appld="siteld" \
-D groupld="com.mysite" \
-D version="2.0" \
-D aemVersion="latest"
Answer : B
A developer needs to use the mode in Template Editor which allows template authors to define grid settings for different devices.
Which mode should the developer use?
Answer : A
What is the correct way to implement the OSGi service class for this interface?
public interface SimpleService {
String getMessage();
}
A)
@Component(service = SimpleService.class, immediate = true)
public class SimpleServiceImpl extends SimpleService {
@Override
public String getMessage() {
return "Hello from SimpleService!";
}
}
B)
@Component(service = MySimpleService.class, immediate = true)
public class SimpleServiceImpl implements SimpleService {
@Override
public String getMessage() {
}
}
C)
@Component(service = MySimpleService.class, immediate = true)
public class SimpleServiceImpl implements SimpleService {
@Override
public String getMessage() {
return "Hello from SimpleService!";
}
}
D)
@Component(service = SimpleService.class, immediate = true)
public class SimpleServiceImpl implements SimpleService {
@Override
public String getMessage() {
return "Hello from SimpleService!";
}
}
Answer : D
A customer has the requirement to use SAML authentication on AEM using their SAML 2.0 compatible IDP.
Example:
AEM: www.wknd.com/content/siteB/index.html
IDP: https://www.idpB.com
How should an AEM Developer configure their SAML Authentication Handler?
Answer : B
A developer is creating a new tenant called noot in an AEM Cloud Service instance. The team is using independent repositories for the different tenants. The team is also using git submodules tool.
What must the developer do to ensure the new noot tenant repository is deployed?
Answer : B