Core Backend & PHP Stack (Laravel, CI, Yii, Composer)
-
What is the Laravel Service Container and how does it help you?
A: It manages class dependencies and provides dependency injection, acting as the backbone of Laravel’s IoC design. -
Explain the difference between Laravel Gates and Policies.
A: Gates are closure-based authorization checks; Policies are structured classes for a model’s access logic. -
Describe Laravel’s Eloquent ORM and its advantages.
A: Eloquent allows modeling database tables as classes, with relationships, scopes, mutators, enhancing maintainability. -
What is Laravel’s Artisan, and why is it useful?
A: Artisan is Laravel’s CLI tool: create models/controllers, run migrations, queues, cache — a huge productivity boost. -
How does Laravel implement queues and background job handling?
A: It uses queue drivers (database, Redis, etc.) to defer tasks, keeping web requests fast. -
What are Laravel Facades, and how do they simplify code?
A: They act as "static proxies" to services in the IoC container—clean, expressive, and easily testable. -
Explain Laravel’s Blade template engine.
A: Blade supports template inheritance, sections, conditionals/loops—compiled and cached for speed. -
How do Laravel migrations facilitate team collaboration?
A: Migrations version control schema changes — easy rollback and shared consistency. -
What is Composer, and why is it critical in PHP projects?
A: Composer manages dependencies. It resolves packages, versions, and ensures consistent installs viacomposer.lock. -
Discuss Traits in PHP and how they differ from Interfaces.
A: Traits allow method reuse without inheritance; Interfaces define contracts without implementation.
CodeIgniter + Security Focus
-
How do you mitigate XSS, SQL injection & CSRF in CI?
A: Usexss_clean(), parameterized queries, andcsrf_protection = TRUE. -
What’s the difference between a helper and a library in CodeIgniter?
A: Helpers are procedural function collections; libraries are OOP class-based. -
How do you check CodeIgniter version?
A: Useecho CI_VERSION;or inspectsystem/core/CodeIgniter.php. -
How does CI handle errors and logging?
A: Usingshow_error(),show_404(), andlog_message()for logging system/debug events. -
Explain CI's URL routing pattern.
A: CI uses segment-based URLs:/controller/method/param, rather than query strings. -
What are CI hooks and how are they used?
A: Hook points (pre_system, post_controller, etc.) allow invoking custom code at runtime events. -
Explain CLI in CodeIgniter.
A: Use CLI for cron jobs, background tasks, and tasks not exposed via URL.
PHP Language & Architecture
-
Explain PHP generators and when to use them.
A: Generators (yield) allow memory-efficient iteration, pausing/resuming state — ideal for large datasets. -
What are PHP prepared statements and why are they important?
A: They prevent SQL injection and improve performance by separating code from data. -
What are PHP 8’s key new features?
A: JIT, union types, named args, match, attributes. -
PDO vs MySQLi – differences?
A: PDO supports multiple DBs + named placeholders; MySQLi is MySQL-specific, slightly faster.
JavaScript, Frontend, Templating
-
Explain your approach to responsive design.
A: Use flexible grids, media queries, and frameworks like Bootstrap for consistent cross-device UI. -
How do you debug web apps?
A: Use browser dev tools (Console, network) + editor debugging, breakpoints, logs. -
Working experience with Git?
A: Proficient in branching, merging, rebasing, resolving conflicts, pull requests, CI integration. -
Handling accessibility and SEO?
A: Use WCAG guidelines, alt tags, ARIA, semantic markup; optimize metadata and loading speed.
APIs, REST, External Integration
-
How do you integrate and test RESTful APIs?
A: Use standards (GET, POST, PUT, DELETE), JSON, testing via Postman. -
Explain secure payment gateway integration.
A: Use HTTPS, PCI DSS, tokenization, 3D Secure, secure SDKs. -
How do you implement social login (OAuth)?
A: Integrate provider SDK/API, handle callbacks, tokens, map authenticated users. -
Describe SMS integration in your apps.
A: Use reliable SMS APIs (Twilio), secure configs, retries, error handling. -
Handling third-party API failures?
A: Use retries with exponential backoff, fallback logic, circuit breakers, timeouts.
Node.js & Express
-
Why choose Node.js and Express for backend?
A: Fast I/O, non-blocking, lightweight routing, rich ecosystem, scalable architecture. -
Authentication in Express—strategies?
A: Use JWT or sessions, middleware like Passport.js for structured auth flow. -
Templating with EJS—advantages?
A: Simple syntax, embedded JS, quick view rendering, logic-less templates.
Databases
-
Choosing between MySQL, PostgreSQL, SQL Server?
A: MySQL for speed, Postgres for advanced features, SQL Server for Windows integration. -
Using HeidiSQL or Workbench—benefits?
A: Visual query building, schema editing, server management, debugging. -
Optimizing queries for performance?
A: Add indexes, use EXPLAIN, avoid N+1, use caching, normalize schema.
DevOps, Tools & Infrastructure
-
How do you deploy with Docker?
A: Containerize app via Dockerfile, use Compose for multi-container orchestration, CI pipelines. -
Managing AWS infrastructure?
A: Use EC2, RDS, S3, IAM, auto-scaling, CloudWatch for monitoring. -
Skill with Postman and cron jobs?
A: Use Postman for testing; cron for scheduled tasks like backups or alerts. -
Experience with XAMPP, Apache?
A: Local development environment, module config, virtual hosts, PHP/DB stacks. -
How do you secure web apps (OWASP, Sophos)?
A: Use secure headers, sanitize input, WAF like Sophos, regular audits, encryption. -
File transfers via WinSCP?
A: Use SFTP secure transfers, SSH authentication, synching files from local to server. -
SSH management with PuTTY?
A: Remote access, tunneling, execution, securely manage servers.
Best Practices & Soft Skills
-
How do you manage technical conflicts in a team?
A: Communicate openly, focus on solutions, collaborate, escalate when needed. -
Handling tight deadlines & task prioritization?
A: Use planning tools, assess urgency, chunk work, communicate constraints. -
Onboarding new tech fast—examples?
A: Self-learning, prototyping, team collaboration, rapid MVP development. -
Handling client scope creep?
A: Clarify requirements, discuss impacts, document scope, involve management when needed. -
Optimizing site performance?
A: Minify assets, lazy load, use CDNs, cache aggressively, optimize DB queries. -
Explain how you approach app security from day one.
A: “Security by design”: threat modeling, OWASP practices, audits, team education. -
Describe a challenging problem you resolved.
A: Share a real story: context, technical challenge, solution, outcome — showcasing leadership and creativity.
Comments
Leave a Comment
Your email address will not be published. Required fields are marked *