Back-End Developer Capstone - Security and Testing

Back-End Developer Capstone - Security and Testing

  1. You can enforce authentication to the model view by adding which of the following to the view class?

    • IsAuthenticated

    • Authenticated=false

    • Authenticated=true

    • ForceAuthentication=true

  2. A REST API needs to have a ________ to convert models into JSON format.

    • translator

    • serializer

    • deserializer

  3. Complete the following sentence: Token-based authentication is suitable for ___________.

    • testing purposes

    • untrusted clients

    • AJAX clients

    • client-server setups

  4. True or false: Insomnia’s browser extension has all the same features as its desktop application.

    • True

    • False

  5. Which of the following is an API testing tool? Select all that apply.

    • Git

    • Curl

    • Insomnia

    • Postman

  6. True or False: Testing before releasing to production is crucial to proper software development.

    • True

    • False

  7. True or False: When building an API it is best to let one API handle many tasks to save on resources.

    • True

    • False

  8. True or false: For organizational purposes it is best to keep an application all together inside one application.

    • True

    • False

  9. What method is used in a unit test to confirm that a piece of data is of a specific type, like a string?

    • assertType

    • assertIsString

    • assertIsInstance

    • assertIsType

  10. Which of the following defines the process of a user logging in?

    • serialization

    • credentials

    • authentication

    • authorization