Rest Programming Mcqs
Q.1: Which HTTP response code usually means the requested work is still processing and may or may not result in an error later?z
A. 200 OK
B. 204 No Content
C. 201 Created
D. 202 Accepted
Q.2: What is not a method for API authentication or authorization?=
A. OAuth
B. Biometrics
C. API Keys
D. Username and password
Q.3: When exploring record sets, what is the best approach for pagination?E
A. Date-based filtering
B. Next/previous cursors
C. Page size and filters
D. Database IDs
Q.4: When you get a 429 code, what should you do next?1
A. Check you JSON structure.
B. Check the API uptime status.
C. Slow down your requests.
D. Check you API key.
Q.5: Which REST constraint specifies that each request should stand on its own and not have a specific required order?q
A. Uniform Interface
B. Cacheable
C. Stateless
D. Client-Server
Q.6: Which verb is not considered idempotent?(
A. DELETE
B. GET
C. PUT
D. POST
Q.7: Which HTTP verb is used to delete a resource?-
A. FLUSH
B. DELETE
C. CLEAR
D. DESTROY
Q.8: Which REST constraint essentially prohibits the use of cookies??
A. Stateless
B. Cacheable
C. Layered System
D. Uniform Interface
Q.9: Which URL pattern should you follow for accessing a subresource attached to a specific resource?`
A. /companies/employees/{companyId}/{employeeId}-
B. /company/{companyId}/employees/{employeeId}+
C. /companies/{companyId}/employees/{employeeId}-
D. /companies/{companyId}/employee/{employeeId},
Q.10: Which is an example of Code on Demand?&
A. AWS Lambda
B. Downloading open-source software
C. Serverless
D. JavaScript on a webpage

Related Mcqs

All Subject Mcqs