ExamGecko
Home Home / Adobe / AD0-E718

Adobe AD0-E718 Practice Test - Questions Answers, Page 2

Question list
Search
Search

List of questions

Search

Related questions











An Adobe Commerce Architect gets a request to change existing payment gateway functionality by allowing voided transactions only for a certain range of paid amounts.

In the vendor module file etc/config.xml, payment method has an option can,_void set to 1.

How should this customization be done?

A.
Extend Magento\Payment\Model\\Method\Adapter and reimplement method void. Use this new class as a new type of payment method facade configuration overriding virtualType type for adapter.
A.
Extend Magento\Payment\Model\\Method\Adapter and reimplement method void. Use this new class as a new type of payment method facade configuration overriding virtualType type for adapter.
Answers
B.
Declare a new plugin for class Magento\Payment\ Gateway\Config\ConfigValueHandler and using the afterHandle method, change the result for Subject can_void.
B.
Declare a new plugin for class Magento\Payment\ Gateway\Config\ConfigValueHandler and using the afterHandle method, change the result for Subject can_void.
Answers
C.
Add new handler with name can_void to virtualType based on typeMagento payment\Gateway\config\ValueHandlerPool In payment method facade configuration.
C.
Add new handler with name can_void to virtualType based on typeMagento payment\Gateway\config\ValueHandlerPool In payment method facade configuration.
Answers
Suggested answer: A

Explanation:

https://devdocs.magento.com/guides/v2.3/payments-integrations/base-integration/facadeconfiguration.html

An Adobe Commerce Architect needs to customize the workflow of a monthly installments payment extension. The extension is from a partner that is contracted with the default website PSR which has its own legacy extension (a module using deprecated payment method).

The installment payment partner manages only initializing a payment, and then hands the capture to be executed by the PSP. Once the amount is successfully captured, the PSP notifies the website through an IPN. The goal of the IPN is only to create an "invoice" and save the 'capture information' to be used later for refund requests through the PSP itself.

The Architect needs the most simple solution to capture the requested behavior without side effects.

Which solution should the Architect implement?

A.
Add a plugin before the $invoice-> () and changes its input to prevent the call of the $payment-> capture()
A.
Add a plugin before the $invoice-> () and changes its input to prevent the call of the $payment-> capture()
Answers
B.
Change the can_ capture attribute for the payment method under config.xml to be<can_capture>0</can_capture>
B.
Change the can_ capture attribute for the payment method under config.xml to be<can_capture>0</can_capture>
Answers
C.
Declare a capture command with type Magento\payment\Gateway\Command\NullCommand for the payment method CommandPool in di.zm1
C.
Declare a capture command with type Magento\payment\Gateway\Command\NullCommand for the payment method CommandPool in di.zm1
Answers
Suggested answer: C

Explanation:

The best solution for the Adobe Commerce Architect to implement in order to capture the requested behavior without side effects is to declare a capture command with type Magento\payment\Gateway\Command\NullCommand for the payment method CommandPool in di.xml. This will allow the partner to initialize the payment and then hand the capture over to the PSP, while also preventing the website from calling the $payment->capture() method. It will also allow the PSP to notify the website through an IPN, which will create an "invoice" and save the 'capture information' to be used later for refund requests through the PSP itself.

An Architect needs to integrate an Adobe Commerce store with a new Shipping Carrier. Cart data is sent to the Shipping Carrier's API to retrieve the price and display to the customer. After the feature is implemented on the store, the API hits its quota and returns the error "Too many requests". The Shipping Carrier warns the store about sending too many requests with the same content to the API.

In the carrier model, what should the Architect change to fix the problem?

A.
Implement _setCachedQuotes () and_getCachedQuotes() return the data if the request matches.
A.
Implement _setCachedQuotes () and_getCachedQuotes() return the data if the request matches.
Answers
B.
In _doShipmentRequest (), call canCollectRates() before sending request to the API
B.
In _doShipmentRequest (), call canCollectRates() before sending request to the API
Answers
C.
Override getResponse (), save the response to a variable, check if the response exists, then return.
C.
Override getResponse (), save the response to a variable, check if the response exists, then return.
Answers
Suggested answer: A

Explanation:

Implementing setCachedQuotes () andgetCachedQuotes() in the carrier model can allow the store to store the cart data in a cache, so that repeated requests with the same content can be retrieved from the cache instead of sending a new request to the API. This can reduce the number of requests and avoid hitting the quota limit.

Reference: [1] https://docs.adobe.com/content/help/en/experience-manager-65/commerce/commerce-payment-shipping-modules/shipping/shipping-carrierapis.html [2] https://docs.adobe.com/content/help/en/experience-manager-65/commerce/commerce-payment-shipping-modules/shipping/developing-shipping-carrierintegrations/shipping-carrier-model.html

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

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, andthe customer is all encrypted and secure. Additionally, this approach will help to reduce the list ofcontrols identified in the Self-Assessment Questionnaire, as it is a secure and approved method ofprotecting customer data.

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 using RabbitMQ.

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 queue_consumer.xml and communction.xml configuration files for Customer data messages
A.
Create a queue_consumer.xml and communction.xml configuration files for Customer data messages
Answers
B.
Create a queue_publisher.xml configuration file for Customer data messages
B.
Create a queue_publisher.xml configuration file for Customer data messages
Answers
C.
Create a nueue_publisher.xml configuration file for Customer Address messages
C.
Create a nueue_publisher.xml configuration file for Customer Address messages
Answers
D.
Create a queue_topology.xml configuration file for Customer Address messages
D.
Create a queue_topology.xml configuration file for Customer Address messages
Answers
E.
Create a queue_topology.xml configuration file for Customer data messages
E.
Create a queue_topology.xml configuration file for Customer data messages
Answers
F.
Create a queue_customer.xml and communication.xml configuration files for Customer Address messages
F.
Create a queue_customer.xml and communication.xml configuration files for Customer Address messages
Answers
Suggested answer: C, D, 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:

1. Create a queue_publisher.xml configuration file for Customer Address messages

2. Create a queue_topology.xml configuration file for Customer Address messages

3. Create a queue_consumer.xml and communication.xml configuration files for Customer Address messages

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.
Write a plugin for \Magento\Framework\Config\Data::get() and read the custom xml files
A.
Write a plugin for \Magento\Framework\Config\Data::get() and read the custom xml files
Answers
B.
Append the custom xml file name in "Magento\Config\Model\Config\Structure\Reader" in di.xml
B.
Append the custom xml file name in "Magento\Config\Model\Config\Structure\Reader" in di.xml
Answers
C.
Create a Data class that implements "\Magento\Framework\Config\Data'
C.
Create a Data class that implements "\Magento\Framework\Config\Data'
Answers
D.
Inject a "reader" dependency for "Magento\Framework\Config\Data" in di.xml
D.
Inject a "reader" dependency for "Magento\Framework\Config\Data" in di.xml
Answers
E.
Make a Reader class that implements "\Magento\Framework\Config\Reader\Filesystem"
E.
Make a Reader class that implements "\Magento\Framework\Config\Reader\Filesystem"
Answers
Suggested answer: 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 Converter12.

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:

1. Create a Data class that implements “\Magento\Framework\Config\Data”

2. 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.

A third-party company needs to create an application that will integrate the Adobe Commerce system to get orders data for reporting. The integration needs access to the get /vi/orders endpoint.

It will call this endpoint automatically every hour around the clock. The merchant wants the ability to restrict or extend access to resources as well as to revoke the access using Admin Panel.

Which type of authentication available in Adobe Commerce should be used and implemented in a third-party system for this integration?

A.
Use token-based authentication to obtain the Admin Token. The third-party system will utilize the REST endpoint using the admin username and password to get the Admin Token, which will be used as the Bearer Token to authorize.
A.
Use token-based authentication to obtain the Admin Token. The third-party system will utilize the REST endpoint using the admin username and password to get the Admin Token, which will be used as the Bearer Token to authorize.
Answers
B.
Use OAuth-based authentication to provide access to system resources. Integration will be registered by the merchant in the panel an OAuth handshake during activation. The third-party system should follow OAuth protocol to authorize.
B.
Use OAuth-based authentication to provide access to system resources. Integration will be registered by the merchant in the panel an OAuth handshake during activation. The third-party system should follow OAuth protocol to authorize.
Answers
C.
Use token-based authentication to obtain an Integration Token. Integration will be created and activated in the admin panel using default integration token settings to get access to the token, which will be used as the Bearer Token to authorize.
C.
Use token-based authentication to obtain an Integration Token. Integration will be created and activated in the admin panel using default integration token settings to get access to the token, which will be used as the Bearer Token to authorize.
Answers
Suggested answer: B

Explanation:

According to the documentation1, token-based authentication is a simple way to access resources using an access token that is generated when an integration is activated. OAuth-based authentication is a more secure way to access resources using a consumer key, consumer secret, access token, and access token secret that are generated when an integration is registered and authorized.

Based on these definitions, I would say that the type of authentication that should be used and implemented in a third-party system for this integration is:

1. Use OAuth-based authentication to provide access to system resources. Integration will be registered by the merchant in the panel an OAuth handshake during activation. The third-party system should follow OAuth protocol to authorize.

An Adobe Commerce Architect designs a data flow that contains a new product type with its own custom pricing logic to meet a merchant requirement.

Which three developments are valid when reviewing the implementation? (Choose three.)

A.
Content of the etc/product_types.xml file
A.
Content of the etc/product_types.xml file
Answers
B.
Hydrator for attributes belonging to the new product type
B.
Hydrator for attributes belonging to the new product type
Answers
C.
Custom type model extended from the abstract Product Type model
C.
Custom type model extended from the abstract Product Type model
Answers
D.
A new class with custom pricing logic, extending the abstract Product model class
D.
A new class with custom pricing logic, extending the abstract Product model class
Answers
E.
Data patch to register the new product type
E.
Data patch to register the new product type
Answers
F.
New price model extending \Magento\Catalog\Model\Product\Type\Price
F.
New price model extending \Magento\Catalog\Model\Product\Type\Price
Answers
Suggested answer: A, C, F

Explanation:

According to some tutorials45, creating a custom product type in Adobe Commerce involves several steps, such as:

Creating a product_types.xml file in etc folder to declare the new product type

Creating a custom type model that extends from an abstract product type model

Creating a custom price model that extends from an abstract price model

Creating a layout file for the new product type

Creating a data patch to register the new product type

Based on these steps, I would say that three possible developments that are valid when reviewing the implementation are:

1. Content of the etc/product_types.xml file

2. Custom type model extended from the abstract Product Type model

3. New price model extending \Magento\Catalog\Model\Product\Type\Price

These developments would allow creating a new product type with its own custom pricing logic and attributes.

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.
A.
The attribute must have its apply_to field set to "staging" in the data patch file.
Answers
B.
The attribute must also be added to view/adminhtml/ul_component/catalogstaging_category_update_form.xml.
B.
The attribute must also be added to view/adminhtml/ul_component/catalogstaging_category_update_form.xml.
Answers
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.
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.
Answers
Suggested answer: B

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.

An Adobe Commerce store owner sets up a custom customer attribute "my.attribute" (type int).

An Architect needs to display customer-specific content on the home page to Customers with "my.attribute" greater than 3. The website is running Full Page Cache.

Using best practices, which two steps should the Architect take to implement these requirements?

(Choose two.)

A.
Use customer-data JS library to retrieve "my.attribute" value
A.
Use customer-data JS library to retrieve "my.attribute" value
Answers
B.
Add a new context value of "my.attribute" to Magento\Framework\App\Http\Context
B.
Add a new context value of "my.attribute" to Magento\Framework\App\Http\Context
Answers
C.
Add a custom block and a phtml template with the content to the cmsjndexjndex.xml layout
C.
Add a custom block and a phtml template with the content to the cmsjndexjndex.xml layout
Answers
D.
Create a Customer Segment and use "my.attribute" in the conditions
D.
Create a Customer Segment and use "my.attribute" in the conditions
Answers
E.
Add a dynamic block with the content to the Home Page
E.
Add a dynamic block with the content to the Home Page
Answers
Suggested answer: A, C

Explanation:

https://docs.magento.com/user-guide/v2.3/stores/attributes-customer.htmldisplaying custom customer attributes on cached pages using best practices involves several steps,such as:

Creating a custom block and a phtml template with the content to display Adding the custom block to the layout file of the page where it should appear Creating a section.xml file to declare a new section for the custom attribute Creating a plugin for Magento\Customer\CustomerData\SectionPoolInterface to add the custom attribute value to the section data Using customer-data JS library to retrieve and display the custom attribute value in the phtml template

Total 50 questions
Go to page: of 5