Python track

Python interview questions and answers

Panel-ready Python & Django questions for freshers and experienced developers. Practice at Coding Cadre in Faridabad, or Online from Delhi NCR.

228 Qs
45 Moderate DRF Python

What do DRF routers do?

Short take

Simple meaning

DefaultRouter and SimpleRouter bind viewset actions to URL patterns including optional trailing slashes.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
47 Moderate DRF Python

How does pagination work in DRF?

Short take

Simple meaning

Pagination classes split list querysets into pages and add next/previous metadata.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
51 Moderate Celery Python

How do you retry a failed Celery task?

Short take

Simple meaning

Bind the task with bind=True and call self.retry(exc=exc, countdown=seconds) inside the catch block, or set autoretry_for and retry_backoff.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
52 Moderate Celery Python

What is Celery Beat?

Short take

Simple meaning

Beat is a scheduler that enqueues periodic tasks according to a schedule in code or the database.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
54 Moderate Caching Python

How should you design Django cache keys?

Short take

Simple meaning

Include a version or key prefix, the resource id, and any vary dimension such as locale.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
Prev Page 3 of 5 Next
Chat with us