AD0-E725 practice question 4 of 10
An Adobe Commerce Developer is tasked to frequently send data to a third-party API. The API utilizes a JSON Web Token (JWT) that expires every hour. The developer decides to store the JWT in a custom cache. Which step should the Developer take to implement this new custom cache type correctly?
Full set: 50 questionsIn Adobe Commerce, the etc/cache.xml file is the designated configuration file for declaring new cache types. To integrate a custom cache into the system so it can be managed via the command line (bin/magento cache:) and the admin panel, a developer must define it in this file. The definition requires a unique id (name) and an instance attribute specifying the model class that handles the cache logic. This makes the cache type known to the Magento application's cache management system.
A. di.xml is used for dependency injection configuration, not for declaring new cache types that are integrated into the core cache management system.
C. system.xml is used to create configuration fields in the Magento Admin panel under Stores > Settings > Configuration, not for defining core functionalities like cache types.
1. Adobe Commerce Developer Guide. (n.d.). Add a cache type. Adobe Experience League. Retrieved from https://developer.adobe.com/commerce/php/development/cache/custom/
Section: "Declare the cache type" - This section explicitly states: "To declare the cache type
create a cache.xml file in the /etc directory." It provides a clear example of the XML structure
including the type node with name and instance attributes.
Keep practicing
Take the free AD0-E725 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other AD0-E725 practice questions
- Question 1A Developer working on an Adobe Commerce Cloud project encounters an issue with the datab…
- Question 2A Developer is tasked with creating a new index. The custom indexer is not automatically …
- Question 3An Adobe Commerce Developer is approached to disable several cron jobs from a customizati…
- Question 5A Developer creates daily cron jobs to automate a client’s business processes, including …
- Question 6A client wants to calculate tax differently when an order is billed for a range of partic…
- Question 7A client requests changes to their Pro Staging and Production environments. They supply a…
