Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to identify the protocol that uses XML messages and strict standards.
Rest API
The protocol that uses XML messages and strict standards is [1].
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing REST with SOAP because both use HTTP.
✗ Incorrect
SOAP uses XML messages and follows strict standards for messaging.
2fill in blank
mediumComplete the code to identify the API style that uses flexible queries to get only needed data.
Rest API
The API style that allows clients to request exactly the data they need is [1]. Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Thinking REST allows flexible queries like GraphQL.
✗ Incorrect
GraphQL lets clients specify exactly what data they want in a query.
3fill in blank
hardFix the error in the statement about REST's data format.
Rest API
REST APIs commonly use [1] as the data format for requests and responses.
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Assuming REST uses XML like SOAP.
✗ Incorrect
REST APIs most commonly use JSON because it is lightweight and easy to use.
4fill in blank
hardFill all three blanks to complete the comparison of REST and SOAP.
Rest API
REST is [1] and uses [2] for data, while SOAP is [3] and uses XML.
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up stateless and stateful concepts.
✗ Incorrect
REST is stateless and commonly uses JSON, SOAP is stateful and uses XML.
5fill in blank
hardFill all three blanks to complete the GraphQL query example.
Rest API
query { [1] { [2] [3] } } Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'posts' instead of user fields.
✗ Incorrect
This GraphQL query asks for the user's name and email fields.