Viva prep · Real questions · Student experiences Enroll in Bootcamp

Proctor workspace

Proctor @APPDEV_LEVEL1_VIVA1

Share your experience Add your viva experience here
10 Questions
2 Sets
0 Topics
0 Reviews
Tips for this examiner: He is very friendly yet professional.. Can ask anything related to your code ..

Student reviews

No student reviews for this proctor yet.

Approved viva sets

  1. 1
    Demo of the app
    Times asked 8
  2. 2
    Explain the code for export CSV
    Times asked 2
  3. 3
    In notepad write any vue component, wrote basic v-for , than he asked to add relative fetch request for that and backend route for that..(Basically was testing if you know to write a component, route , backend fetch logic correctly)
    Times asked 2
  4. 4
    Also asked to check authentication in route and check for roles, allow only admin to view that route .
    Times asked 2
  5. 5
    Asked to explain caching.
    Times asked 2
Advice: He is very friendly yet professional.. Can ask anything related to your code ..
  1. 1
    Demo of the app
    Times asked 8
    Official solution

    SimpleDemo script pehle se practice: 5–7 min, Admin + User roles, saare mandatory features.

    Suggested flow1) Register/login user
    2) Admin login — CRUD
    3) Approval/blacklist
    4) Booking/apply + edge case
    5) Search
    6) Logout

    Viva tipBolte-bolte dikhao. Code tab kholna jab poochhein.

  2. 2
    Explain the code for export CSV
    Times asked 2
    Official solution

    SimpleCode explain formula: input kya aaya → auth/validation → DB change → response/UI.

    Viva tipFunction signature + 3-4 important lines + edge case.

  3. 3
    In notepad write any vue component, wrote basic v-for , than he asked to add relative fetch request for that and backend route for that..(Basically was testing if you know to write a component, route , backend fetch logic correctly)
    Times asked 2
    Official solution

    SimpleLive Flask coding: chhota route likho, save, browser/curl se test. Syntax error terminal mein padho.

    Example

    @app.route('/ping')
    def ping():
        return jsonify(ok=True)
    
    @app.route('/even/<int:n>')
    def even(n):
        return 'even' if n % 2 == 0 else 'odd'
  4. 4
    Also asked to check authentication in route and check for roles, allow only admin to view that route .
    Times asked 2
    Official solution

    SimpleAuthentication: tu kaun hai? (login). Authorization: tujhe permission hai? (role check).

    Example

    # auth
    if check_password_hash(user.password, pwd):
        session['user_id'] = user.id
    
    # authz
    if user.role != 'admin':
        abort(403)
  5. 5
    Asked to explain caching.
    Times asked 2
    Official solution

    SimpleCache = pehli baar hisaab karke copy rakh lo, doosri baar copy dikha do.

    Baar-baar same expensive kaam (DB query, counting bookings) mat karo. Result Redis jaise store mein timeout ke saath rakh do.

    Cache hit: key mil gayi, DB skip. Cache miss: DB se lao, SET karo, return karo.

    Tradeoff: speed vs stale data. Admin naya venue add kare aur cache 50s ka ho to user purani list dekh sakta hai — isliye write pe invalidation zaroori hai.

    Browser cache, Flask-Caching, Redis alag layers hain. MAD2 examiner Redis + @cache.cached code dekhta hai.

    Example

    @cache.cached(timeout=50, query_string=True)
    @app.route('/api/shows')
    def shows():
        return jsonify([s.serialize() for s in Show.query.all()])

    Project example: Admin dashboard counts / venues list cache. Create/update/delete ke baad cache.delete('venues').

    Viva tipprint('DB queried') function ke andar laga ke miss/hit demo karo — hit pe print nahi chalega.

Advice: He is very friendly yet professional.. Can ask anything related to your code ..
Created for educational purposes only. Questions are based on students' personal experiences and may not reflect actual exam content.