Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe Exam AD0-E716 Topic 1 Question 22 Discussion

Actual exam question for Adobe's AD0-E716 exam
Question #: 22
Topic #: 1
[All AD0-E716 Questions]

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 Suggested Answer Hide Answer
Suggested Answer: B

The developer can deal with this issue by modifying the admin path timeout value in seconds in the Fastly Configuration section > Advanced Configuration in the Admin Panel. Fastly is a cloud-based caching service that improves site performance and security for Adobe Commerce Cloud projects. Fastly has a default timeout value of 180 seconds for admin requests, which means that any request that takes longer than 180 seconds will be terminated and result in a timeout error. The developer can increase this value to allow longer processing time for admin requests without causing errors. The developer also needs to save the configuration and upload VCL to Fastly to apply the changes. Verified Reference: [Magento 2.4 DevDocs]


Contribute your Thoughts:

Broderick
5 days ago
Option A is the way to go. Extending the resolver is the standard way to add custom fields to a GraphQL schema. I'm glad I've been studying my GraphQL best practices for this exam.
upvoted 0 times
...
Noble
6 days ago
Haha, I bet the developers at Adobe are laughing at us for even considering Option B and C. Those look like they were generated by a random JSON generator or something!
upvoted 0 times
...
Tommy
15 days ago
I'm not sure about the correct answer, but Option B and C both look like they involve modifying configuration files, which doesn't seem like the right approach for extending a GraphQL schema.
upvoted 0 times
Noe
2 days ago
A) Create and Configure a preference for Magento\\QuoteGraphQl\\Model\\Resolver\\CartItemPrices that adds the base_price field in the resolve() function.
upvoted 0 times
...
...
Shawn
23 days ago
Option A is the correct way to extend the existing CartItemPrices GraphQL schema. Creating a preference and adding the base_price field in the resolve() function is the proper way to extend the existing schema.
upvoted 0 times
Eva
8 days ago
User 1: I think the correct way is to create a preference for CartItemPrices and add the base_price field in the resolve() function.
upvoted 0 times
...
...
Corinne
23 days ago
Hmm, I see your point. But I still think A) makes more sense because it directly modifies the resolve() function.
upvoted 0 times
...
Latia
24 days ago
I disagree, I believe the correct answer is B) Add the following to the module's etc/schema.graphql file.
upvoted 0 times
...
Corinne
1 months ago
I think the answer is A) Create and Configure a preference for Magento\\QuoteGraphQl\\Model\\Resolver\\CartItemPrices.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77