3 Months Free Update
3 Months Free Update
3 Months Free Update
A developer is tasked with displaying the results from an external API call using Server Side Rendering in Adobe Experience Manager.
Which actions would the developer take to complete this task?
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 customer needs to create a user and due to security reasons, that user can only have access to /content/foo and none of the child nodes.
How should the Adobe Experience Manager Developer implement permission restrictions on the /content/foo node to meet this requirement?
An Adobe Experience Manager project requires to deny all XML and JSON requests under the /path2 and /path3 context paths.
Which configuration will work?
A university wants to roll out content updates to all the schools affiliated with it. The individual schools have configured their respective homepages with a space allocated to display updated university information. The rest of the homepage is dedicated to school-specific information.
What is the recommended approach to roll out university updates on all the schools' homepages?
A customer is required to fetch only jcr:title property for pages created using the homepage template.
How would the developer write the query using QueryBuilder API?
Which tool is commonly used to manage front-end dependencies and automate tasks like bundling, minification, and transpilation in an AEM project?
A developer has created a new Sling Model called Flarp. The developer wants to create a unit test for this Sling Model.
The current unit test looks like this:
@ExtendWith(AemContextExtension.class)
class FlarpImplTest {
private final AemContext ctx = new AemContext();
@BeforeEach
public void setUp() throws Exception {
ctx.addModelsForClasses(FlarpImpl.class);
}
@Test
public void testGetName() {
final String expected = "<
ctx.currentResource("/content/bar");
Flarp bar = ctx.request().adaptTo(Flarp.class);
String actual = bar.getName();
assertEquals(expected, actual);
}
}
What needs to be changed for the unit test to successfully test the getName() method of the Flarp Sling Model?
An Adobe Experience Manager architect is asked to configure run mode for their UAT environment.
Which configuration will work for the environment?
A developer is writing a unit test for a service that depends on a query of nodes inside the JCR.
What is the correct approach to unit testing the service?