Timedora
Free Online Flashcard Deck

2 Network APIs and Data Models Free Online FlashCards

Study 2 Network APIs and Data Models with 12 free online flashcards. Review key terms, definitions, and concepts with this interactive flashcard deck.

12 cards
01
Front

What can a network API do?

Back

A network API lets software inspect or change network resources, such as interfaces, routes, VLANs, and device settings.

02
Front

What does a data model define?

Back

A data model defines which information exists, how it is organized, its data types, and constraints on valid values.

03
Front

How does a data model differ from an encoding?

Back

A model is a schema describing data; an encoding is the format used to represent that data for transport, such as JSON or Protocol Buffers.

04
Front

What are YANG and OpenConfig used for?

Back

YANG is a language for defining hierarchical network-management models. OpenConfig publishes vendor-neutral YANG models for common configuration and operational data.

05
Front

What structures and values can JSON encode?

Back

JSON is a text encoding composed of objects, arrays, strings, numbers, booleans, and null values. Its usual media type is application/json.

06
Front

What operations do common HTTP methods express?

Back

GET retrieves data; POST commonly creates a resource or starts an operation; PUT replaces a resource; PATCH applies a partial change when supported.

07
Front

What do the HTTP status-code classes indicate?

Back

An HTTP response has a status code, headers, and often a body. Status classes are 2xx success, 3xx redirection, 4xx client-side error, and 5xx server-side error.

08
Front

How do HTTP 401, 403, and 404 differ?

Back

A 401 indicates missing or invalid authentication; a 403 indicates insufficient permission; a 404 means the target was not found.

09
Front

How is a bearer token typically sent, and why protect it?

Back

A client typically sends a bearer token in the Authorization header as Authorization: Bearer <token>. Anyone possessing the token can use it, so protect it.

10
Front

What practices protect API credentials?

Back

Use HTTPS with certificate validation, keep credentials out of logs and code repositories, and grant only the permissions needed.

11
Front

Why handle retries differently for PUT and POST?

Back

A repeated PUT is intended to have the same effect as one successful PUT; a repeated POST may create duplicate operations or resources.

12
Front

Why verify network state after an accepted change request?

Back

After a configuration request, inspect the response and verify the resulting device or controller state; an accepted request does not prove the intended network outcome occurred.