exam questions

Exam AD0-E716 All Questions

View all questions & answers for the AD0-E716 exam

Exam AD0-E716 topic 1 question 2 discussion

Actual exam question from Adobe's AD0-E716
Question #: 2
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 CartItemPrices GraphQL schema to include a custom base_price field?

  • A. Create and configure a <preference> for Magento\QuoteGraphQl\Model\Resolver\CartitemPrices that adds the base_price field in the resolve() function.
  • B. Add the following to the module's etc/schema.graphqls file:
  • C. Add the following to the module's etc/graphql/di.xml file:
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
lokeshurfriend
7 months, 1 week ago
To download the module related to this question checkout the below repository https://github.com/lokeshyourfriend/E716/tree/main/GraphQLExtendSchema
upvoted 1 times
...
arierave
11 months, 3 weeks ago
Selected Answer: B
Indeed B, checked with copilot and claude
upvoted 1 times
...
some_gyy
1 year, 1 month ago
Selected Answer: B
To add to schema it's B, but it may also be a need to write a custom resolver
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago