# 성능 및 최적화 (Symfony) > Profiler, Blackfire, 쿼리 최적화, lazy loading, eager loading, 캐싱 전략 - 22 면접 질문 - Senior - [면접 질문: Symfony](https://sharpskill.dev/ko/technologies/symfony/interview-questions.md) ## 1. 개발 주기에서 Symfony Profiler의 주요 목적은 무엇인가요? **답변** Symfony Profiler는 각 HTTP 요청에 대한 상세 정보(실행 시간, SQL 쿼리, 메모리 사용량, cache, events 등)를 수집하는 디버깅 도구입니다. 코드를 수정하지 않고도 병목 지점을 식별하고 애플리케이션 동작을 분석할 수 있게 해줍니다. 기존 로그와 달리 Web Debug Toolbar를 통해 접근할 수 있는 대화형 그래픽 인터페이스를 제공합니다. ## 2. 성능 분석에서 Blackfire는 Symfony Profiler와 어떻게 다른가요? **답변** Blackfire는 함수 단위로 코드를 심층 분석하는 PHP 애플리케이션 프로파일러로, call graphs, 프로파일 비교, 회귀 탐지 기능을 제공합니다. 요청 단위 개요를 제공하는 Symfony Profiler와 달리, Blackfire는 각 함수 호출마다 CPU, 메모리, I/O 지표와 함께 코드 실행 전체를 추적합니다. 또한 서로 다른 코드 버전 간의 성능을 비교할 수 있습니다. ## 3. Doctrine ORM에서 lazy loading과 eager loading의 차이점은 무엇인가요? **답변** lazy loading은 코드에서 실제로 접근할 때만 연관 관계를 로드하므로 초기 부하를 줄이지만, 여러 추가 쿼리로 인해 N+1 문제를 일으킬 수 있습니다. eager loading은 JOIN을 통해 메인 쿼리와 함께 연관 관계를 즉시 로드하여 추가 쿼리를 피하지만, 전송되는 데이터 양이 늘어날 수 있습니다. 선택은 데이터를 어떻게 사용할지에 따라 달라집니다. ## 19개 추가 질문 이용 가능 - Doctrine에서 N+1 쿼리 문제를 어떻게 식별하고 해결하나요? - 거의 변경되지 않지만 자주 읽히는 데이터에는 어떤 캐싱 전략을 사용해야 하나요? 무료로 가입하기: https://sharpskill.dev/ko/login ## 기타 Symfony 면접 주제 - [모던 PHP (8.1+)](https://sharpskill.dev/ko/technologies/symfony/interview-questions/php-modern-features.md): 20개 질문, Junior - [Symfony 기초](https://sharpskill.dev/ko/technologies/symfony/interview-questions/symfony-basics.md): 25개 질문, Junior - [Routing & Controllers](https://sharpskill.dev/ko/technologies/symfony/interview-questions/routing-controllers.md): 20개 질문, Junior - [Twig & Templates](https://sharpskill.dev/ko/technologies/symfony/interview-questions/twig-templates.md): 20개 질문, Junior - [Doctrine ORM 기초](https://sharpskill.dev/ko/technologies/symfony/interview-questions/doctrine-orm-basics.md): 25개 질문, Junior - [Symfony 폼](https://sharpskill.dev/ko/technologies/symfony/interview-questions/forms.md): 22개 질문, Junior - [데이터 유효성 검사](https://sharpskill.dev/ko/technologies/symfony/interview-questions/validation.md): 18개 질문, Junior - [Dependency Injection & Services](https://sharpskill.dev/ko/technologies/symfony/interview-questions/dependency-injection.md): 24개 질문, Mid-Level - [Security & Authentication](https://sharpskill.dev/ko/technologies/symfony/interview-questions/security-authentication.md): 26개 질문, Mid-Level - [Doctrine 고급](https://sharpskill.dev/ko/technologies/symfony/interview-questions/doctrine-advanced.md): 24개 질문, Mid-Level - [API Platform](https://sharpskill.dev/ko/technologies/symfony/interview-questions/api-platform.md): 22개 질문, Mid-Level - [Serializer Component](https://sharpskill.dev/ko/technologies/symfony/interview-questions/serializer.md): 20개 질문, Mid-Level - [Events & Event Subscribers](https://sharpskill.dev/ko/technologies/symfony/interview-questions/events-subscribers.md): 20개 질문, Mid-Level - [Console & Commands](https://sharpskill.dev/ko/technologies/symfony/interview-questions/console-commands.md): 18개 질문, Mid-Level - [Messenger Component](https://sharpskill.dev/ko/technologies/symfony/interview-questions/messenger.md): 22개 질문, Mid-Level - [HTTP Client](https://sharpskill.dev/ko/technologies/symfony/interview-questions/http-client.md): 18개 질문, Mid-Level - [캐시 및 성능](https://sharpskill.dev/ko/technologies/symfony/interview-questions/cache.md): 20개 질문, Mid-Level - [Workflow Component](https://sharpskill.dev/ko/technologies/symfony/interview-questions/workflow.md): 18개 질문, Mid-Level - [Testing Symfony](https://sharpskill.dev/ko/technologies/symfony/interview-questions/testing.md): 22개 질문, Mid-Level - [Mailer Component](https://sharpskill.dev/ko/technologies/symfony/interview-questions/mailer.md): 16개 질문, Mid-Level - [번역 및 i18n](https://sharpskill.dev/ko/technologies/symfony/interview-questions/translations.md): 16개 질문, Mid-Level - [EasyAdmin Bundle](https://sharpskill.dev/ko/technologies/symfony/interview-questions/easyadmin.md): 18개 질문, Mid-Level - [Symfony 아키텍처](https://sharpskill.dev/ko/technologies/symfony/interview-questions/architecture-patterns.md): 24개 질문, Senior - [고급 보안](https://sharpskill.dev/ko/technologies/symfony/interview-questions/security-advanced.md): 22개 질문, Senior - [커스텀 번들](https://sharpskill.dev/ko/technologies/symfony/interview-questions/custom-bundles.md): 20개 질문, Senior - [Symfony를 사용한 마이크로서비스](https://sharpskill.dev/ko/technologies/symfony/interview-questions/microservices.md): 22개 질문, Senior - [Real-time & WebSockets](https://sharpskill.dev/ko/technologies/symfony/interview-questions/real-time.md): 18개 질문, Senior - [Deployment & DevOps](https://sharpskill.dev/ko/technologies/symfony/interview-questions/deployment-devops.md): 20개 질문, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/ko/technologies/symfony/interview-questions/performance-optimization