# Serializer Component (Symfony) > Normalizer, Denormalizer, 직렬화 그룹, 순환 참조, 컨텍스트, 커스텀 Normalizer, Encoder - 20 면접 질문 - Mid-Level - [면접 질문: Symfony](https://sharpskill.dev/ko/technologies/symfony/interview-questions.md) ## 1. Symfony에서 Serializer 컴포넌트의 주요 역할은 무엇인가요? **답변** Serializer 컴포넌트는 PHP 객체를 다양한 형식(JSON, XML, CSV, YAML)으로 변환하거나 그 반대로 변환합니다. 엔티티를 구조화된 응답으로 변환하고 들어오는 요청으로부터 객체를 생성함으로써 REST API에서 핵심적인 역할을 합니다. 이 과정은 정규화(객체에서 배열로)와 인코딩(배열에서 최종 형식으로)의 두 단계로 구성됩니다. ## 2. Symfony에서 직렬화 과정의 두 가지 주요 단계는 무엇인가요? **답변** Symfony의 직렬화는 두 개의 별개 단계로 진행됩니다. 먼저 정규화는 객체 유형에 적합한 Normalizer를 사용하여 PHP 객체를 연관 배열로 변환합니다. 그런 다음 인코딩은 Encoder를 통해 이 배열을 JSON이나 XML 같은 최종 형식으로 변환합니다. 이러한 분리는 컴포넌트의 높은 유연성과 재사용성을 가능하게 합니다. ## 3. Symfony에서 표준 PHP 객체를 직렬화할 때 기본적으로 어떤 Normalizer를 사용해야 하나요? **답변** ObjectNormalizer는 표준 PHP 객체에 가장 다재다능하고 권장되는 Normalizer입니다. PropertyAccess 컴포넌트를 사용하여 getters/setters, public 속성 또는 매직 메서드를 통해 속성에 접근합니다. 또한 직렬화 그룹, callback, 순환 참조 처리를 지원하므로 대부분의 경우 기본 선택지가 됩니다. ## 17개 추가 질문 이용 가능 - Symfony 엔티티에 직렬화 그룹을 어떻게 정의하나요? - Serializer를 호출할 때 직렬화 그룹을 활성화하려면 어떻게 해야 하나요? 무료로 가입하기: 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 - [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/performance-optimization.md): 22개 질문, 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/serializer