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

Sitecore-XM-Cloud-Developer Exam - Topic 4 Question 52 Discussion

A developer is tasked with creating an item using the Sitecore Authoring and Management GraphQL API. Which of the following GraphQL mutations is the correct way to create a new item?
C) createltem
A) createOrUpdateltem
B) create Templateltem
D) updateltem

Sitecore-XM-Cloud-Developer Exam - Topic 4 Question 52 Discussion

Actual exam question for Sitecore's Sitecore-XM-Cloud-Developer exam
Question #: 52
Topic #: 4
[All Sitecore-XM-Cloud-Developer Questions]

A developer is tasked with creating an item using the Sitecore Authoring and Management GraphQL API. Which of the following GraphQL mutations is the correct way to create a new item?

Show Suggested Answer Hide Answer
Suggested Answer: C

The correct GraphQL mutation to create a new item in Sitecore XM Cloud is createItem. This mutation allows developers to specify the necessary details such as the item's name, template ID, parent ID, language, and fields to create a new content item within the Sitecore content tree.


Contribute your Thoughts:

0/2000 characters
Laticia
15 days ago
C) createltem seems too simple. I doubt that's the correct one.
upvoted 0 times
...
Matthew
20 days ago
I feel like B) create Templateltem could work too, but it seems more for templates.
upvoted 0 times
...
Karina
25 days ago
I think it's A) createOrUpdateltem. It sounds right for creating items.
upvoted 0 times
...
Tora
1 month ago
I disagree, I think it's B) create Templateltem.
upvoted 0 times
...
Dacia
1 month ago
Wait, is there really a mutation called create Templateltem? Sounds weird.
upvoted 0 times
...
Emerson
1 month ago
Definitely A) for sure!
upvoted 0 times
...
Tyisha
2 months ago
I thought it was C) createltem.
upvoted 0 times
...
Lewis
2 months ago
A) createOrUpdateltem is the right one!
upvoted 0 times
...
Vicente
2 months ago
I’m leaning towards "createItem," but I might be mixing it up with another mutation we covered.
upvoted 0 times
...
Alease
2 months ago
I remember we discussed "createTemplateItem" in relation to templates, but I don't think that's the right choice for a new item.
upvoted 0 times
...
Beatriz
2 months ago
I feel like "createOrUpdateItem" sounds familiar, but I’m not sure if it’s the right one for just creating an item.
upvoted 0 times
...
Geraldo
2 months ago
I think the mutation for creating a new item is similar to the one we practiced in class, but I can't remember if it was "createItem" or something else.
upvoted 0 times
...

Save Cancel