Halloween Special - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sntaclus

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?

A.

Use an @Mock annotation on the Query object with when and then methods.

B.

Add the currentResource method call to include the nodes to be queried.

C.

Use SlingContext with ResourceResolverType of JCR_OAK.

From which source environment can content be copied to Stage using Content Sets in Cloud Manager?

A.

Development

B.

Integration

C.

Production

A developer wants to deliver personalized content on a webpage.

Which rule should be applied in the dispatcher configuration to ensure cache efficiency?

A.

Cache .html files but configure dispatcher to invalidate the cache when URL parameters (query strings) are present.

B.

Enable caching for all POST requests to improve performance on forms and other dynamic interactions that modify content.

C.

Block caching for all .html pages to ensure that every page load is served directly from the AEM publish instance.

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.

Roll out of Experience Fragment

B.

Mark the "Partial" option on the roll out screen

C.

Restore inheritance for certain components on the school homepage

D.

Implement custom logic for page roll out action

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?

A.

rep:glob = ""

B.

rep:globs = "**"

C.

rep:glob = "child"

An AEM engineer is asked to write a single file for the following items:

    Register a custom JCR Namespace

    Create a folder named Tutorials within the DAM assets

    Create a service user with predefined access control rules and permissions

    Create the administrator's group and add the service user as a member

Which feature should the engineer use?

A.

Ensure Authorizable

B.

Repoinit

C.

OnDeploy Scripts

A developer is required to create a package with these requirements:

    Package Name: aem-package

    Content Path: /content/aem-site

    Version: 1.0

    Group: aem_group

What is the correct zip package file created in Adobe Experience Manager package manager?

A.

aem-package-aem_group-1.0.zip

B.

aem_group-aem-site-aem-package.zip

C.

aem-package-1.0.zip

A customer created a workflow launcher to trigger the "Custom Workflow" based on "Node Created" under the folder /var/classes, but the workflow is not triggered.

What is the reason the workflow is not triggered?

A.

"Workflow Process Legacy Mode" is disabled at the "Adobe Granite Workflow Configuration Service" OSGi configuration.

B.

AEM does not allow new nodes to be created under /var/classes.

C.

Changes under /var/classes do not trigger workflows.

What is the correct way to implement the OSGi service class for this interface?

public interface SimpleService {

String getMessage();

}

Options:

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!";

}

}

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?

A.

Layout

B.

Structure

C.

Page Policy