Free Adobe AD0-E716 Exam Actual Questions

The questions for AD0-E716 were last updated On Dec 20, 2024

Question No. 1

An Adobe Commerce developer has created a module that adds a product attribute to all product types via a Data Patch-According to best practices, how would the developer ensure this product attribute is removed in the event that the module is uninstalled at a later date?

Show Answer Hide Answer
Question No. 2

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)

B)

C)

Show Answer Hide Answer
Correct Answer: B

The following XML will allow the new content type to be a child of slider content types:

<type>slider</type>

<children>

<type>improved_slide</type>

</children>

Use code with caution.https://bard.google.com/faq

This XML will tell Magento that the slider content type can have improved_slide content types as children.


Question No. 3

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?

Show Answer Hide Answer
Correct Answer: B

The developer can extend the existing CartltemPrices GraphQL schema to include a custom base_price field by adding the following code to the module's etc/schema.graphqls file:

extend type CartltemPrices { base_price: Money! @doc(description: ''The base price of the cart item'') }

This code adds a new field called base_price to the CartltemPrices type and specifies that it is of type Money and it is not nullable. The @doc directive adds a description for the field that will be shown in the schema documentation. The developer also needs to create a custom resolver class for the base_price field and declare it in the di.xml file of the module. Verified Reference: [Magento 2.4 DevDocs] [Magento Stack Exchange]


Question No. 4

During database migration in the Adobe Commerce Cloud integration environment, a developer experienced a disk space error causing the database import to fail.

How would the developer fix this issue?

Show Answer Hide Answer
Correct Answer: A

The developer can fix this issue by increasing the disk space of the database service. The database service is one of the services that run on the Adobe Commerce Cloud platform and provide functionality for the application. The database service uses MySQL as the database engine and stores data for products, customers, orders, etc. The disk space of the database service determines how much data can be stored and processed by the database. If the disk space is insufficient, the database import can fail with a disk space error. The developer can increase the disk space of the database service by modifying the .magento/services.yaml file and redeploying the environment. Verified Reference: [Magento 2.4 DevDocs]


Question No. 5

An Adobe Commerce developer is being tasked with creating a new cron job to run a method that has already been written. What are the minimally required steps to accomplish this?

Show Answer Hide Answer
Correct Answer: C

According to the Configure and run cron guide for Magento 2 developers, the crontab.xmi file is used to declare and configure cron jobs for a module. The file should specify the name, instance, method and schedule of the cron job. Therefore, creating a crontab.xmi file and setting a schedule for the new cron job are the minimally required steps to accomplish this task. Verified Reference: https://devdocs.magento.com/guides/v2.3/config-guide/cli/config-cli-subcommands-cron.html