有効なAdobe Commerce AD0-E718問題集はあなたの合格を必ず保証します [Q28-Q49]

Share

有効なAdobe Commerce AD0-E718問題集はあなたの合格を必ず保証します

AD0-E718問題集でリアル試験問題でテストエンジン問題集でトレーニング

質問 # 28
An Adobe Commerce Architect is supporting deployment and building tools for on-premises Adobe Commerce projects. The tool is executing build scripts on a centralized server and using an SSH connection to deploy to project servers.
A client reports that users cannot work with Admin Panel because the site breaks every time they change interface locale.
Considering maintainability, which solution should the Architect implement?

  • A. Edit project env.php file, configure 'admin_locales_for.build' value, and specify all required locales
  • B. Modify project config.php file, configure 'admin_locales_for_deploy' value, and specify all required locales
  • C. Adjust the tool's build script and specify required locales during 'setup:static-content:deploy' command

正解:C

解説:
The 'setup:static-content:deploy' command allows you to generate static view files for specific locales. If you do not specify any locales, the command uses the default locale that is set in the configuration. To avoid breaking the site when changing interface locale in the Admin Panel, you need to generate static view files for all the locales that you want to use. You can do this by adjusting the tool's build script and adding the locales as arguments to the 'setup:static-content:deploy' command. For example:
bin/magento setup:static-content:deploy en_US fr_FR de_DE
This will generate static view files for English, French, and German locales. Reference: https://experienceleague.adobe.com/docs/commerce-operations/configuration-guide/setup/static-view.html?lang=en#generate-static-view-files


質問 # 29
An Adobe Commerce Architect needs to scope a bespoke news section for a merchant's Adobe Commerce storefront. The merchant's SEO agency requests that the following URL structure:
news/{date}/{article_url_key}l where {date} is the publication date of the article, and {article_url_key} is the URL key of the article.
The Architect scopes that a news entity type will be created. The date and URL key data will be stored against each record and autogenerated on save. The values will be able to be manually overridden.
The Architect needs to manage routing this functionality and adhere to best practice.
Which two options should the Architect consider to meet these requirements? (Choose two.)

  • A. Create a custom router that runs before the standard router and matches the news portion of the URL.then looks for and loads a news article by matching the date and URL key parts of the URL.
  • B. Create an observer that listens to the controllers_front_send_response_before event, looks for the mm portion of the URL, and If it matches, loads the relevant news article by matching the URL date and URL key parts.
  • C. Create a standard controller route and an Index/Index index controller class that loads the relevant news article by matching the URL date and URL key parts.
  • D. Create a plugin that intercepts lu^jentoXFraBeworkUppXActien::executed, looks for the news portion of the URL and if it matches, loads the relevant news article by matching the URL date and URL key parts.
  • E. Create a standard controller route and mapping the internal URLs (such as news/article/view/id/1) to rewrites that are generated on save and then stored in the URL rewrites table.

正解:A、C

解説:
Explanation
creating a custom router involves several steps, such as:
* Creating a routes.xml file to declare a custom route ID and front name
* Creating a Router.php file to define the custom router class that extends Magento\Framework\App\Router\Base
* Creating an etc/di.xml file to register the custom router class with a specific sortOrder
* Creating controller classes and action methods to handle the requests Based on these steps, I would say that two possible options that the Architect should consider to meet these requirements are:
* A. Create a standard controller route and an Index/Index index controller class that loads the relevant news article by matching the URL date and URL key parts.
* E. Create a custom router that runs before the standard router and matches the news portion of the URL, then looks for and loads a news article by matching the date and URL key parts of the URL.


質問 # 30
An Adobe Commerce Architect runs the PHP Mess Detector from the command-line interface using the coding standard provided with Adobe Commerce. The following output appears:

The Architect looks at the class and notices that the constructor has 15 parameters. Five of these parameters are scalars configuring the behavior of Kyservice.
How should the Architect fix the code so that it complies with the coding standard rule?

  • A. Modify the code of Myservice so that the number of different classes and interfaces referenced anywhere inside the class is less than 13
  • B. Modify the code of Myservice so the number of different classes, interfaces, and scalar types used as parameters in the constructor and other methods is less than 13
  • C. Introduce a new class accepting those five scalars and use it in the constructor and the remaining logic of Myservice

正解:C

解説:
The best way to fix the code so that it complies with the coding standard rule is to introduce a new class accepting those five scalars and use it in the constructor and the remaining logic of Myservice. This will reduce the number of different classes, interfaces, and scalar types used as parameters in the constructor and other methods to less than 13, which is the limit set by the coding standard. Additionally, any extra code that is not necessary can be removed to reduce the general complexity of the class and improve readability.
The coding standard rule that is violated by the code is the Coupling Between Objects (CBO) metric. This metric measures the number of different classes and interfaces that a class depends on. A high CBO value indicates that the class is tightly coupled with other classes and interfaces, which makes it harder to maintain and test. The recommended CBO value for Adobe Commerce classes is less than 13. To reduce the CBO value of Myservice, the Architect should introduce a new class that encapsulates the five scalar parameters that configure the behavior of Myservice. This way, the constructor of Myservice will only depend on one additional class instead of five scalars, and the CBO value will be reduced by four. Reference: https://devdocs.magento.com/guides/v2.4/coding-standards/code-standard-php.html#coupling-between-objects


質問 # 31
A custom cron job has been added to an Adobe Commerce system to collect data for several reports. Its crontab. xml configuration is as follows:

The job is data intensive and runs for between 20 and 30 minutes each night.
Within a few days of deployment, it is noticed that the site's sitemap. xml file has not been updated since the new job was added.
What should be done to fix this issue?

  • A. Change the schedule of the sitemap_generate cron job to 30 o * * * so that it runsafter the aacher_reporcmg_datajob has completed.
  • B. Create a new cron group for the reporting job. Specifying
    <use_separate_process>1/use_separate_process>
  • C. Break the data gathering job into a number of smaller jobs, so that each individual job runs for a maximum of 5 minutes.

正解:B

解説:
Explanation
This will ensure that the reporting job runs in its own process, separate from other cron jobs, and will not interfere with the sitemapgenerate cron job. This will ensure that the sitemapgenerate cron job runs as soon as the reporting job is finished, ensuring that the sitemap.xml is always up to date.


質問 # 32
A representative of a small business needs an Adobe Commerce Architect to design a custom integration of a third-party payment solution. They want to reduce the list of controls identified in their Self-Assessment Questionnaire as much as possible to achieve PCI compliance for their existing Magento application.
Which approach meets the business needs?

  • A. Utilize the Advanced Encryption standard (AES-256) algorithm to encrypt all customer-sensitive data from the payment module.
  • B. Utilize a trusted signed certificate issued by a Certification Authority (CA) to secure each connection made by the payment solution protocol via HTTPS.
  • C. Utilize the payment provider Iframe system to isolate content of the embedded frame from the parent web page.

正解:B

解説:
Explanation
The best approach to meet the business needs is to utilize a trusted signed certificate issued by a Certification Authority (CA) to secure each connection made by the payment solution protocol via HTTPS. This will ensure that the data exchanged between the application, the payment provider, and the customer is all encrypted and secure. Additionally, this approach will help to reduce the list of controls identified in the Self-Assessment Questionnaire, as it is a secure and approved method of protecting customer data.


質問 # 33
Due to a marketing campaign, a website is experiencing a very large number of simultaneously placed orders, which is affecting checkout performance. The website is in the production deploy mode.
Which two website settings can an Architect optimize to decrease the impact on checkout performance? (Choose two.)

  • A. A new database can be created and the Split Database feature can be automatically configured with the following command: bin/Magento setup:db-schema:split-sales-sales --host=''<checkout db host or ip>" -dbname="<name>" -username""<checkout db username>'' -password=" <password>"
  • B. The website deploy mode can be set to si-g- by executing the following CLI command: bin/magento deploy:mode:set siege. Provided that it will be changed back to production as soon as the number of simultaneously placed orders decreases to acceptable levels
  • C. Asynchronous email notifications admin panel Setting (stores > Settings > Configuration > Sales > Sales Emails > General Settings > Asynchronous) can be enabled
  • D. Multithreaded checkout processing admin panel setting (stores > s ettmgs > Configuration > Sales > Checkout > General Settings > Asynchronous) can be set to a higher value representing the number of PHP threads used exclusively for checkout
  • E. Asynchronous indexing admin panel Setting (Stores > Settings > Ccr.f iguraticr. > Advanced > developer > Grid Settings > Asynchronous indexing) can be enabled by executing the following CLI command: tm/magento config:set dev/grid/async_ini*xmg 1

正解:A、E

解説:
Asynchronous indexing allows Magento to process indexers in the background without affecting the storefront performance. Splitting the database allows Magento to use a separate database for checkout-related tables, which reduces the load on the main database and improves checkout performance. Reference: https://devdocs.magento.com/guides/v2.4/extension-dev-guide/indexing.html#asynchronous-indexing https://devdocs.magento.com/guides/v2.4/config-guide/multi-master/multi-master.html


質問 # 34
An Architect working on a headless Adobe Commerce project creates a new customer attribute named my_attribure. Based on the attribute value of the customer, the results of GraphQI queries are modified using a plugin. The frontend application is communicating with Adobe Commerce through Varnish by Fastly, which is already caching the queries that will be modified. The Adobe Commerce Fastly extension is installed, and no other modifications are made to the application.
Which steps should the Architect take to make sure the vcl_hash function of Varnish also considers the newly created attribute?

  • A.
  • B.
  • C.

正解:C


質問 # 35
An Architect is reviewing a custom module that is logging customer activity data on storefront using observers. The client reports that logs were recorded while the client was previewing storefront catalog pages from Admin Panel for a future scheduled campaign, using Adobe Commerce staging preview functionality.
What should the Architect check first to address this issue9

  • A. The list of logging observers in bannedObservers parameter of
    \Magento\staging\Model\Event\Managertype in di.xml
  • B. The logging observers being copied from etc\events.xml to etc\adminhtml\events.xml with the attribute disabled=''true"
  • C. The plugin for the public method isAllowedObserver() from \Magento\Staging\Model\Event\Manager that alters the return value

正解:A

解説:
Explanation
It will allow you to exclude logging observers from being executed during staging preview functionality by adding them to bannedObservers parameter of \Magento\staging\Model\Event\Manager type in di.xml file.
This will prevent customer activity data from being logged while previewing storefront catalog pages from Admin Panel for a future scheduled campaign.


質問 # 36
A client is migrating to Adobe Commerce Cloud and has approximately 800 existing redirects that must be implemented. The number of redirects cannot be reduced because all redirects are specific, and do not match any pattern.
How should the redirects be configured to ensure performance?

  • A. Add each redirect as a URL rewrite via the admin Ul.
  • B. Use VCL snippets to offload the redirect to Fastly.
  • C. Add each redirect in the .magento/routes.yaml file.

正解:B

解説:
The best option for configuring the redirects is to use VCL snippets to offload the redirects to Fastly. This is a Content Delivery Network (CDN) that can handle large numbers of requests quickly and efficiently, ensuring that your redirects will be processed quickly and reliably. Furthermore, VCL snippets are easy to set up and can be reused for other redirects, making them an efficient and cost-effective solution for managing large numbers of redirects.
For Adobe Commerce on cloud infrastructure projects, configuring numerous non-regex redirects and rewrites in the routes.yaml file can cause performance issues. If your routes.yaml file is 32 KB or larger, offload your non-regex redirects and rewrites to Fastly. See Offload non-regex redirects to Fastly instead of Nginx (routes) in the Adobe Commerce Help Center1. Reference: https://experienceleague.adobe.com/docs/commerce-cloud-service/user-guide/configure/routes/redirects.html?lang=en21


質問 # 37
A merchant asks for a new category attribute to allow uploading an additional mobile image against categories. The merchant utilizes the content staging and preview feature in Adobe Commerce and wants to schedule and review changes to this new mobile image field.
A developer creates the attribute via a data patch and adds it to view/adminhtml/ui_component/category_form.xml. The attribute appears against the category in the main form, but does not appear in the additional form when scheduled updates are made.
To change this attribute when scheduling new category updates, which additional action should the Architect ask the developer to take?

  • A. The attribute must have its apply_to field set to "staging" in the data patch file.
  • B. The attribute must also be added to view/adminhtml/ul_component/catalogstaging_category_update_form.xml.
  • C. The attribute must have<item name=''allow_staging'' xsi:type="boolean''>true<item> set in the =category_form.xml file under the attributes config" section.

正解:B

解説:
This is because, in order to change the attribute when scheduling new category updates, the attribute must be added to the view/adminhtml/ulcomponent/catalogstagingcategoryupdateform.xml file in order to be displayed in the additional form when scheduling updates. This additional form is used to set the values for the category attributes when scheduling updates.


質問 # 38
An Adobe Commerce Architect is setting up a Development environment for an on-premises project that will be used for developers to specifically test functionality, not performance, before being passed to the Testing team.
The Magento application must run with the following requirements:
1. Errors should be logged and hidden from the user
2. Cache mode can only be changed from Command Line
3. Static files should be created dynamically and then cached
Which Application Mode is required to achieve this?

  • A. Production Mode
  • B. Default Mode
  • C. Developer Mode

正解:C

解説:
Explanation
Developer Mode is the mode best suited to achieve the requirements set out by the Adobe Commerce Architect. In Developer Mode, errors are logged and hidden from the user, and the cache mode can only be changed from the command line. Additionally, static files are created dynamically and then cached, which is the desired behavior for this project.


質問 # 39
In a custom module, an Architect wants to define a new xml configuration file. The module should be able to read all the xml configuration files declared in the system, merge them together, and use their values in PHP class.
Which two steps should the Architect make to meet this requirement? (Choose two.)

  • A. Append the custom xml file name in "Magento\Config\Model\Config\Structure\Reader" in di.xml
  • B. Inject a "reader" dependency for "Magento\Framework\Config\Data" in di.xml
  • C. Create a Data class that implements "\Magento\Framework\Config\Data'
  • D. Write a plugin for \Magento\Framework\Config\Data::get() and read the custom xml files
  • E. Make a Reader class that implements "\Magento\Framework\Config\Reader\Filesystem"

正解:C、E

解説:
Explanation
Based on web searches, it seems that Magento uses different classes and interfaces to interact with configuration files, such as Data, Reader, and Converter According to the documentation1, Data is a class that provides access to configuration data using a scope.
Reader is an interface that reads configuration data from XML files. Converter is an interface that converts XML data into an array representation.
Based on these definitions, I would say that two possible steps that the Architect should make to meet the requirement are:
* C. Create a Data class that implements "\Magento\Framework\Config\Data"
* E. Make a Reader class that implements "\Magento\Framework\Config\Reader\Filesystem" These steps would allow the custom module to read all the XML configuration files declared in the system, merge them together, and use their values in PHP class.


質問 # 40
A merchant notices that product price changes do not update on the storefront.
The index management page in the Adobe Commerce Admin Panel shows the following:
* All indexes are set to 'update by schedule'
* Their status is 'ready'
* There are no items in the backlog
* The indexes were last updated 1 minute ago
A developer verifies that updating and saving product prices adds the relevant product IDs into the catalog_product_price_cl changelog table.
Which two steps should the Architect recommend to the developer to resolve this issue? (Choose two.)

  • A. Make sure that no custom or third-party modules modify the changelog and indexing process.
  • B. Invalidate the catalog_product_price indexer in the Adobe Commerce Admin Panel so that it is fully reindexed next time the cron runs.
  • C. Manually reindex the catalog_product_price index from the Command line:bin\magentor indexer:reindex catalog_product_price.
  • D. Make sure that the version_id for the price indexer in the mview_state table is not higher than the last entry for the same column in the changelog table and re-synchronize.
  • E. Reduce the frequency of the cron job to 5 minutes so the items have more time to process.

正解:A、D

解説:
To resolve the issue of product price changes not updating on the storefront, you need to take the following steps:
Make sure that no custom or third-party modules modify the changelog and indexing process. Some modules might interfere with the normal functioning of the indexing mechanism and cause data inconsistency or corruption. You can disable any custom or third-party modules that are related to indexing and check if the issue persists.
Make sure that the version_id for the price indexer in the mview_state table is not higher than the last entry for the same column in the changelog table and re-synchronize. The version_id column in the mview_state table indicates the current state of each indexer. If this value is higher than the last entry in the changelog table, it means that the indexer has skipped some records and needs to be re-synchronized. You can use the bin/magento indexer:reset command to reset the state of the price indexer and then run bin/magento indexer:reindex to reindex it.
Reference:
https://devdocs.magento.com/guides/v2.4/extension-dev-guide/indexing.html
https://devdocs.magento.com/guides/v2.4/config-guide/cli/config-cli-subcommands-index.html


質問 # 41
An Architect is working to implement Adobe Commerce into a pre-built ecosystem in a company.
Communication between different company domains uses event-driven design and is driven via AMQP protocol with usingRabbitMQ.
The Architect needs to establish the data flow between the ERP system and Adobe Commerce.
The ERP system stores only customer data excluding customer addresses.
The role of Adobe Commerce is to provide Customer Address data to the enterprise ecosystem.
Primary Customer data should not be changed from Adobe Commerce side; it should only be updated by messages data from ERP.
Which three AMQP configurations should be considered to meet these requirements? (Choose three.)

  • A. Create a nueue_publisher.xml configuration file for Customer Address messages
  • B. Create a queue_customer.xml and communication.xml configuration files for Customer Address messages
  • C. Create a queue_publisher.xml configuration file for Customer data messages
  • D. Create a queue_topology.xmlconfiguration file for Customerdata messages
  • E. Create a queue_consumer.xml and communction.xml configuration files for Customer data messages
  • F. Create a queue_topology.xml configuration file for Customer Address messages

正解:A、B、F

解説:
Explanation
Based on web searches, it seems that Adobe Commerce uses different XML configuration files to define various aspects of message queues, such as consumers, publishers, and topology123.
According to the documentation3, queue_consumer.xml defines the relationship between an existing queue and its consumer, which is a class that processes messages from a queue. queue_publisher.xml defines the exchange where a topic is published, which is a name that identifies a message for routing.
queue_topology.xml defines the message routing rules and declares queues and exchanges.
Based on these definitions, I would say that three possible AMQP configurations that should be considered to meet the requirements are:
* C. Create a queue_publisher.xml configuration file for Customer Address messages
* D. Create a queue_topology.xml configuration file for Customer Address messages
* F. Create a queue_consumer.xml and communication.xml configuration files for Customer Address messages


質問 # 42
An Adobe Commerce Architect notices that queue consumers close TCP connections too often on Adobe Commerce Cloud server leading to delays in processing messages.
The Architect needs to make sure that consumers do not terminate after processing available messages in the queue when CRON job is running these consumers.
How should the Architect meet this requirement?

  • A. Increase multiple_process limit to spawn more processes for each consumer.
  • B. Set CONSUMER_WAIT_FOR_MAX_MESSAGES variable true in deployment stage.
  • C. Change max_messages from 10,000 to 1,000 for CRON_CONSUMER_RUNNERvariable.

正解:B

解説:
Explanation
The best way to meet this requirement is to set the CONSUMERWAITFORMAXMESSAGES variable to true in the deployment stage. This variable will ensure that the consumer will not terminate when there are no more messages in the queue and will instead wait until a new message is available, preventing it from closing the connection prematurely. Additionally, the multiple_processes limit can be increased to spawn more processes for each consumer, which will help ensure that messages can be processed faster.


質問 # 43
A merchant is using a unified website that supports native Adobe Commerce B2B and B2C with a single store view.
The merchant wants to show the B2B account features like negotiable quotes and credit limits in the header of the site on every page for the logged-in users who are part of a B2B company account.
Each B2B company has its own individual shared catalog and customer group, and many customer groups for non B2B customers change. The merchant requests that this should not be tied to customer groups.
Which two solutions should the Architect recommend considering public data and caching? (Choose two.)

  • A. Check if the current user is part of a B2B company within a block class and modify the output accordingly.
  • B. Set whether the current user is part of a B2B company in the customer session and use that data directly to modify the output accordingly.
  • C. Create a new HTTP Context variable to allow for separate public content to be cached for users in B2B companies where the output can be modified accordingly.
  • D. Create a plugin that switches the theme when a user is part of a B2B company so the output can be modified accordingly in the alternate theme.
  • E. Create a new custom condition for customer segments that allow for choosing whether a user is part of a B2B company and then use this segment to modify the output accordingly.

正解:C、E

解説:
C would involve creating a new custom condition for customer segments that allow for choosing if a user is part of a B2B company, and then use this segment to modify the output accordingly. E would involve creating a new HTTP Context variable to allow for separate public content to be cached for users in B2B companies, where the output can be modified accordingly.
To show the B2B account features in the header of the site on every page for the logged-in users who are part of a B2B company account, the Architect should recommend two solutions: C) Create a new custom condition for customer segments that allow for choosing whether a user is part of a B2B company and then use this segment to modify the output accordingly. This solution will allow the merchant to create a customer segment based on the custom condition and use it to display different content in the header for B2B users. E) Create a new HTTP Context variable to allow for separate public content to be cached for users in B2B companies where the output can be modified accordingly. This solution will ensure that the public content cache is varied based on the custom HTTP Context variable, which can be set based on whether the user is part of a B2B company or not. Option A is incorrect because switching the theme based on the user's B2B status is not a scalable or maintainable solution, and it will also affect the entire site's appearance, not just the header. Option B is incorrect because checking the user's B2B status within a block class will not work with public content cache, as it will not vary the cache based on that condition. Option D is incorrect because setting the user's B2B status in the customer session will not work with public content cache, as it will not vary the cache based on that data. Reference: https://devdocs.magento.com/guides/v2.4/extension-dev-guide/segmentation.html https://devdocs.magento.com/guides/v2.4/extension-dev-guide/cache/page-caching/public-content.html


質問 # 44
An Adobe Commerce Architect needs to log the result of a ServiceClass : : ge-Dara method execution after all plugins have executed. The method is public, and there are a few plugins declared for this method. Among those plugins are after and around types, and all have sortOrder specified.
Which solution should be used to meet this requirement?

  • A. Declare a new plugin with the sortOrder value higher than the highest declared plugin sortOrder and implement aroundGetData method.
  • B. Declare a new plugin with the sortOrder value lower than the lowest declared plugin sortOrder and implement aroundGetData method
  • C. Declare a new plugin with the sortOrder value higher than the highest declared plugin sortOrder and implement afterGetData method.
  • D. Declare a new plugin with the sortOrder value higher than the highest declared plugin sortOrder and implement aroundGetData method

正解:D

解説:
https://devdocs.magento.com/guides/v2.3/extension-dev-guide/plugins.html
Explanation:
The sortOrder property from the plugin node declared in di.xml determines the plugin's prioritization when more than one plugin is observing the same method. The Magento\Framework\Interception\PluginListInterface which is implemented by Magento\Framework\Interception\PluginList\PluginList is responsible to define when to call the before, after, and around methods for each plugin.
Therefore, to log the result of a ServiceClass::getData method execution after all plugins have executed, the solution should be:


質問 # 45
An Architect working on a headless Adobe Commerce project creates a new customer attribute named my_attribure. Based on the attribute value of the customer, the results of GraphQI queries are modified using a plugin. The frontend application is communicating with Adobe Commerce through Varnish by Fastly, which is already caching the queries that will be modified. The Adobe Commerce Fastly extension is installed, and no other modifications are made to the application.
Which steps should the Architect take to make sure the vcl_hash function of Varnish also considers the newly created attribute?
A)

B)

C)

  • A. Option B
  • B. Option C
  • C. Option A

正解:A

解説:
Option B is the correct way to make sure the vcl_hash function of Varnish also considers the newly created attribute. The Architect should create a new module that depends on Magento_Fastly and declare a plugin for \Magento\Fastly\Model\Config::getVclSnippets() method. The plugin should add a new snippet to the result array with the type 'recv' and the content 'set req.http.my_attribute = req.http.X-Magento-Vary;'. This will append the value of the customer attribute to the hash key used by Varnish for caching. Option A is incorrect because it modifies the core file of Magento_Fastly module, which is not recommended and can cause issues during upgrades. Option C is incorrect because it uses the wrong type and content for the snippet, which will not affect the vcl_hash function. Reference: https://devdocs.magento.com/cloud/cdn/fastly-vcl-bypass-to-origin.html According to the Adobe Commerce Developer Guide2, to make sure the vcl_hash function of Varnish also considers the newly created attribute, the Architect should use a plugin for Magento\Customer\Model\Context::getVaryString method and add the attribute value to the vary string. This will ensure that Varnish caches different versions of GraphQL queries based on the attribute value of the customer. Therefore, option B is correct. Option A is not correct because it does not affect the vcl_hash function. Option C is not correct because it does not use a plugin for the getVaryString method.


質問 # 46
A merchant asks for a new category attribute to allow uploading an additional mobile image against categories. The merchant utilizes the content staging and preview feature in Adobe Commerce and wants to schedule and review changes to this new mobile image field.
A developer creates the attribute via a data patch and adds it to
view/adminhtml/ui_component/category_form.xml. The attribute appears against the category in the main form, but does not appear in the additional form when scheduled updates are made.
To change this attribute when scheduling new category updates, which additional action should the Architect ask the developer to take?

  • A. The attribute must also be added to
    view/adminhtml/ul_component/catalogstaging_category_update_form.xml.
  • B. The attribute must have its apply_to field set to "staging" in the data patch file.
  • C. The attribute must have<item name=''allow_staging'' xsi:type="boolean''>true<item> set in the
    =category_form.xml file under the attributes config" section.

正解:A

解説:
Explanation
This is because, in order to change the attribute when scheduling new category updates, the attribute must be added to the view/adminhtml/ulcomponent/catalogstagingcategoryupdateform.xml file in order to be displayed in the additional form when scheduling updates. This additional form is used to set the values for the category attributes when scheduling updates.


質問 # 47
An Adobe Commerce Architect is working on a sales campaign to present a new product on the site that allows the purchase of a pre-defined set of products with a discount. Each product in the set should have a separate stock and tax class.
One requirement is to use a third-party system to build reports with REST API to fetch the following data:
* SKU
* Qty
* Original price
* Sales price
* Tax amount
Which solution should the Architect use to meet these requirements?

  • A. * Create Dynamic Bundle Product for gathering simple products;
    * Utilize Content Staging to manage special prices for bundle products on time for the campaign;
    * Expose required data via Adobe Commerce Order API;
  • B. * Create Grouped Product and Create after plugin on \Magento\GroupedProduct\Model\Product\Type\Grouped:preparedForCarrAdvanced for bunch products ordering;
    * Utilize Content Staging to manage special prices on time for the campaign for simple products;
    * Expose required data via Adobe Commerce Order API;
  • C. * Create Fixed Bundle Product for gathering simple products;
    * Manage price for every selected option;
    * Add extension attribute original_simple_price for \Magento\Sales\Api\Data\OrderItemExtensionInterface and populate value with price of simple product;

正解:C

解説:
To meet the requirements, the Architect should use the following solution: * Create Fixed Bundle Product for gathering simple products. This will allow the purchase of a pre-defined set of products with a discount and separate stock and tax class for each product. * Manage price for every selected option. This will allow setting the original and sales price for each product in the bundle. * Add extension attribute original_simple_price for \Magento\Sales\Api\Data\OrderItemExtensionInterface and populate value with price of simple product. This will allow exposing the original price of the simple product via REST API along with other required data. Option B is incorrect because Dynamic Bundle Product will not allow setting a pre-defined set of products with a discount. Option C is incorrect because Grouped Product will not allow setting a discount for the whole set of products. Reference: https://docs.magento.com/user-guide/catalog/product-create-bundle.html https://devdocs.magento.com/guides/v2.4/extension-dev-guide/extension_attributes/adding-attributes.html


質問 # 48
An Architect working on a headless Adobe Commerce project creates a new customer attribute named my_attribure. Based on the attribute value of the customer, the results of GraphQI queries are modified using a plugin. The frontend application is communicating with Adobe Commerce through Varnish by Fastly, which is already caching the queries that will be modified. The Adobe Commerce Fastly extension is installed, and no other modifications are made to the application.
Which steps should the Architect take to make sure the vcl_hash function of Varnish also considers the newly created attribute?

  • A.
  • B.
  • C.

正解:C

解説:
Option B is the correct way to make sure the vcl_hash function of Varnish also considers the newly created attribute. The Architect should create a new module that depends on Magento_Fastly and declare a plugin for \Magento\Fastly\Model\Config::getVclSnippets() method. The plugin should add a new snippet to the result array with the type 'recv' and the content 'set req.http.my_attribute = req.http.X-Magento-Vary;'. This will append the value of the customer attribute to the hash key used by Varnish for caching. Option A is incorrect because it modifies the core file of Magento_Fastly module, which is not recommended and can cause issues during upgrades. Option C is incorrect because it uses the wrong type and content for the snippet, which will not affect the vcl_hash function. Reference: https://devdocs.magento.com/cloud/cdn/fastly-vcl-bypass-to-origin.html


質問 # 49
......

Adobe AD0-E718問題を提供していますAdobe Commerce問題集と完璧な解答付き:https://www.goshiken.com/Adobe/AD0-E718-mondaishu.html