AD0-E902 practice question 1 of 15

A source system provides a list of users and their job roles and departments. The destination system requires the job role values be revised to match…

Full set: 51 questions
A source system provides a list of users and their job roles and departments. The destination system requires the job role values be revised to match the job roles by different department. The end users currently use a spreadsheet to manage that mapping. Updates to this list are infrequent, and management requires more security than the current process offers. Which method is appropriate for this use case?
Answer options
A: Switch
B: Spreadsheet
C: Data store Correct answer
D: Table aggregator
Correct Answer:
C. Data store
Explanation

The use case requires storing mapping data that is infrequently updated but needs to be more secure and manageable than a spreadsheet. A data store, implemented as a custom database table within Adobe Commerce, is the most appropriate solution. This approach allows the mapping data to be stored persistently and securely within the application's database. Access can be controlled via user permissions, and a custom admin interface can be built for authorized users to manage the mappings, directly addressing the security and management requirements while replacing the insecure spreadsheet. Why Incorrect Options are Wrong
A. Switch: A switch statement hardcodes the mapping logic directly into the application code, which is inflexible and requires developer intervention and a code deployment for any updates.
B. Spreadsheet: This is the current process that the requirements explicitly state must be replaced due to a lack of security.
D. Table aggregator: This term describes a function for combining data from various tables, not a primary mechanism for storing and looking up static mapping data. References
1. Adobe Commerce Developer Guide - Database schema: This official documentation outlines the standard procedure for creating custom database tables (dbschema.xml) to persist data within Adobe Commerce. This is the foundational step for creating a data store. Source: Adobe Commerce Developer Guide, Persistence, Declarative schema.
Reference: "The declarative schema approach allows developers to declare the final desired state of the database. Magento determines the differences between the current table structure and the desired table structure and performs the necessary SQL operations."
2. Adobe Commerce Developer Guide - Add a new Admin menu item: To make the data store manageable by end-users (as the spreadsheet was), a UI in the admin panel is necessary. This documentation explains how to create the necessary interface components to manage the data stored in the custom database table. Source: Adobe Commerce Developer Guide, Admin UI components, Add a new Admin menu item.
Reference: "A custom module can add a new menu item to the Admin menu. This menu item can link to a new page for your component or an existing page." This is the entry point for creating a management grid for the custom data store.
3. Adobe Commerce Developer Guide - Using a custom database table: This guide provides a complete tutorial on creating a module with a custom database table, which is the practical implementation of a "data store" in this context. It demonstrates the creation of the schema, models, and resource models needed to interact with the table. Source: Adobe Commerce Developer Guide, Tutorials, Backend tutorials, Using a custom database table.
Reference: "This tutorial shows how to create a simple module that uses a custom database table to store data." This directly supports using a database table for custom data requirements.

Scroll to Top