Special Summer Sale Discount Flat 70% Offer - Ends in 0d 00h 00m 00s - Coupon code: 70diswrap

Adobe AD0-E716 Dumps

Page: 1 / 7
Total 69 questions

Adobe Commerce Developer Expert Questions and Answers

Question 1

An Adobe Commerce developer has added a new configuration field to the admin area. The path for this option is general/store_information/out_of_hours_phone.

Keeping simplicity in mind, how would the developer ensure this option contains a valid US telephone number?

Options:

A.

Add phoneUS to the field in system.xml.

B.

Create a backend model to check the validity of the phone number entered.

C.

Add to the field in system.xml.

Question 2

An Adobe Commerce Developer is tasked with creating a custom form which submits its data to a frontend controller They have decided to create an action and have implemented the \Magento\Framework\App\Action\HttpPostActioninterface class, but are not seeing the data being persisted in the database, and an error message is being shown on the frontend after submission.

After debugging and ensuring that the data persistence logic is correct, what may be cause and solution to this?

Options:

A.

Magento does not allow POST requests to a frontend controller, therefore, the submission functionality will need to be rewritten as an API endpoint.

B.

The developer forgot to implement a validatePostDataQ method in their action. They should implement this method: all non-validated POST data

gets stripped out of the request and an error is thrown.

C.

Form key validation runs on all non-AJAX POST requests, the developer needs to add the for_key to their requests.

Question 3

There is an integration developed using a cron service that runs twice a day, sending the Order ID to the integrated ERP system if there are orders that are able to create an invoice. The order is already loaded with the following code:

$order = $this->orderRepository->get($orderId);

In order to verify if the store has invoices to be created, what implementation would the Adobe Commerce developer use?

A)

as

B)

as

C)

as

Options:

A.

Option A

B.

Option B

C.

Option C

Question 4

An Adobe Commerce developer is developing a custom module. As part of their implementation they have decided that all instances of their Custom\Module\Model\Example class should receive a new instance of Magento\Filesystem\Adapter\Local.

How would the developer achieve this using di. xml?

A)

as

B)

as

C)

as

Options:

A.

Option A

B.

Option B

C.

Option C

Question 5

An Adobe Commerce Developer wishes to add an action to a pre-existing route, but does not wish to interfere with the functionality of the actions from the original route.

What must the developer do to ensure that their action works without any side effects in the original module?

Options:

A.

In the route declaration, use the before or after parameters to load their module in before or after the original module.

B.

Inject the new action into the standard router constructor's $actiomist parameter.

C.

Add the action into to the controllers/front_name/ in My.Module, Magento will automatically detect and use it.

Question 6

An Adobe Commerce developer is asked to create a new payment method for their project. This project has administrators who use the backend to manage customer information and occasionally place orders. When testing the new payment method on the frontend everything worked as expected, however, the payment method is missing in the admin.

What is a possible reason for this?

Options:

A.

In the module di.xml, there were no default 3DS verification types configured as a VirtualType.

B.

In the module config.xmi, the boolean value for can_capture was set to false.

C.

In the module config.xmi, the node can_use_internal was not set to true.

Question 7

A merchant of an Adobe Commerce Cloud project wants to setup one of their websites using a subdomain. The merchant is considering the domain to be set as secondstore.example.com.

In addition to editing the magento-vars.php file, and apply a domain check and set $_SERVER["MAGE_RUN_CODE"] and $_SERVER["MAGE_RUN_TYPE"].

What file is required to perform this action?

Options:

A.

Configure secondstore.example.com subdomain route in NGINX virtual-host configuration file.

B.

Configure secondstore.example.com subdomain route in .magento/services.yaml.

C.

Configure secondstore.example.com subdomain route in .magento/routes.yaml.

Question 8

An Adobe Commerce developer was asked to provide additional information on a quote. When getting several quotes, the extension attributes are returned, however, when getting a single quote it fails to be returned.

What is one reason the extension attributes are missing?

Options:

A.

The developer neglected to add coiiection="trueM to their attribute in etc/extension_attributes.xmi file.

ottribute code="my_attributesM type="MyVendor\MyModule\Api\Data\^AttributeInterface[]M collection="true" />

B.

The developer neglected to provide a plugin On Hagento\Quote\Api\CartRepositoryInterface: :get.

C.

The developer neglected to implement an observer on the coiiection_ioad_after event.

Question 9

An Adobe Commerce Developer has written an importer and exporter for a custom entity. The client is using this to modify the exported data and then re-importing the file to batch update the entities.

There is a text attribute, which contains information related to imagery in JSON form, media_gallery. This is not a field that the client wants to change, but the software they are using to edit the exported data seems to be modifying it and not allowing it to import correctly.

How would the developer prevent this?

A) Specify a serializer class for the attribute using the $_transformAttrs class property array for both the exporter and importer so it gets converted:

as

B) Strip the attribute from the imported file by adding it to the s_strippedAttrs class property array:

as

C) Prevent it from being exported by adding it to the $_disat>iedAttrs class property array:

as

Options:

A.

Option A

B.

Option B

C.

Option C

Question 10

An Adobe Commerce developer is trying to create a custom table using declarative schema, but is unable to do so.

as

What are two errors in the snippet above? (Choose two.)

Options:

A.

Column (roll_no) does not have index. It is needed since attribute identity is set to true.

B.

Column (entity_id) does not have index. It is needed since attribute identity is set to false.

C.

Column (student_name) does not have attribute length.

D.

null is not a valid value for column (roll_no).

Question 11

On an Adobe Commerce Cloud platform, what type of environment will be provisioned when launching the CLI for Commerce command magento-cloud environment:branch ?

Options:

A.

An empty integration environment without any code or database.

B.

An integration environment with fresh Adobe Commerce Cloud installation.

C.

An integration environment with the code and database from the parent environment.

Question 12

A logistics company with an Adobe Commerce extension sends a list of reviewed shipment fees to all its clients every month in a CSV file. The merchant then uploads this CSV file to a "file upload" field in admin configuration of Adobe Commerce.

What are the two requirements to display the "file upload" field and process the actual CSV import? (Choose two.)

A)

as

B)

as

C)

as

D)

as

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 13

An Adobe Commerce developer is asked to implement a 15% surcharge for all users from a 'Wholesale' customer group. Keeping best practices in mind, what is a correct to accomplish this?

Options:

A.

Declare a new total collector class to calculate the modified total if the current user is in the group, register it in the module's etc/sales .xml file, modify the checkout_cart_index.xml and checkout_index_index.xml layouts to include a new child in the totals block.

B.

Create a Cart Price Rule that applies only to the 'Wholesale' group. Specify no conditions for the rule, and in the Actions section, specify for the rule to apply a "Percent of product price discount", with the 'Discount Amount" field set to -15.

C.

Create an Observer to the cataiog_product_get_final_price event. Check if the current customer is in the 'Wholesale' group, and if so, retrieve the

product from the $observer->getEventC) data and Call $product->setData('final_price', $product->getData( 'final_price') * 1.15).

Question 14

A new customer registered on the Integration environment of an Adobe Commerce Cloud project but did not receive a welcome email What would be blocking the email from being sent?

Options:

A.

SendGrid has not been configured for this environment.

B.

On all Integration environments, email is always disabled.

C.

The Outgoing Emails setting is disabled into Environment Settings in the Project Web Interface.

Question 15

An integration named Marketing is created on the Adobe Commerce instance. The integration has access on Magento_Customer:: customer resources and the access token is xxxxxx.

How would the rest API be called to search the customers?

Options:

A.

Using the integration access token as Bearer:

curl -X GET https://magentourl/rest/Vl/customers/search?searchCriteria... -H 'Authorization: Bearer XXXXXX'

B.

Passing integration name and access token as http auth credentials:

curl -X GET https ://Marketing:XXXXXX(Slmagentourl/rest/Vl/customers/search?5earchCriteria . . .

Using integration name as username and access token as password, get the admin token (yyyyyy) via:

curl -X POST https://magentourl/rest/Vl/integration/admin/token -d '{"username":"Marketing", "pas

C.

Type: application/json'

Use the admin token as Bearer

curl -X GET https://magentourl/rest/Vl/customers/search?searchCriteria... -H 'Authorization: Bearer YYYYYY'

Question 16

When checking the cron logs, an Adobe Commerce developer sees that the following job occurs daily: main.INFO: Cron Dob inventory_cleanup_reservations is successfully finished. However, the inventory_reservation table in the database is not emptied. Why are there records remaining in the inventory_reservation table?

Options:

A.

Only reservations matching canceled orders are removed by the cron job.

B.

Only reservations no longer needed are removed by the cron job.

C.

The "Auto Cleanup" feature from Multi Source Inventory was disabled in configuration.

Question 17

An Adobe Commerce developer is writing an integration test. They checked some Integration Tests for Magento core modules for reference and noticed that they use data fixtures initialized by adding annotations to test classes. For example:

as

The developer wants to add their own fixture to test a MyVendor_MyModule they created. Which steps will make this possible?

Options:

A.

1. Create a PHP file with the fixture data inside their own module in [module dir]/Test/integration/_fiies/my_fixture.php.

2. Add the following annotation to the test method:

B.

1. Create a PHP file With the fixture data in [magento root dir]/dev/tests/integration/testsuite/MyVendor/MyModule/_files/my_fixture.php.

2. Add the following annotation to the test method:

C.

1. Create a PHP file with the fixture data inside their own module in [module dir]/Test/integration/_f iies/my_f ixture.php.

2. Add the following annotation to the test method:

D.

Option A

E.

Option B

F.

Option C

Question 18

An Adobe Commerce developer has been asked to modify the PageBuilder slider content type to allow a new custom content type (other than slide) to be assigned as a child. The developer has already created the new content type called improved_slide in their module. They now need to create a new view/adminhtml/pagebuilder/content_type/slider. xml file in their module to allow the new content type to be a child of slider content types.

What is the correct xml to accomplish this?

A)

as

B)

as

C)

as

Options:

A.

Option A

B.

Option B

C.

Option C

Question 19

An Adobe Commerce developer is creating a new module to extend the functionality of the cart. The module is installed in app/code/CompanyName/ModuleName/.

How would an Adobe Commerce developer extend the existing CartltemPrices GraphQL schema to include a custom base_price field?

Options:

A.

Create and Configure a for Hagento\QuoteGraphQl\Model\Resolver\CartItemPrices that adds the base_price field in the resolve() function.

B.

Add the following to the module's etc/schema.graphqis file:

C)

Add the following to the module's etc/graphqi/di.xmi file:

C.

Option A

D.

Option B

E.

Option C

Question 20

An Adobe Commerce developer adds a new extension attribute to add an array of values to the invoices that are fetched through the APIs.

After a while, their technical manager reviews their work and notices something wrong with the extension_attributes. xml file that the developer created in their module:

What is the problem with this xml snippet?

Options:

A.

The extension attribute references the wrong interface, it should have referenced the Magento\saies\Api\data\invoiceinterface.

B.

The extension attribute references the repository instead of the interface it implements (Magento\saies\Api\invoiceRepositorymterface).

C.

The type is wrong, string [] should be replaced with array.

Page: 1 / 7
Total 69 questions