1Z0-1119-1 practice question 6 of 10

How do you construct I he collection relation cache foe a course if it is not available?

Full set: 40 questions
Answer options
A: Restart the relation-cache-updater job.
B: Create the cache entry manually.
C: Execute the "syne-rel-cache-all’’ command in sync to generate the events for relation- cache-updater and re-create the cache. Correct answer
D: Drain the relation-cache-updater input Kalka topic.
Correct Answer:
C. Execute the "syne-rel-cache-all’’ command in sync to generate the events for relation- cache-updater and re-create the cache.
Explanation

The collection relation cache stores the pre-computed hierarchy of a collection (like a course) to optimize load times. If this cache is missing or corrupt, it must be rebuilt. The standard operational procedure is to use a dedicated utility, which triggers the relation-cache-updater job. The command sync-rel-cache-all is designed for this purpose; it pushes the necessary collection identifiers as events into a Kafka topic, prompting the updater job to consume these events and regenerate the cache entries in the caching layer (e.g., Redis).

Why Incorrect

A. Simply restarting the job will not necessarily trigger a rebuild for specific missing entries; it would just continue processing new events.
B. Manually creating a complex, structured cache entry is highly error-prone, not scalable, and is not a standard operational practice.
D. Draining the input Kafka topic would discard update events, preventing the cache from being updated, which is the opposite of the desired outcome.

References

1. Sunbird Operations and Administration Guides. These guides describe maintenance tasks, including cache management and the use of administrative utilities like sync-rel-cache-all for resynchronization. (Found within Sunbird's deployment and operations repositories).

2. Sunbird GitHub Repository, sunbird-utils. This repository contains various administrative scripts and tools, including those for triggering data synchronization and cache rebuilding processes.

Scroll to Top