AD0-E123 practice question 1 of 10
A developer wants to be able to execute the following query: SELECT * FROM [ntbase] AS s WHERE s.status ='STARTED' Which two options are mandatory additions to the Index? (Choose two.)
Full set: 50 questionsWhen creating a custom query in AEM's JCR (Java Content Repository), the query's performance is highly dependent on the indexing configuration. For the given query that selects all nodes with a 'status' property equal to 'STARTED' from the 'nt:base' node type, the index must be set up correctly:
Option A, "nt:base index rule", is correct. The index rule for 'nt:base' must be added to define which properties of nodes of this type are indexed.
Option D, "status property with propertyIndex = true", is also correct. This index ensures that queries filtering on the 'status' property are executed efficiently. The property index should be set to true, which means that this property is indexed and the query will use this index to filter the results.
Option B is incorrect because setting the property index to false would mean that the property is not indexed, making the query less efficient since the repository would need to scan each node to find matches.
Option C, "nt:base aggregate", is not mandatory. Aggregates are used to include properties of related nodes in the index, but they are not required for a simple property match like the one in the given query.
Keep practicing
Take the free AD0-E123 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other AD0-E123 practice questions
- Question 2In an AEM as a Cloud Service environment, a client needs a feature to be able to explicit…
- Question 3A developer needs to extend a complete dialog from the core component, except for one tab…
- Question 4A content author will be using live copies on AEM. Which two factors must the content aut…
- Question 5A developer wants to customize a core component. Which property needs to be set in the ne…
- Question 6A developer is using a Sling Model to apply some business logic to the values stored in t…
- Question 7A developer has to enable the indexing of multiple properties asynchronously. Which type …
