DevNet Associate DEVASC 200-901 Official Certification Guide by Adrian Iliesiu (z-lib.org)

(andrew) #1
9. C. Test-driven development focuses on writing
code that allows a previously written test (that
naturally fails since no code was written) to
succeed.
10. A, D. An integration test is for API verification,
and a function test verifies that your application
meets the agreed-upon requirements of how it
should operate.
11. B. unittest.TestCase is a special class that is used
to access the unittest module’s capabilities.

CHAPTER 6


1. A. Southbound APIs send information down to
devices within the network.
2. A, B. Because asynchronous APIs do not have to
wait for replies, they reduce the time required to
process data.
3. A, D, E. SOURCE and PURGE do not exist. GET,
POST, PUT, PATCH, and DELETE are the HTTP
functions.
4. A. Both API keys and custom tokens are
commonly used within API authentication.
5. C. SOAP stands for Simple Object Access
Protocol.
6. A, B, D, E. The four main components of a SOAP
message are the envelope, header, body, and
fault. The fault is an optional component.
7. A. RPCs are blocked during the waiting periods.
Once a procedure is executed and the response is
sent from the server and received on the client,
the execution of the procedure continues. This is
similar to a synchronous API.

CHAPTER 7


1. A, B. In order to make a successful call—whether
it is a GET or a POST—a client must have the
Free download pdf