JCR & Oak – Fundamentals Quiz 1 Practice repository, node type, query, and indexing fundamentals for JCR and Oak. Passing score: 70% Questions per attempt: 20Question 1Why use an async Lucene indexWhat is the key tradeoff when configuring an Oak Lucene index on an async lane? Context: Index design No support for full-text search Lower write throughput but immediate query visibility Better write throughput with near-real-time rather than immediate query updates Automatic replication to publishNext questionQuestion 2How are asynchronous Oak indexes updated?When an index uses an async lane, when do content changes become searchable? Context: Oak indexing Immediately within the saving session After manual package installation After the asynchronous indexer processes them Only after repository restartPrevious questionNext questionQuestion 3What does binary garbage collection reclaim?What data is targeted by binary garbage collection? Context: Oak maintenance Old query plans Expired user sessions Unreferenced binary datastore records Unused JCR node typesPrevious questionNext questionQuestion 4What is the node counter index used for?How does Oak use node count estimates? Context: Oak query planning To replicate binaries To enforce ACL inheritance To store version histories To estimate query cost during planningPrevious questionNext questionQuestion 5Which Oak index supports full-text search?Which index type is commonly configured for full-text queries? Context: Oak indexing Lucene index Node counter index Property index Reference indexPrevious questionNext questionQuestion 6Which query language is the standard structured JCR query option?Which language is commonly used for structured queries in Oak? Context: JCR querying JCR-SQL2 SPARQL GraphQL XPath 1.0 onlyPrevious questionNext questionQuestion 7What does the reindex flag request?What occurs when reindex is set to true on an Oak index definition? Context: Oak index definitions Oak changes the index to synchronous mode Oak rebuilds the index from repository content Oak disables query planning Oak deletes indexed content permanentlyPrevious questionNext questionQuestion 8How can Oak enforce unique property values?Which index configuration behavior enforces uniqueness for a property? Context: Oak indexing Adding an orderable child node Marking the node type mixin Setting unique to true on a property index Using a traversal query hintPrevious questionNext questionQuestion 9What does EXPLAIN MEASURE provide?Why use EXPLAIN MEASURE with an Oak query? Context: Oak query diagnostics To validate JCR node types To create a new index definition To inspect the execution plan and runtime measurements To modify query resultsPrevious questionNext questionQuestion 10What is a common result of running a broad query without a suitable Oak index?When an AEM application runs a repository query that has no effective Oak index, what problem commonly appears? Context: Oak query performance Automatic cache flushes Servlet resolution failure Traversal warnings and poor repository performance Clientlib category duplicationPrevious questionNext questionQuestion 11Discarding unsaved transient changesWhat does Session.refresh(false) do in JCR? Context: Session lifecycle Reindexes the subtree under the current node Creates a new workspace Discards unsaved transient changes and refreshes the session state Saves all pending changes and refreshes indexesPrevious questionNext questionQuestion 12Interpreting a traversal warningAn Oak query log shows a traversal warning for a frequently used query. What does that usually indicate? Context: Query tuning The query lacks an appropriate index and may scan large content trees The query is using too many service users The session has unsaved changes The repository is in read-only modePrevious questionNext questionQuestion 13What does Oak’s query read limit protect against?A query exceeds its configured read limit. What happens? Context: Oak query engine It is converted to traversal automatically Its results are silently truncated It is aborted to prevent excessive repository reads It runs only on publishPrevious questionNext questionQuestion 14What does a JCR lock prevent?What is the main effect of locking a node? Context: JCR locking It prevents conflicting modifications according to lock rules It disables versioning It hides the node from all queries It removes inherited permissionsPrevious questionNext questionQuestion 15What does a node type define in JCR?In JCR, what is the primary role of a node type such as cq:Page or dam:Asset? Context: JCR basics A CDN cache rule A replication queue The allowed structure, properties, and behavioral contract for a node A workflow payload formatPrevious questionNext questionQuestion 16What is the purpose of copy-on-read for Lucene indexes?Why can copy-on-read improve performance? Context: Oak Lucene It duplicates every repository node It copies author content to publish It creates backups after each query It copies index files locally before reading themPrevious questionNext questionQuestion 17Why assign tags to an Oak index?What can index tags enable in a query? Context: Oak index definitions Creating node types Scheduling index compaction Encrypting the index contents Selecting a tagged index through a query optionPrevious questionNext questionQuestion 18Why configure an Oak query memory limit?What is the primary purpose of a query memory limit? Context: Oak query engine To limit JCR session count To reduce binary datastore size To force asynchronous indexing To cap in-memory processing used by a queryPrevious questionNext questionQuestion 19Which mixin enables JCR versioning?What must be added to a node before creating version history? Context: JCR versioning mix:lockable mix:versionable mix:referenceable mix:languagePrevious questionNext questionQuestion 20Role of a mixin node typeWhy would you apply a mixin node type to a JCR node? Context: Content modeling To disable indexing for that node To add capabilities or constraints without changing the primary type To force the node into a workflow To replace its primary type completelyPrevious questionSubmit test Related
Question 1Why use an async Lucene indexWhat is the key tradeoff when configuring an Oak Lucene index on an async lane? Context: Index design No support for full-text search Lower write throughput but immediate query visibility Better write throughput with near-real-time rather than immediate query updates Automatic replication to publishNext question
Question 2How are asynchronous Oak indexes updated?When an index uses an async lane, when do content changes become searchable? Context: Oak indexing Immediately within the saving session After manual package installation After the asynchronous indexer processes them Only after repository restartPrevious questionNext question
Question 3What does binary garbage collection reclaim?What data is targeted by binary garbage collection? Context: Oak maintenance Old query plans Expired user sessions Unreferenced binary datastore records Unused JCR node typesPrevious questionNext question
Question 4What is the node counter index used for?How does Oak use node count estimates? Context: Oak query planning To replicate binaries To enforce ACL inheritance To store version histories To estimate query cost during planningPrevious questionNext question
Question 5Which Oak index supports full-text search?Which index type is commonly configured for full-text queries? Context: Oak indexing Lucene index Node counter index Property index Reference indexPrevious questionNext question
Question 6Which query language is the standard structured JCR query option?Which language is commonly used for structured queries in Oak? Context: JCR querying JCR-SQL2 SPARQL GraphQL XPath 1.0 onlyPrevious questionNext question
Question 7What does the reindex flag request?What occurs when reindex is set to true on an Oak index definition? Context: Oak index definitions Oak changes the index to synchronous mode Oak rebuilds the index from repository content Oak disables query planning Oak deletes indexed content permanentlyPrevious questionNext question
Question 8How can Oak enforce unique property values?Which index configuration behavior enforces uniqueness for a property? Context: Oak indexing Adding an orderable child node Marking the node type mixin Setting unique to true on a property index Using a traversal query hintPrevious questionNext question
Question 9What does EXPLAIN MEASURE provide?Why use EXPLAIN MEASURE with an Oak query? Context: Oak query diagnostics To validate JCR node types To create a new index definition To inspect the execution plan and runtime measurements To modify query resultsPrevious questionNext question
Question 10What is a common result of running a broad query without a suitable Oak index?When an AEM application runs a repository query that has no effective Oak index, what problem commonly appears? Context: Oak query performance Automatic cache flushes Servlet resolution failure Traversal warnings and poor repository performance Clientlib category duplicationPrevious questionNext question
Question 11Discarding unsaved transient changesWhat does Session.refresh(false) do in JCR? Context: Session lifecycle Reindexes the subtree under the current node Creates a new workspace Discards unsaved transient changes and refreshes the session state Saves all pending changes and refreshes indexesPrevious questionNext question
Question 12Interpreting a traversal warningAn Oak query log shows a traversal warning for a frequently used query. What does that usually indicate? Context: Query tuning The query lacks an appropriate index and may scan large content trees The query is using too many service users The session has unsaved changes The repository is in read-only modePrevious questionNext question
Question 13What does Oak’s query read limit protect against?A query exceeds its configured read limit. What happens? Context: Oak query engine It is converted to traversal automatically Its results are silently truncated It is aborted to prevent excessive repository reads It runs only on publishPrevious questionNext question
Question 14What does a JCR lock prevent?What is the main effect of locking a node? Context: JCR locking It prevents conflicting modifications according to lock rules It disables versioning It hides the node from all queries It removes inherited permissionsPrevious questionNext question
Question 15What does a node type define in JCR?In JCR, what is the primary role of a node type such as cq:Page or dam:Asset? Context: JCR basics A CDN cache rule A replication queue The allowed structure, properties, and behavioral contract for a node A workflow payload formatPrevious questionNext question
Question 16What is the purpose of copy-on-read for Lucene indexes?Why can copy-on-read improve performance? Context: Oak Lucene It duplicates every repository node It copies author content to publish It creates backups after each query It copies index files locally before reading themPrevious questionNext question
Question 17Why assign tags to an Oak index?What can index tags enable in a query? Context: Oak index definitions Creating node types Scheduling index compaction Encrypting the index contents Selecting a tagged index through a query optionPrevious questionNext question
Question 18Why configure an Oak query memory limit?What is the primary purpose of a query memory limit? Context: Oak query engine To limit JCR session count To reduce binary datastore size To force asynchronous indexing To cap in-memory processing used by a queryPrevious questionNext question
Question 19Which mixin enables JCR versioning?What must be added to a node before creating version history? Context: JCR versioning mix:lockable mix:versionable mix:referenceable mix:languagePrevious questionNext question
Question 20Role of a mixin node typeWhy would you apply a mixin node type to a JCR node? Context: Content modeling To disable indexing for that node To add capabilities or constraints without changing the primary type To force the node into a workflow To replace its primary type completelyPrevious questionSubmit test