# Symfony 아키텍처 (Symfony) > Hexagonal architecture, DDD, CQRS, repositories, DTOs, value objects, bounded contexts - 24 면접 질문 - Senior - [면접 질문: Symfony](https://sharpskill.dev/ko/technologies/symfony/interview-questions.md) ## 1. hexagonal architecture에서 ports의 주요 역할은 무엇입니까? **답변** ports는 비즈니스 도메인과 외부 세계 사이의 계약을 정의하는 인터페이스입니다. primary ports(또는 driving ports)는 외부 행위자가 도메인 내 작업을 트리거할 수 있게 하고, secondary ports(또는 driven ports)는 도메인이 데이터베이스나 서드파티 서비스 같은 외부 인프라와 상호작용할 수 있게 합니다. 이 추상화 덕분에 비즈니스 도메인에 영향을 주지 않고 구현을 변경할 수 있습니다. ## 2. Symfony hexagonal architecture에서 adapter란 무엇입니까? **답변** adapter는 외부 세계와 domain을 연결하는 port의 구체적인 구현입니다. 예를 들어 DoctrineUserRepository는 UserRepositoryInterface port를 구현하는 adapter입니다. primary 측에서는 Symfony controller가 HTTP 요청을 domain의 use case로 적응시키는 adapter입니다. 이러한 분리 덕분에 infrastructure와 독립적으로 domain을 테스트할 수 있습니다. ## 3. Domain-Driven Design에서 Value Object의 주요 특징은 무엇입니까? **답변** Value Object는 식별자가 아니라 속성에 의해 정의됩니다. 동일한 값을 가진 두 Value Object는 동등한 것으로 간주됩니다. 이들은 불변이며, 어떤 변경이든 새로운 인스턴스를 생성합니다. 예를 들어 Email이나 Money 객체는 전형적인 Value Object입니다. 이러한 불변성은 데이터 일관성을 보장하고 복잡한 시스템에서 코드를 추론하기 쉽게 만듭니다. ## 21개 추가 질문 이용 가능 - DDD에서 Aggregate Root의 역할은 무엇입니까? - DTO(Data Transfer Object)란 무엇이며 Symfony에서는 언제 사용합니까? 무료로 가입하기: 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 - [성능 및 최적화](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/architecture-patterns