Viva prep · Real questions · Student experiences Enroll in Bootcamp

Proctor workspace

Proctor LEVEL_2101

Share your experience Add your viva experience here
1 Questions
1 Sets
0 Topics
0 Reviews

Student reviews

No student reviews for this proctor yet.

Approved viva sets

Download all
  1. 1
    Asked to run the code , after that asked questions about validation in product editing and purchasing , asked the base class of exception handling in python , how to validate the celery task which is long running file and when the user logs out or when the token gets expired , how to handle this celery task . What's the default time of authentication token. Differences between redis cache and memcache . Purpose of redis . Asked about swapping of decorators in backend .
    Times asked 1
    Official solution

    Simplelogin_required jaisa decorator protected routes pe: session nahi to login redirect.

    Example

    def login_required(fn):
        @wraps(fn)
        def wrapper(*a, **k):
            if 'user_id' not in session:
                return redirect(url_for('auth.login'))
            return fn(*a, **k)
        return wrapper
Maintaine By Lazy IITians Team + IITM BS students Regualr for More data you have