Fundamentals Flashcards
What are the 3 API Resource Archetypes?
- Resource Collection
- Managed Resource
- Tasks
What are the Uniform Contract Elements?
Resource identifier syntax, Methods, Media types
“All API operations are based on the REST uniform Contract operations (GET, POST, DELETE, PUT, PATCH, HEAD, etc)
“
What Uniform operation(s) is used to create a single Entity?
A) POST or PUT
B) POST
C) PUT
D) PATCH
B) POST
Why do we need REST API Design Patterns?
A) RESTful web services have strict specifications for designing and building APIs but variations exist
B) There are a couple of standards of how RESTful Web API should work. We need to pick one
C) REST is a software architectural style, not a specification, for building scalable web services
D) All of the above
C) REST is a software architectural style, not a specification, for building scalable web services
Which of the following statements is NOT correct?
A) All TM Forum APIs are based on a common set of Patterns
B) The TM Forum API patterns are documented in the TM Forum REST Guidelines (Also knows as TMF 630 and TMF 631)
C) TM Forum API Patterns for supporting Notification Management in REST based systems are described in the TM Forum REST Guidelines
D) TM Forum REST Guidelines is used only by TM Forum members
D) TM Forum REST Guidelines is used only by TM Forum members
Which of the following is NOT addressed by the TM Forum REST Design Guidelines?
A) Patterns for using Uniform Contract operations for the implementation of Entity CRUD operations and Task operations
B) Patterns on filtering and attribute selection
C) Federated Identity Pattern
D) Patterns for supporting Notification Management in REST based systems
C) Federated Identity Pattern
Which of these statements is NOT correct?
When using the Update Entities Design Pattern..
A) PUT or PATCH can be used to change an entity
B) PUT may be used to change a subset of the entity attribute values without changing the resource representation (the set of supported properties)
C) PATCH support changing al the entity attribute values in a single operation
D) PATCH can be used to change the representation (the set of supported properties) of an entity
D) PATCH can be used to change the representation (the set of supported properties) of an entity
What is the Notification Design Pattern?
A) A Publish Subscribe Pattern where a callback is specified when executing a REST operation
B) A Publish Subscribe Pattern where clients can pull events
C) A Publish Subscribe Pattern where a Hub is used to register a client subscription for receiving events
D) A Publish Subscribe Pattern supporting only one kind of event
C) A Publish Subscribe Pattern where a Hub is used to register a client subscription for receiving events
Does JSON support generalization or inheritance?
No
Can API SID JSON Resources be extended?
Yes, The REST API Design Patterns support the “@type” property
Which of the following is NOT addressed by the SID to API Data model mapping patterns?
A) Flattening Inheritance Hierarchy
B) SID Relationships and Links
C) JSON Resource Model and SID Entity Types
D) Decoration Pattern for Complex Inheritance Hierarchies
D) Decoration Pattern for Complex Inheritance Hierarchies
Which of the following statements is NOT correct?
A) SID is static, it focuses on the data
B) SID is an information model not a data model
C) SID out-of-the-box is typically implemented as is for SOAP APIs
D) TMF APIs uses SID as the basis for its data model
C) SID out-of-the-box is typically implemented as is for SOAP APIs
When using Entity collapsing which of the following statements is correct?
A) SID Entity is modeled as a REST Resource with all the inherited attributes embedded into the JSON representation
B) SID Entity is modeled as a REST Resource with some of the inherited attributes embedded into the JSON representation
C) SID Entity is modeled as a REST Resource with all of the inherited relationships embedded as dependent entities into the JSON representation
D) SID Entity is modeled as a REST Resource with some of the inherited relationships embedded as dependent entities into the JSON representation
B) SID Entity is modeled as a REST Resource with some of the inherited attributes embedded into the JSON representation
How is SID inheritance supported by the TMF Open APIs?
A) TMF Open APIs use the most derived SID classes for Resource representations
B) TMF Open APIs are always relative to the root class in SID
C) TMF Open APIs use an Entity composition model for representing SID generalizations
D) TMF Open APIs use the most derived SID classes for Resource representations and include all the properties and the relationships of the collapsed classes
A) TMF Open APIs use the most derived SID classes for Resource representations
What are the choices of link data model when mapping SID relationships to a REST based representational model?
A) Hyperlinks
B) Link Headers
C) Dependent Entities
D) All of the above
D) All of the above
Which of the following statements is correct?
When mapping SID relationships to the API Data Model:
A) Always embed the related object properties within the entity representation
B) Always define resources for the related entities in the API resource model and use href to the related resources
C) Always use href to related resources if they actually exist as resources
D) Always add properties to the href for filtering and quick retrieval purpose
C) Always use href to related resources if they actually exist as resources
What is API Certification?
Process by which an implementation is confirmed to support the standard definition of an API
What are the 3 Main Artifacts in the API Conformance Activity?
- API Conformance Profile Document”
- CTK Script
- Cloud based Reference Implementation of the API
What is an API Conformance Profile document?
It describes what Mandatory attributes and Operations are tested
What is a CTK Script?
It is provided by TMF to be executed against certified implementation of the API
What is the cloud based Reference Implementation of an API?
It is provided by TMF as an implementation test bed
Is an example of a certified API