# Security & Authentication (Symfony) > Firewalls, providers, encoders, voters, authenticators, JWT, OAuth2, access control - 26 면접 질문 - Mid-Level - [면접 질문: Symfony](https://sharpskill.dev/ko/technologies/symfony/interview-questions.md) ## 1. Symfony의 Security 컴포넌트에서 firewall의 주요 역할은 무엇입니까? **답변** Symfony의 firewall은 애플리케이션의 일부에 대한 보안 영역을 정의합니다. 사용자가 어떻게 인증되는지(폼, token, API key)와 어떤 URL이 보호되는지를 결정합니다. 각 firewall은 자체 인증 설정과 자체 user provider를 가질 수 있습니다. ## 2. Symfony Security에서 User Provider란 무엇입니까? **답변** User Provider는 데이터 소스(데이터베이스, LDAP, 외부 API)에서 사용자 정보를 로드하는 역할을 담당합니다. UserProviderInterface를 구현하며, 식별자로 사용자를 로드하거나 세션에서 사용자 데이터를 새로 고치는 메서드를 제공합니다. ## 3. Symfony Security와 함께 사용하기 위해 User 클래스는 어떤 인터페이스를 구현해야 합니까? **답변** User 클래스는 필수 메서드를 정의하는 UserInterface를 구현해야 합니다. 고유 식별자를 위한 getUserIdentifier(), 역할을 위한 getRoles(), 민감한 데이터를 지우기 위한 eraseCredentials()입니다. 비밀번호 인증을 위해서는 PasswordAuthenticatedUserInterface도 필요합니다. ## 23개 추가 질문 이용 가능 - security.yaml에서 역할 기반 접근 제어를 어떻게 정의합니까? - Symfony Security에서 인증과 인가의 차이점은 무엇입니까? 무료로 가입하기: 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 - [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/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/security-authentication