
Deployment & DevOps
Docker, CI/CD, Deployer, environment variables, secrets management, monitoring, logging
1Which Docker file is recommended for defining services of a Symfony application (PHP-FPM, Nginx, PostgreSQL) in local development?
Which Docker file is recommended for defining services of a Symfony application (PHP-FPM, Nginx, PostgreSQL) in local development?
คำตอบ
Docker Compose (docker-compose.yml or compose.yaml) allows defining and orchestrating multiple Docker containers. For Symfony, you typically define a PHP-FPM service to run the code, Nginx as web server, and PostgreSQL for the database. This approach ensures an identical development environment for the whole team and similar to production.
2How to correctly define a DATABASE_URL environment variable in Symfony to be different in development and production?
How to correctly define a DATABASE_URL environment variable in Symfony to be different in development and production?
คำตอบ
Symfony uses the .env file for default values and .env.local for local overrides (not versioned). In production, it's preferable to define variables directly via system environment or server secrets. The .env.local file is never committed and allows each developer to have their own configurations.
3Which Symfony command allows managing secrets securely in production (API keys, passwords)?
Which Symfony command allows managing secrets securely in production (API keys, passwords)?
คำตอบ
Symfony Secrets allows storing sensitive data in an encrypted manner. Secrets are stored in config/secrets/ and encrypted with a key. The secrets:set command adds a new secret, and only the environment with the decryption key can read the values. This is the recommended method for production credentials.
What is Deployer and what main advantage does it offer for deploying Symfony applications?
In a CI/CD pipeline for Symfony, what is the recommended sequence of main steps?
+17 คำถามสัมภาษณ์
หัวข้อสัมภาษณ์ Symfony อื่นๆ
Modern PHP (8.1+)
Symfony Basics
Routing & Controllers
Twig & Templates
Doctrine ORM Basics
Symfony Forms
Data Validation
Dependency Injection & Services
Security & Authentication
Doctrine Advanced
API Platform
Serializer Component
Events & Event Subscribers
Console & Commands
Messenger Component
HTTP Client
Cache & Performance
Workflow Component
Testing Symfony
Mailer Component
Translations & i18n
EasyAdmin Bundle
Symfony Architecture
Performance & Optimization
Security Advanced
Custom Bundles
Microservices with Symfony
Real-time & WebSockets
เชี่ยวชาญ Symfony สำหรับการสัมภาษณ์ครั้งถัดไป
เข้าถึงคำถามทั้งหมด flashcards แบบทดสอบเทคนิค แบบฝึกหัด code review และตัวจำลองสัมภาษณ์
เริ่มใช้ฟรี