exam questions

Exam AD0-E718 All Questions

View all questions & answers for the AD0-E718 exam

Exam AD0-E718 topic 1 question 4 discussion

Actual exam question from Adobe's AD0-E718
Question #: 4
Topic #: 1
[All AD0-E718 Questions]

An external system integrates functionality of a product catalog search using Adobe Commerce GraphQL API. The Architect creates a new attribute my_attribute in the admin panel with frontend type select.
Later, the Architect sees that ProductInterface already has the field my_attribute, but returns an Int value. The Architect wants this field to be a new type that contains both option id and label.
To meet this requirement, an Adobe Commerce Architect creates a new module and file etc/schema.graphqls that declares as follows:

After calling command setup:upgrade, the introspection of ProductInterface field my_attribute remains Int.
What prevented the value type of field my_attribute from changing?

  • A. The fields of ProductInterface are checked during processing schema.graphqls files. If they have a corresponding attribute, then the backend_type of product attribute is set for field type.
  • B. The interface ProductInterface is already declared in Magento_CatalogGraphQl module. Extending requires use of the keyword extend before a new declaration of ProductInterface.
  • C. The Magento_CatalogGraphQl module occurs later in sequence than the Magento_GraphQl module and merging output of dynamic attributes schema reader overrides types declared in schema.graphqls.
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
abubner
1 year, 4 months ago
Answer would be C
upvoted 1 times
...
softpramodmca
1 year, 8 months ago
Answer should be A
upvoted 2 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