Let's see whether you can answer the following questions correctly:
- Which HTTP verb is meant to replace an entire resource:
- PATCH
- POST
- PUT
- Which HTTP verb is meant to apply a delta to an existing resource:
- PATCH
- POST
- PUT
- By default, the passlib library will use the SHA-512 scheme for 64-bit platforms with the minimum number of rounds set to:
- 135,000
- 335,000
- 535,000
- The flask.g object is:
- A proxy that provides access to the current request
- An instance of the flask_httpauth.HTTPBasicAuth class
- A proxy that allows us to store on this whatever we want to share for one request only
- The passlib package provides:
- A password hashing framework that supports more than 30 schemes
- An authentication framework that automatically adds models for users and permissions to a Flask application
- A lightweight web framework that replaces Flask
- The auth.verify_password decorator applied to a function:
- Makes this function become the callback that Flask-HTTPAuth will use to hash the password for a specific user
- Makes this function become the callback that SQLAlchmey will use to verify the password for a specific user
- Makes this function become the callback that Flask-HTTPAuth will use to verify the password for a specific user
- When you assign a list that includes auth.login_required to the method_decorators property of any subclass of flask_restful.Resource, considering that auth is an instance of the flask_httpauth.HTTPBasicAuth():
- All the methods declared in the resource will have the auth.login_required decorator applied to them
- The post method declared in the resource will have auth.login_required decorator applied to it
- Any of the following methods declared in the resource will have auth.login_required decorator applied to them: delete, patch, post, and put
- Which of the following lines retrieve the integer value for the 'page' argument from the request object, considering that the code would be running within a method defined in a subclass of flask_restful.Resource class?:
- page_number = request.get_argument('page', 1, type=int)
- page_number = request.args.get('page', 1, type=int)
- page_number = request.arguments.get('page', 1, type=int)