# 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?**
    
    * <mark>IsAuthenticated</mark>
        
    * Authenticated=false
        
    * Authenticated=true
        
    * ForceAuthentication=true
        
2. **A REST API needs to have a \_\_\_\_\_\_\_\_ to convert models into JSON format.**
    
    * translator
        
    * <mark>serializer</mark>
        
    * deserializer
        
3. **Complete the following sentence: Token-based authentication is suitable for \_\_\_\_\_\_\_\_\_\_\_.**
    
    * testing purposes
        
    * <mark>untrusted clients</mark>
        
    * AJAX clients
        
    * client-server setups
        
4. **True or false: Insomnia’s browser extension has all the same features as its desktop application.**
    
    * True
        
    * <mark>False</mark>
        
5. **Which of the following is an API testing tool?** Select all that apply.
    
    * Git
        
    * <mark>Curl</mark>
        
    * <mark>Insomnia</mark>
        
    * <mark>Postman</mark>
        
6. **True or False: Testing before releasing to production is crucial to proper software development.**
    
    * <mark>True</mark>
        
    * False
        
7. **True or False: When building an API it is best to let one API handle many tasks to save on resources.**
    
    * True
        
    * <mark>False</mark>
        
8. **True or false: For organizational purposes it is best to keep an application all together inside one application.**
    
    * True
        
    * <mark>False</mark>
        
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
        
    * <mark>assertIsInstance</mark>
        
    * assertIsType
        
10. **Which of the following defines the process of a user logging in?**
    
    * serialization
        
    * credentials
        
    * <mark>authentication</mark>
        
    * authorization
        

---

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1731923631076/0967c281-eb7a-4746-af00-3290aec3700f.png align="center")
