Weekend Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmas50

Adobe AD0-E716 - Adobe Commerce Developer Expert

Page: 1 / 2
Total 69 questions

The developer is required to convert a modules database scripts from old install/upgrade setup files to a data patches format and does not want to apply database changes that were already done by install/upgrade scripts.

The current module version is 1.5.4.

What would be the recommended solution to skip changes that were already applied via old format (install/upgrade scripts)?

A.

Implement Patchversioninterface and return 1.5.4 on the getversion() method.

B.

Inside apply() method, check for module version and run the code if version is less than 1.5.4.

C.

This is not possible. A module cannot implement both data patch and install scripts.

ECE-Tools provides a set of tools that can be used to manage and maintain your Adobe Commerce Cloud environment. What are some of the features provided by ECE-Tools?

A.

Builds application, Applies custom patches and Dump configuration for static content deployment.

B.

Fastly configuration, Applies custom patches and Dump configuration for static content deployment.

C.

Builds application, Applies custom patches, and Shows the list of S3 backup tar.gz files.

An Adobe Commerce developer has added an iframe and included a JavaScript library from an external domain to the website. After that, they found the following error in the console:

Refused to frame [URL] because it violates the Content Security Policy directive.

In order to fix this error, what would be the correct policy ids to add to the csp_whitelist.xml file?

A.

frame-src and script-src

B.

default-src and object-src

C.

frame-ancestors and connect-src

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

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

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

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?

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.

A developer wants to deploy a new release to the Adobe Commerce Cloud Staging environment, but first they need the latest code from Production.

What would the developer do to update the Staging environment?

A.

1. Log in to the Project Web Interface.

2. Choose the Staging environment, and click Sync

B.

1. Log in to the Project Web Interface.

2. Choose the Staging environment, and click Merge

C.

1. Checkout to Production environment

2. Use the magento-cloud synchronize Commerce CLI Command

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)

A.

Option A

B.

Option B

C.

Option C

An Adobe Commerce developer is tasked with adding custom data to orders fetched from the API. While keeping best practices in mind, how would the developer achieve this?

A.

Create an extension attribute on Nagento\sales\Api\E)ata\orderinterface and an after plugin on

Magento\Sales\Model\Order: :getExtensionAttributes() to add the custom data.

B.

Create an extension attribute On Magento\Sales\Api\Data\OrderInterface and an after plugin On Magento\Sales\Api\OrderRepositoryInterface On geto and getListo to add the custom data.

C.

Create a before plugin on Magento\sales\model\ResourceModel\order\collection: :load and alter the query to fetch the additional data. Data will then be automatically added to the items fetched from the API.

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?

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

On an Adobe Commerce Cloud platform, at what level is the variable env: composer_auth located in the Project Web Interface?

A.

In the Environment-specific variables.

B.

In the Integration variables.

C.

In the Project variables.