Coursera Answers

APIs Coursera Quiz Answers

Hello Friends in this article i am gone to share Coursera Course: APIs by Meta All Weeks Quiz Answers with you..

Enrol Link:ย  APIs

APIs Coursera Quiz Answers


 

WEEK 1 QUIZ ANSWERS

Knowledge Check: Introduction to APIs

Question 1)
Why is communicating over HTTPS more secure than HTTP?

  • Both client- and server-side are encrypted but decryption is not performed.
  • Encryption and decryption are performed both on the client- and server-side.
  • There is client-side encryption and server-side decryption
  • There is only server-side encryption and client-side encryption

Question 2)
Which of the following HTTPS methods is used to partially update data?

  • PUT
  • PATCH
  • POST
  • GET

Question 3)
Which of the following HTTP status codes inside the response header indicate server-side errors?

  • 300-399
  • 500-599
  • 100-199
  • 400-499

Question 4)
RESTful APIs are considered to be stateless. What this means is the state is saved ________.

  • Both on client and server
  • On neither the client- nor server-side
  • Only with the client
  • Only on the server

Question 5)
Which of the following can be a layer in the RESTful API communication system that data encounters while being passed between the client and server? Select all that apply.

  • Headers
  • Load balancer
  • Firewall

 

Knowledge check: Principles of API development

Question 1)
The abuse of API calls made by an end-user can be managed and restricted by means of:

  • Versioning
  • Monitoring
  • Rate-limiting
  • Caching

Question 2)
While monitoring API endpoints for indicators such as latency and response time, which of the following HTTP status codes can be used to identify potential problems early on? Select all that apply.

  • 100-199
  • 200-299
  • 400-499
  • 500-599

Question 3)
SSL certificates ensure that the API calls coming to a specific vendor website such as Little Lemon are coming from their own website and mobile app.

  • True
  • False

Question 4)
Which of the following HTTP status codes suggest authentication and authorization errors while communicating data over HTTP? Select all that apply.

  • 402
  • 401
  • 404

Question 5)
The SSL in SSL certificates, commonly known for being used in secure communications stand for:

  • Secure Socket Layer
  • Security Socket Layer
  • Secure Secret Layer
  • Socket Secure Layer

 

Visit this link:ย  Module quiz: REST APIs Quiz Answers

 


 

WEEK 2 QUIZ ANSWERS

Knowledge check: Introduction to DRF

Question 1)
Which are the necessary steps to follow to use DRF in your Django project? Choose all that apply.

  • Change your database to MySQL
  • Create a new Django app
  • Add DRF in the settings.py file
  • Install the DRF package

Question 2)
What are the advantages of using DRF? Choose all that apply.

  • Serializers
  • Browsable API view
  • CRUD Helpers
  • Secures API endpoints automatically
  • Generate PDF files quickly

Question 3)
You can use a single API endpoint for different HTTP methods.

  • True
  • False

Question 4)
In the urls.py file, which of the following URL patterns is correct for a class-based view that extends the APIView class like this?

class BookView (APIView):
  • path(‘books’,views.BookList.get())
  • path(‘books’,views.BookList)
  • path(‘books’,views.BookList.as_view())

Question 5)
If you automatically want to create a root API endpoint to display all your API endpoints in one place, which router class will you use?

  • RootRouter
  • SimpleRouter
  • DefaultRouter

 

Visit this link:ย  Module quiz: Django REST framework Quiz Answers

 


 

WEEK 3 QUIZ ANSWERS

Knowledge check: Essential API tasks

Question 1)
What are the benefits of filtering? Choose all that apply.

  • Increases API security
  • Reduces extra load on the database server
  • The client can get only necessary data
  • Reduces bandwidth consumption

Question 2)
Filtering, sorting, searching and pagination cannot be done together.

  • True
  • False

Question 3)
Which of the following settings in the settings.py file is used to paginate 5 items per page?

  • ‘PAGE_ITEMS’: 5
  • ‘PAGE_SIZE’: 5
  • ‘PER_PAGE’: 5

Question 4)
Which of the following statements about sorting are true? Choose all that apply.

  • Adding a hyphen in front of a field name sorts it in descending order
  • You can sort by multiple fields at once.
  • DRF can automatically sort the API output
  • Multiple fields are separated by a comma in the query string

Question 5)
Where can you implement caching? Choose all that apply.

  • Firewall
  • Load balancer
  • Database server
  • Web server

 

Visit this link:ย  Module quiz: Securing an API in Django REST framework Quiz Answers

 


 

WEEK 4 QUIZ ANSWERS

Visit this link:ย  Final graded quiz: APIs Quiz Answers