Completed
Build a RESTful Task Management API
This challenge has ended. You can still review the details below.
Explore the latest challenge for this roleDesign and implement a RESTful task management API that allows users to create, read, update, and delete tasks with persistent storage. You may choose any language from the allow-list: Python, JavaScript/TypeScript, Java, C#, or Go. After submission, an AI-powered repo review runs when the challenge window closes, followed by a mandatory in-app conversation to verify your understanding of the code.
Software Engineer
Solo only.
Share this challenge

The Challenge Brief
Problem definition
You are building a backend service for a task management application. The API must accept HTTP requests to manage tasks (create, retrieve, update, delete) and store them persistently in a database. Each task has a title, description, status (todo, in-progress, done), and creation timestamp. The API must validate input (non-empty title, valid status values) and return appropriate HTTP status codes (200, 201, 400, 404). Out of scope: user authentication, frontend UI, real-time notifications, and task prioritization. Every line under Success criteria is in scope for this challenge. Evaluation considers all of those topics, so your code should demonstrate as many skills and topics as possible.
Task brief
Build a working task management API using Version Control, Programming Fundamentals, Object-oriented Programming, Data Structures & Algorithms, Database Fundamentals, API Development Fundamentals, Security Fundamentals, Software Design Principles, Testing Fundamentals, Debugging & Troubleshooting, AI Assisted Software Development, and Containerization (Docker). The API must support CRUD operations on tasks, persist data to a database, validate all inputs, run inside a Docker container, and include unit tests. Use clean code patterns, handle errors gracefully, and document how to build and run your application.
Version Control
Use Version Control to manage the backend API codebase throughout development. Initialize a Git repository, commit logical units of work with clear messages, create feature branches for API endpoints and database integration, merge changes back to main, and resolve any merge conflicts. This ensures code history is traceable, collaboration is organized, and the prototype is ready for team handoff.
Programming Fundamentals
Programming Fundamentals underpins the backend API by requiring you to write clean, readable code that uses variables, operators, control flow, and functions to validate input, process HTTP requests, and manage task state. You will demonstrate beginner-to-intermediate proficiency by building request handlers that parse and validate task data, apply conditional logic to enforce business rules, and handle errors gracefully when invalid input or missing resources are encountered.
Object-oriented Programming
Implement Object-oriented Programming principles to structure the task management backend API. Design a Task entity class with properties and methods, apply encapsulation to control state access, and use inheritance, polymorphism, abstraction, interfaces, and composition to build a maintainable repository layer that handles persistent storage and validation. This ensures the codebase is testable, extensible, and follows solid software engineering practices.
Data Structures & Algorithms
Implement a task management API that stores, retrieves, and filters tasks using appropriate data structures and algorithms. This skill focuses on selecting and applying arrays, lists, hash tables, and search/sort operations to efficiently manage the task collection, validate lookups by ID, and return sorted or filtered results to meet API requirements.
Database Fundamentals
Database Fundamentals underpins the task management API by requiring you to design and implement a relational database schema, write SQL queries to persist and retrieve tasks, and apply indexing and transaction patterns to ensure data consistency and query performance. You will demonstrate beginner and intermediate proficiency by building a working schema, executing CRUD operations through the API, and explaining how joins, indexes, and transactions protect data integrity in a multi-request environment.
API Development Fundamentals
Build a REST API for a task management backend that accepts HTTP requests to create, retrieve, update, and delete tasks stored in a database. The API must validate input (non-empty title, valid status values), return appropriate HTTP status codes, and serialize task data as JSON. This exercise covers API Development Fundamentals by implementing core HTTP and REST patterns in a language of your choice (Python, JavaScript/TypeScript, Java, C#, or Go).
Security Fundamentals
Implement Security Fundamentals in your task management API by validating all user inputs, enforcing secure password practices in any authentication layer you add, and designing authorization checks to protect task data. These practices ensure the API resists common attacks and maintains data integrity within the core task management scope.
Software Design Principles
Apply Software Design Principles to structure the backend API for the task management service with clear separation of concerns, minimal code duplication, and adherence to SOLID principles. Your implementation must demonstrate how each layer (routing, business logic, data access) has a single responsibility, how dependency injection decouples components, and how the design remains simple and maintainable for the one-day prototype.
Testing Fundamentals
Testing Fundamentals requires you to write unit tests, integration tests, and test fixtures that verify the task management API behaves correctly under normal and edge-case conditions. Your tests must validate HTTP responses, database persistence, input validation, and error handling to ensure the backend is reliable before deployment.
Debugging & Troubleshooting
Implement Debugging & Troubleshooting practices to identify and resolve issues in the task management API. Use logging to track request flow and errors, apply debugging techniques to diagnose failures in task operations, and analyze stack traces to pinpoint root causes when the API returns incorrect status codes or fails to persist data correctly.
Ai Assisted Software Development
Use AI assistants to accelerate development of the task management backend API while maintaining code quality and understanding. Apply AI for code generation, debugging, testing, and documentation throughout the build process, validating outputs and recognizing limitations to deliver a reliable, well-structured service ready for integration.
Containerization (Docker)
Containerize the task management API using Docker so that the backend service and database run reliably in isolated containers and can be orchestrated together. This skill ensures the API is portable, reproducible, and ready for deployment across different environments.
Language and stack
You must choose exactly one language from: Python, JavaScript/TypeScript, Java, C#, or Go. Your README must name the chosen language and provide step-by-step instructions to build and run the application. You may use any framework, database, and dependency manager appropriate for your language. Include a Dockerfile so the application runs in a container.
Scenario
Your team is building a productivity tool for a startup. The product manager has asked you to deliver a working backend API that the frontend team can integrate with. The API must be reliable, well-structured, testable, and ready for deployment. You have one day to complete a working prototype that demonstrates solid software engineering practices and can be containerized for deployment.
Deliverables
- A working API that handles task CRUD operations with HTTP endpoints (POST /tasks, GET /tasks, GET /tasks/{id}, PUT /tasks/{id}, DELETE /tasks/{id}).
- A persistent database (SQL or NoSQL) that stores tasks and survives application restarts.
- Unit tests covering at least two endpoints (success and failure cases).
- A Dockerfile and README with clear instructions to build, run, and test the application in your chosen language.
Success criteria
These are repository evidence checks within the core scope, not additional feature requests. One implementation or test may provide evidence for several topics. Missing implementation evidence remains unverified; explanations alone do not demonstrate implementation proficiency.
Version Control
- Repository Setup (beginner): Git repository initialized in the project root with a .gitignore file present and initial commit recorded.
- Basic Commands (beginner): Commit history shows at least 5 commits with descriptive messages; git log output demonstrates progression from setup through API implementation.
- Commits (beginner): Each commit addresses a single logical unit (e.g., database schema, single endpoint, validation logic); commit messages follow a consistent format and explain the what and why.
- Branching (beginner): At least two feature branches created and named descriptively (e.g., feature/create-task-endpoint, feature/database-integration); branches are checked out and worked on separately from main.
- Merging (beginner): Feature branches merged back to main with merge commits or fast-forward merges visible in git log; main branch contains all completed work.
- Conflict Resolution (intermediate): If merge conflicts occur in the repository history, evidence shows conflicts were identified, resolved in code, and the merge completed successfully; if no conflicts present, assess only if they arise during development.
- Pull Requests (intermediate): If using a platform with PR support (GitHub, GitLab, etc.), at least one pull request created, reviewed, and merged; PR description explains the changes and links to relevant work; if not using a platform, assess only if available in the learner workflow.
Programming Fundamentals
- Variables & Data Types (beginner): Repository contains task data structures (objects or records) with fields for title, description, status, and timestamp; types are declared or inferred correctly and used consistently throughout request handlers.
- Operators (beginner): Code uses comparison operators (e.g., === or ==) to validate status values against allowed enum (todo, in-progress, done) and logical operators (&&, ||) to combine validation checks.
- Expressions (beginner): Request handlers evaluate expressions to compute HTTP response status codes (200, 201, 400, 404) based on operation outcome and input validity.
- Control Flow (beginner): Code contains if/else or switch statements that route requests to create, retrieve, update, or delete handlers and conditionally return error responses for invalid input or missing tasks.
- Functions & Methods (beginner): API endpoints are implemented as named functions or methods that accept request parameters and return responses; validation logic is extracted into reusable helper functions.
- Collections (intermediate): Code uses arrays or lists to store multiple tasks and dictionaries or maps to represent individual task objects; collection iteration (loops) is used to search, filter, or retrieve tasks by ID or status.
- Exception Handling (intermediate): Code catches and handles errors (e.g., invalid JSON parsing, database failures, or missing task IDs) and returns appropriate HTTP error responses instead of crashing.
- File Handling (beginner): If persistent storage is file-based, code reads and writes task data to a file; if database-backed, this criterion is assessed only if file I/O is present in the implementation.
Object-oriented Programming
- Classes & Objects (beginner): Repository contains at least one Task class with properties (title, description, status, timestamp) and methods to read or modify state.
- Constructors (beginner): Task class has a constructor that initializes all required properties and validates non-empty title and valid status values (todo, in-progress, done).
- Encapsulation (beginner): Task properties are private or protected; public getter/setter methods or language idiom controls access and enforces invariants.
- Inheritance (intermediate): If present, a base class or abstract class shares common behavior (e.g., validation, timestamp management) between Task and another entity, or between repository implementations; subclass correctly overrides or extends parent behavior.
- Polymorphism (intermediate): If present, multiple repository implementations (e.g., in-memory, database) implement a common interface or base contract; method calls dispatch to the correct implementation based on runtime type.
- Abstraction (intermediate): If present, repository or storage layer exposes a simplified interface (create, retrieve, update, delete) that hides database or persistence details; callers interact via abstract methods, not concrete storage logic.
- Interfaces (intermediate): If present, a repository interface or abstract contract defines the API contract (method signatures for CRUD operations); concrete implementations satisfy the interface without requiring callers to know the storage mechanism.
- Composition (intermediate): If present, Task or repository classes compose other objects (e.g., a validator, logger, or timestamp provider) rather than inheriting; composed objects are injected or instantiated and used to fulfill responsibilities.
Data Structures & Algorithms
- Arrays (beginner): Task collection is declared and populated as an ordered collection (array, list, or equivalent); code shows initialization and iteration over tasks in at least one endpoint.
- Lists (beginner): If a list structure is used instead of or alongside arrays, verify it is instantiated, populated with task objects, and accessed in API handlers.
- Stacks (beginner): If a stack is used (e.g., for undo/redo or operation history), verify it is declared, push/pop operations are called, and the behavior is observable in code or test.
- Queues (beginner): If a queue is used (e.g., for task processing order or request buffering), verify it is declared, enqueue/dequeue operations are called, and the behavior is observable in code or test.
- Hash Tables (intermediate): Task lookup by ID uses a hash-based structure (dictionary, map, or indexed database query); code shows O(1) or O(n) average-case retrieval, not O(n²) linear scan for every ID lookup.
- Sorting (intermediate): API list endpoint returns tasks sorted by creation timestamp or status; code contains a sort call or database ORDER BY clause, and test output or response body shows sorted order.
- Searching (intermediate): API filters tasks by status value or title substring; code implements a filter or WHERE clause that locates matching tasks without scanning the entire collection unnecessarily.
- Time Complexity (intermediate): Code or comments identify the time complexity of at least one core operation (e.g., task lookup, list retrieval, or filter); complexity is correct and justified for the chosen data structure.
Database Fundamentals
- Relational Databases (beginner): Repository contains a schema definition (SQL DDL or ORM model) that defines a tasks table with columns for id, title, description, status, and creation timestamp, with appropriate data types and constraints.
- SQL Basics (beginner): API endpoints execute SQL queries (or equivalent ORM statements) to create, read, update, and delete tasks; queries are observable in code or logs and correctly map HTTP requests to database operations.
- CRUD Operations (beginner): All four CRUD operations (POST to create, GET to retrieve, PUT/PATCH to update, DELETE to remove) function end-to-end; task data persists across API restarts and is retrievable by id.
- Joins (intermediate): If the repository includes a second table (e.g., task categories, tags, or audit logs), at least one query joins that table to tasks and returns combined data; join logic is visible in code or query logs.
- Indexes (intermediate): Repository schema or migration includes at least one explicit index definition (e.g., on status or creation timestamp) or ORM index annotation; index is created in the database and improves query performance for filtering or sorting.
- Transactions (intermediate): If present, code demonstrates transaction usage (e.g., wrapping multiple writes, rollback on validation failure, or atomic updates); behavior is observable in code or test output and prevents partial updates on error.
API Development Fundamentals
- HTTP Basics (beginner): Repository contains working API endpoints that respond to GET, POST, PUT, and DELETE HTTP requests; verify by inspecting request handlers and testing against the running service.
- REST Principles (beginner): API endpoints follow resource-based URL patterns (e.g., /tasks, /tasks/{id}) and use HTTP methods semantically (POST for create, GET for retrieve, PUT for update, DELETE for delete); inspect route definitions and endpoint behavior.
- CRUD APIs (beginner): All four operations (create, retrieve, update, delete) are implemented and functional; verify by executing requests that create a task, fetch it, modify it, and remove it, confirming state changes persist.
- Request & Response (beginner): API accepts JSON request bodies for create and update operations and returns JSON responses containing task objects with title, description, status, and timestamp fields; inspect request parsing and response serialization in code.
- Status Codes (beginner): API returns 201 for successful task creation, 200 for successful retrieval/update, 400 for invalid input (empty title or invalid status), and 404 when a task is not found; verify by testing each scenario and observing response codes.
- JSON (beginner): Request payloads and response bodies are valid JSON; task objects serialize with correct field names and data types; inspect serialization logic and test payload structure.
- API Validation (intermediate): Input validation logic checks that task title is non-empty and status is one of the allowed values (todo, in-progress, done); validation errors return 400 with a descriptive message; inspect validation code and test with invalid inputs.
Security Fundamentals
- Authentication (beginner): If implemented, API endpoints require credentials or tokens; test requests without valid credentials return HTTP 401; assess only if present in the repository.
- Authorization (beginner): If authentication is implemented, verify that task endpoints enforce ownership or role checks; a user cannot retrieve or modify another users tasks; assess only if present in the repository.
- Input Validation (beginner): Repository contains code that validates task title (non-empty), description format, and status enum values before processing or storing; invalid requests return HTTP 400 with clear error messages.
- Password Security (beginner): If authentication is implemented, code demonstrates password hashing (not plaintext storage) and salt usage; inspect the authentication module or database schema for evidence.
Software Design Principles
- Separation of Concerns (beginner): Repository contains distinct modules or files for request handling, business logic, and data persistence; no business logic embedded in route handlers or database queries mixed with validation logic.
- DRY (beginner): Validation logic, error handling, or status-code mapping is defined once and reused across multiple endpoints; no duplicated conditional blocks or repeated error messages.
- KISS (beginner): API implementation uses straightforward patterns without unnecessary abstraction layers, decorators, or framework magic; core CRUD operations are readable in under 50 lines per endpoint.
- SOLID Principles (intermediate): If dependency injection is implemented, database and validation dependencies are injected into business logic rather than hard-coded; single responsibility is observable: one class or module handles one concern (e.g., TaskService does not format HTTP responses).
- Dependency Injection (intermediate): If present in the codebase, at least one service or handler accepts its dependencies (database connection, validator, logger) as constructor parameters or function arguments rather than creating them internally; evidence must show the dependency is swappable for testing or alternative implementations.
Testing Fundamentals
- Unit Testing (beginner): Repository contains at least one runnable unit test file that tests a single API endpoint or service function in isolation; test execution produces a pass/fail result.
- Assertions (beginner): Unit tests include explicit assertions that check expected values (e.g., status code, response field, or object state) against actual results.
- Test Fixtures (beginner): Test code includes setup and teardown logic (e.g., in-memory database, test data initialization, or cleanup) that prepares state before each test runs.
- Mocking (intermediate): At least one test uses a mock or stub to replace a dependency (e.g., database, external service, or utility function) and verifies the mock was called or returned the expected value.
- Integration Testing (intermediate): Repository contains at least one test that exercises the full request-response cycle (HTTP request to API endpoint, database write/read, response validation) without mocking the core service layer.
Debugging & Troubleshooting
- Breakpoints: If a debugger configuration file or debug mode is present in the repository, verify it can be activated to pause execution at key points (e.g., task creation, validation, database write).
- Debugging Techniques: Code demonstrates at least one deliberate debugging approach, such as temporary debug output, conditional logging, or a test that reproduces and validates a known failure scenario.
- Logging: Repository contains structured log statements (at minimum, at request entry, error conditions, and database operations) that can be enabled and reviewed to trace API behavior.
- Stack Traces: Error handling code captures and logs or returns stack trace information (or equivalent error context) when exceptions occur during task operations, enabling identification of the failure location.
- Root Cause Analysis: Repository includes evidence of a bug fix or error scenario resolution (e.g., a test case that failed and was corrected, or a commit message explaining how a validation or persistence issue was diagnosed and resolved).
Ai Assisted Software Development
- Working with AI Assistants (beginner): Repository contains evidence of AI tool usage in commits, code comments, or documentation (e.g., mention of ChatGPT, GitHub Copilot, or similar in README or commit history).
- Prompt Writing Fundamentals (beginner): At least one prompt artifact or documented example in README or comments showing a clear, specific request to an AI assistant for a discrete task (e.g., generate validation logic, write a test case).
- Code Generation (beginner): API endpoints and core request handlers are present and functional; evidence that AI assisted in their creation (documented in README or visible in code structure consistency).
- AI-assisted Debugging (beginner): If present, a bug fix or error handling improvement is documented with reasoning about how AI assistance identified or resolved the issue.
- AI-assisted Refactoring (intermediate): Code demonstrates at least one refactoring improvement (e.g., reduced duplication, clearer naming, better separation of concerns) with a note or commit message indicating AI-assisted review.
- AI-assisted Unit Testing (intermediate): Test suite exists with passing tests covering core API endpoints; evidence that AI assisted in test generation (documented in README or test file comments).
- AI-assisted Documentation (beginner): README or API documentation includes at least one section (setup, endpoint description, or usage example) with a note indicating AI assistance in drafting.
- AI Output Validation (intermediate): Code or test output shows validation of AI-generated code (e.g., tests pass, API returns correct status codes, input validation works as specified); learner notes one instance of catching or correcting an AI error.
- AI Limitations & Hallucinations (beginner): README or commit notes include one explicit example of an AI limitation encountered (e.g., incorrect SQL syntax, missing edge case) and how it was corrected.
- Responsible AI Usage (beginner): README includes a brief statement on responsible AI usage (e.g., code review before merge, no sensitive data in prompts, verification of outputs).
Containerization (Docker)
- What is Containerization (beginner): Dockerfile exists in repository root with language-appropriate base image (python:3.x, node:x, openjdk:x, golang:x, or mcr.microsoft.com/dotnet/sdk:x); image builds without errors using docker build.
- Docker Architecture (beginner): docker-compose.yml file exists and defines at least two services: API and database; services communicate via a defined Docker network and start without manual intervention.
- Docker Images (beginner): Built Docker image runs successfully; docker images command lists the created image with correct repository and tag.
- Docker Containers (beginner): Container starts the API server; docker ps shows the running container; API responds to HTTP requests on the exposed port.
- Dockerfile Basics (beginner): Dockerfile includes WORKDIR, COPY, RUN (to install dependencies), and CMD or ENTRYPOINT instructions; no build errors.
- Building Images (beginner): docker build command completes successfully with no errors; resulting image can be instantiated into a running container.
- Running Containers (beginner): docker run or docker-compose up starts the API container; container exposes the correct port and responds to GET /tasks with 200 or appropriate HTTP status code.
- Environment Variables (beginner): Dockerfile or docker-compose.yml uses ENV or environment keys to configure database connection string, API port, or other runtime settings; container reads and applies these values on startup.
- Docker Volumes (beginner): docker-compose.yml defines at least one volume for database persistence (e.g., db_data:/var/lib/postgresql or equivalent); volume is mounted to the database service.
- Docker Networks (beginner): docker-compose.yml explicitly defines a network; both API and database services reference this network; services resolve each other by hostname (e.g., api and db).
- Docker Compose (intermediate): docker-compose up -d starts all services; docker-compose logs shows output from both API and database; docker-compose down stops and removes containers; services restart correctly on docker-compose up.
- Container Debugging (intermediate): If present: docker logs
or docker-compose logs shows API startup messages and request logs; docker exec -it /bin/sh or equivalent allows shell access to inspect running container state.
What to explain
AI assistance is allowed while building the submission. During the comprehension conversation, answer independently without AI tools, search, or outside help. Be ready to trace your actual code, explain decisions and limitations, and reason about a small change or failure case. Conceptual topics do not require a separate coded feature.
Version Control
- Repository Setup (beginner): Explain why a .gitignore file is important and what files should be excluded from version control in a backend project.
- Basic Commands (beginner): Describe the purpose of git add, git commit, and git log; explain how commit history helps track project evolution.
- Commits (beginner): Explain what makes a good commit message and why breaking work into small commits improves code review and debugging.
- Branching (beginner): Describe why feature branches are used instead of committing directly to main; explain the workflow of creating, switching, and deleting branches.
- Merging (beginner): Explain the difference between a merge commit and a fast-forward merge; describe when each is appropriate.
- Conflict Resolution (intermediate): Walk through a merge conflict scenario: what causes it, how to identify conflicting sections in code, and the steps to resolve it manually and complete the merge.
- Pull Requests (intermediate): Explain the purpose of pull requests in team workflows; describe how code review via PR improves quality and knowledge sharing before merging to main.
Programming Fundamentals
- Variables & Data Types (beginner): Explain why task fields are stored as specific types (string for title, integer or timestamp for creation time) and how type consistency prevents bugs in validation or comparison logic.
- Operators (beginner): Describe how comparison and logical operators are combined to validate that a task title is non-empty AND status is one of the three allowed values.
- Expressions (beginner): Walk through how the code evaluates an expression to decide whether to return 201 (task created) or 400 (invalid input).
- Control Flow (beginner): Trace the execution path for a request to update a non-existent task; explain which if/else branch is taken and why a 404 response is returned.
- Functions & Methods (beginner): Explain the purpose of a validation helper function and how extracting it into a separate function improves code readability and reusability across multiple endpoints.
- Collections (intermediate): Describe how the code stores multiple tasks in a collection and how it searches for a task by ID; explain the time complexity trade-off between a simple list and a keyed map.
- Exception Handling (intermediate): Explain what happens when invalid JSON is sent to the API; describe the exception caught, how it is handled, and why returning a 400 error is better than letting the exception crash the server.
- File Handling (beginner): If file I/O is used, explain how the code reads the task file on startup and writes updated tasks back to disk; if not used, explain the chosen persistence strategy instead.
Object-oriented Programming
- Classes & Objects (beginner): Explain why the Task class groups related data (title, description, status, timestamp) and behavior (validation, state access) together, and how this improves code organization compared to using primitive types or separate functions.
- Constructors (beginner): Describe how the Task constructor ensures all required properties are initialized and validates input at construction time; explain why this prevents invalid Task instances from being created.
- Encapsulation (beginner): Explain why Task properties are private or protected, and how public getters/setters enforce rules (e.g., preventing invalid status values or empty titles) compared to direct property access.
- Inheritance (intermediate): If a base class or abstract class is used, explain what common behavior it captures, why subclasses inherit it, and how overriding methods in subclasses allows different implementations while maintaining a shared contract.
- Polymorphism (intermediate): If multiple repository implementations exist, explain how they satisfy a common interface and how the caller can use either implementation without knowing which one is active; describe a scenario where swapping implementations (e.g., in-memory to database) requires no caller changes.
- Abstraction (intermediate): Explain how the repository interface hides storage details (database queries, file I/O, in-memory structures) from the API layer; describe what the caller sees versus what the implementation does.
- Interfaces (intermediate): Explain the role of the repository interface in defining the contract (method names, parameters, return types) that all implementations must follow; describe how this enables testing with mock implementations or swapping storage backends.
- Composition (intermediate): If composition is used, explain what objects are composed into Task or repository classes, why composition was chosen over inheritance for those responsibilities, and how injecting or instantiating composed objects keeps classes focused and testable.
Data Structures & Algorithms
- Arrays (beginner): Explain why an array or list is suitable for storing a collection of tasks and how iteration over the collection supports the list endpoint.
- Lists (beginner): If used, describe the difference between a list and an array in the chosen language and when a list would be preferred.
- Stacks (beginner): If implemented, explain the LIFO principle and describe a scenario where a stack would be useful in the task management system.
- Queues (beginner): If implemented, explain the FIFO principle and describe a scenario where a queue would be useful in the task management system.
- Hash Tables (intermediate): Explain why a hash table (or indexed lookup) is more efficient than a linear scan for task retrieval by ID, and identify the average-case time complexity.
- Sorting (intermediate): Justify the choice of sorting algorithm or built-in sort method used for the list endpoint; explain the time complexity and why it is acceptable for this use case.
- Searching (intermediate): Describe the search or filter algorithm used for status or title filtering; explain its time complexity and how it avoids unnecessary comparisons.
- Time Complexity (intermediate): Analyze the time complexity of task creation, retrieval by ID, and list filtering; explain how the chosen data structures affect overall API performance.
Database Fundamentals
- Relational Databases (beginner): Explain why a relational database is appropriate for this task management scenario and describe the structure of the tasks table (columns, types, primary key).
- SQL Basics (beginner): Walk through one CREATE, one READ, and one UPDATE query; explain how each maps to an API endpoint and what SQL clauses (WHERE, INSERT, UPDATE) accomplish.
- CRUD Operations (beginner): Describe the HTTP method and status code for each operation (POST 201, GET 200, PUT 200, DELETE 204 or 200); explain how the API translates each request into a database operation.
- Joins (intermediate): If a join is implemented, explain the join type (INNER, LEFT, etc.), the relationship between tables, and why the join is necessary; if not implemented, describe a scenario where a join would be useful (e.g., querying tasks with category names).
- Indexes (intermediate): Explain what an index is, why it improves query performance, and which column(s) you indexed and why; discuss the tradeoff between read speed and write overhead.
- Transactions (intermediate): Explain what a transaction is, why it matters for data consistency, and describe one scenario in the task API where a transaction prevents corruption (e.g., ensuring a task update and audit log write both succeed or both fail).
API Development Fundamentals
- HTTP Basics (beginner): Explain the role of HTTP methods (GET, POST, PUT, DELETE) in the API and why each method is used for its corresponding operation.
- REST Principles (beginner): Describe how the API uses resource-based URLs and HTTP methods to represent task operations, and explain why this design is considered RESTful.
- CRUD APIs (beginner): Walk through the code for one create and one read operation; explain how data flows from the request into storage and back to the response.
- Request & Response (beginner): Show how the API parses an incoming JSON request body and constructs a JSON response; explain the role of serialization in this process.
- Status Codes (beginner): Explain why different status codes (201, 200, 400, 404) are returned in different scenarios and what each code communicates to the client.
- JSON (beginner): Describe the structure of a task object in JSON format and explain why JSON is chosen for API communication.
- API Validation (intermediate): Explain the validation logic for title and status fields; describe what happens when invalid input is received and how the API communicates the error to the client.
Security Fundamentals
- Authentication (beginner): If authentication is implemented, describe the flow of how a client obtains and uses a credential or token; if not implemented, explain one method (e.g., API key, JWT) and when it would be appropriate.
- Authorization (beginner): If authorization checks exist in the code, trace through one endpoint and explain how the system verifies the caller has permission to access the requested task; if not present, describe a scenario where authorization would prevent unauthorized access.
- Input Validation (beginner): Explain why validating title and status on the server side is necessary even if the frontend also validates; describe one attack or data corruption scenario that server-side validation prevents.
- Password Security (beginner): If authentication code exists, explain why plaintext password storage is dangerous and how hashing with salt mitigates that risk; if no authentication is present, explain the concept in a hypothetical scenario.
Software Design Principles
- Separation of Concerns (beginner): Explain how your code separates request handling from business logic and data access; describe what would break or become harder to test if you mixed these layers.
- DRY (beginner): Identify one instance of repeated code or logic in your implementation and explain how you refactored it or would refactor it to follow DRY.
- KISS (beginner): Walk through one endpoint implementation and explain why you chose your current structure over a more complex alternative; what complexity did you avoid?
- SOLID Principles (intermediate): Describe how your implementation respects the Single Responsibility Principle; name one class or module and explain what single responsibility it has and why that choice makes the code easier to change.
- Dependency Injection (intermediate): If you used dependency injection, explain why injecting a dependency (e.g., database) is better than hard-coding it; if you did not, explain when and why you would add it to improve testability or flexibility.
Testing Fundamentals
- Unit Testing (beginner): Explain why unit tests are written for individual functions or endpoints rather than testing the entire API at once.
- Assertions (beginner): Describe what an assertion checks and why it is necessary to verify test outcomes.
- Test Fixtures (beginner): Explain how test fixtures prepare the environment and why setup/teardown prevents test interdependencies.
- Mocking (intermediate): Describe a scenario in your code where mocking was used, what dependency was replaced, and how the mock helped isolate the code under test.
- Integration Testing (intermediate): Explain the difference between your unit tests and integration tests, and identify which parts of the API are verified end-to-end in the integration test.
Debugging & Troubleshooting
- Breakpoints (beginner): Explain how you would use a debugger breakpoint to inspect the state of a task object during creation or update, and what variables you would examine to verify correctness.
- Debugging Techniques (beginner): Describe one debugging technique you used or would use to isolate a problem in the API, such as adding temporary output, narrowing the scope of a test, or comparing expected vs. actual behavior.
- Logging (beginner): Walk through a representative log output from your API and explain what information each log entry provides and how it helps you understand the flow of a request.
- Stack Traces (intermediate): Show a stack trace from a test failure or error scenario in your code, identify the line where the error originated, and explain what went wrong and how you would fix it.
- Root Cause Analysis (intermediate): Describe a bug or issue you encountered (or would encounter) in the task API, explain the steps you took (or would take) to diagnose the root cause, and justify why your fix addresses the underlying problem rather than just the symptom.
Ai Assisted Software Development
- Working with AI Assistants (beginner): Explain which AI tool(s) you used and for which specific tasks (code generation, testing, debugging, documentation).
- Prompt Writing Fundamentals (beginner): Describe one prompt you wrote to an AI assistant; explain what made it effective or how you refined it based on the response.
- Code Generation (beginner): Walk through one AI-generated function or endpoint; explain how you verified it meets the API specification and handles the required inputs and outputs.
- AI-assisted Debugging (beginner): Describe a bug or error you encountered; explain how you used an AI assistant to diagnose or fix it, and whether the suggestion was correct.
- AI-assisted Refactoring (intermediate): Show one refactoring change; explain the original code, the AI suggestion, and your reasoning for accepting or modifying it.
- AI-assisted Unit Testing (intermediate): Explain how you used AI to generate tests; describe one test case, how you validated it covers the intended behavior, and any gaps you had to fill manually.
- AI-assisted Documentation (beginner): Identify one section of documentation written or drafted with AI assistance; explain how you verified accuracy and completeness.
- AI Output Validation (intermediate): Describe your process for validating AI-generated code before using it; give one concrete example of an error you caught and how you corrected it.
- AI Limitations & Hallucinations (beginner): Give one example of an AI output that was incorrect, incomplete, or hallucinated; explain how you detected it and what you did instead.
- Responsible AI Usage (beginner): Explain your approach to responsible AI usage in this project (e.g., code review, avoiding sensitive data, verifying correctness before commit).
Containerization (Docker)
- What is Containerization (beginner): Explain why containerization isolates the API and database from the host system and how it ensures the same environment across development, testing, and production.
- Docker Architecture (beginner): Describe the role of the Docker daemon, images, and containers; explain how docker-compose orchestrates multiple containers as a single application.
- Docker Images (beginner): Explain the difference between a Docker image (blueprint) and a container (running instance); describe what a base image provides and why it is chosen for this language.
- Docker Containers (beginner): Explain how a container is created from an image; describe what happens when the container starts and how it differs from running the application directly on the host.
- Dockerfile Basics (beginner): Explain the purpose of WORKDIR, COPY, RUN, and CMD/ENTRYPOINT instructions; describe the order of instructions and why layer caching matters for build efficiency.
- Building Images (beginner): Explain what docker build does; describe how the Dockerfile is read and executed to create an image; explain the role of the build context.
- Running Containers (beginner): Explain how docker run creates and starts a container from an image; describe port mapping and how the container communicates with the host and other containers.
- Environment Variables (beginner): Explain how ENV in Dockerfile and environment in docker-compose.yml inject configuration into containers; describe why this approach is better than hardcoding values.
- Docker Volumes (beginner): Explain the difference between volumes and bind mounts; describe why volumes are used for database persistence and how data survives container restart.
- Docker Networks (beginner): Explain how Docker networks enable service-to-service communication; describe DNS resolution by service name and why explicit networks are preferred over the default bridge.
- Docker Compose (intermediate): Explain how docker-compose.yml defines services, networks, and volumes; describe the lifecycle of docker-compose up, down, and restart; explain how Compose simplifies multi-container orchestration compared to running docker run commands manually.
- Container Debugging (intermediate): Explain how docker logs and docker exec are used to inspect container behavior; describe how to identify startup errors, connection issues, or runtime problems; explain the trade-offs between verbose logging and performance.
How to submit
- Before you start, register on the SahkaarX platform and connect your GitHub account.
- When the challenge begins, SahkaarX creates a private repository under your GitHub account and notifies you in the app and via push notification.
- Clone the repository, implement your task management API, commit your work regularly, and push to the repository.
- Submit your solution in the app by clicking Submit; include a link to your private GitHub repository.
What happens after you submit
When the challenge window closes, an automated AI-powered review analyzes your repository for code quality, design patterns, error handling, and adherence to the requirements. You will then participate in a mandatory in-app conversation where you explain your implementation, design decisions, and how you handled key challenges. This conversation verifies your understanding of your own code. If human judges are assigned, they review your repo score and conversation transcript before final results are published; otherwise results finalize automatically after the conversation.
Intellectual property
You retain full ownership of the code and work you submit. SahkaarX may host, evaluate, display on leaderboards, and operate the challenge using your submission. Your GitHub repository remains private under your account; you control access and can modify or delete it at any time after the challenge ends.
Skills You’ll Put to Work
Version Control
- Repository SetupBeginnerFundamental
- Basic CommandsBeginnerFundamental
- CommitsBeginnerFundamental
- BranchingBeginnerFundamental
- MergingBeginnerFundamental
- Conflict ResolutionIntermediateFundamental
- Pull RequestsIntermediateFundamental
Programming Fundamentals
- Variables & Data TypesBeginnerFundamental
- OperatorsBeginnerFundamental
- ExpressionsBeginnerFundamental
- Control FlowBeginnerFundamental
- Functions & MethodsBeginnerFundamental
- CollectionsIntermediateFundamental
- Exception HandlingIntermediateFundamental
- File HandlingBeginnerFundamental
Object-oriented Programming
- Classes & ObjectsBeginnerFundamental
- ConstructorsBeginnerFundamental
- EncapsulationBeginnerFundamental
- InheritanceIntermediateFundamental
- PolymorphismIntermediateFundamental
- AbstractionIntermediateFundamental
- InterfacesIntermediateFundamental
- CompositionIntermediateFundamental
Data Structures & Algorithms
- ArraysBeginnerFundamental
- ListsBeginnerFundamental
- StacksBeginnerFundamental
- QueuesBeginnerFundamental
- Hash TablesIntermediateFundamental
- SortingIntermediateFundamental
- SearchingIntermediateFundamental
- Time ComplexityIntermediateFundamental
Database Fundamentals
- Relational DatabasesBeginnerFundamental
- SQL BasicsBeginnerFundamental
- CRUD OperationsBeginnerFundamental
- JoinsIntermediateFundamental
- IndexesIntermediateFundamental
- TransactionsIntermediateFundamental
API Development Fundamentals
- HTTP BasicsBeginnerFundamental
- REST PrinciplesBeginnerFundamental
- CRUD APIsBeginnerFundamental
- Request & ResponseBeginnerFundamental
- Status CodesBeginnerFundamental
- JSONBeginnerFundamental
- API ValidationIntermediateFundamental
Security Fundamentals
- AuthenticationBeginnerFundamental
- AuthorizationBeginnerFundamental
- Input ValidationBeginnerFundamental
- Password SecurityBeginnerFundamental
Software Design Principles
- Separation of ConcernsBeginnerFundamental
- DRYBeginnerFundamental
- KISSBeginnerFundamental
- SOLID PrinciplesIntermediateFundamental
- Dependency InjectionIntermediateFundamental
Testing Fundamentals
- Unit TestingBeginnerFundamental
- AssertionsBeginnerFundamental
- Test FixturesBeginnerFundamental
- MockingIntermediateFundamental
- Integration TestingIntermediateFundamental
Debugging & Troubleshooting
- BreakpointsBeginnerFundamental
- Debugging TechniquesBeginnerFundamental
- LoggingBeginnerFundamental
- Stack TracesIntermediateFundamental
- Root Cause AnalysisIntermediateFundamental
Ai Assisted Software Development
- Working with AI AssistantsBeginnerFundamental
- Prompt Writing FundamentalsBeginnerFundamental
- Code GenerationBeginnerFundamental
- AI-assisted DebuggingBeginnerFundamental
- AI-assisted RefactoringIntermediateFundamental
- AI-assisted Unit TestingIntermediateFundamental
- AI-assisted DocumentationBeginnerFundamental
- AI Output ValidationIntermediateFundamental
- AI Limitations & HallucinationsBeginnerFundamental
- Responsible AI UsageBeginnerFundamental
Containerization (Docker)
- What is ContainerizationBeginnerFundamental
- Docker ArchitectureBeginnerFundamental
- Docker ImagesBeginnerFundamental
- Docker ContainersBeginnerFundamental
- Dockerfile BasicsBeginnerFundamental
- Building ImagesBeginnerFundamental
- Running ContainersBeginnerFundamental
- Environment VariablesBeginnerFundamental
- Docker VolumesBeginnerFundamental
- Docker NetworksBeginnerFundamental
- Docker ComposeIntermediateFundamental
- Container DebuggingIntermediateFundamental
Before You Register
- Prerequisites: review the target audience, skills covered, and challenge brief.
- Deadlines: check the key dates and complete required submissions before the challenge deadline.
- Participation: Solo only.
- Evaluation: review the brief and FAQs for scoring criteria and how your work will be assessed.
- AI assistance: check this challenge's rules before using AI tools. If the rules are unclear, ask support before submitting.
Questions? Contact SahkaarX support.
Intellectual property: participants retain
Frequently Asked Questions
Who can join this challenge?
Entry-level software engineers working solo. Teams are not allowed. You must register on SahkaarX and connect your GitHub account before the challenge begins.
Do I need to create my own GitHub repository?
No. When the challenge starts, SahkaarX creates a private repository under your GitHub account and notifies you in the app. Clone that repository and push your work there.
When does evaluation happen?
An automated AI-powered review runs when the challenge window closes, not immediately after you submit. You will then complete a mandatory in-app conversation to explain your code and design decisions.
What is the mandatory in-app conversation?
After the AI review, you will participate in a conversation where you explain your implementation, design choices, and how you solved key challenges. This verifies you understand your own code. Human judges may review your repo score and conversation transcript before final results are published.
Skill feedback helps you decide what to practise next. Learning plans follow eligible evaluated results; additional plans are paid. No job guarantee.