# Rails Engines 및 모듈식 앱 (Ruby on Rails) > Mountable engines, isolated engines, namespacing, gem 기반 아키텍처 - 18 면접 질문 - Senior - [면접 질문: Ruby on Rails](https://sharpskill.dev/ko/technologies/ruby-on-rails/interview-questions.md) ## 1. Rails Engine란 무엇입니까? **답변** Rails Engine은 호스트 애플리케이션 안에 마운트할 수 있는 소형 Rails 애플리케이션입니다. 여러 애플리케이션 간에 코드(models, controllers, views, routes)를 공유하거나 분리되고 재사용 가능한 기능을 만들 수 있습니다. Devise, Sidekiq Web UI, ActiveAdmin 같은 gem은 Rails 생태계에서 널리 쓰이는 engine의 예입니다. ## 2. 새로운 mountable Rails Engine을 생성하려면 어떤 명령을 사용합니까? **답변** rails plugin new 명령에 --mountable 옵션을 사용하면 자체 namespace, 격리된 routes, 폴더 구조를 가진 완전한 engine이 생성됩니다. --mountable 옵션은 호스트 애플리케이션에서 완전히 격리된 engine을 만듭니다. 반면 --full은 메인 애플리케이션의 namespace를 공유하는 비격리 engine을 생성합니다. ## 3. --mountable engine과 --full engine의 주요 차이점은 무엇입니까? **답변** --mountable engine은 자체 namespace(module), 자체 helpers, 그리고 구성 가능한 접두사 아래 격리된 routes를 가지며 완전히 격리됩니다. --full engine은 호스트 애플리케이션의 namespace를 공유하므로 이름 충돌이 발생할 수 있습니다. mountable engine의 격리는 engine의 클래스와 routes가 메인 애플리케이션의 네임스페이스를 오염시키지 않도록 보장합니다. ## 15개 추가 질문 이용 가능 - 호스트 애플리케이션의 routes.rb 파일에서 Rails Engine을 어떻게 마운트합니까? - Rails Engine에서 isolate_namespace 지시어의 목적은 무엇입니까? 무료로 가입하기: https://sharpskill.dev/ko/login ## 기타 Ruby on Rails 면접 주제 - [Ruby 기초](https://sharpskill.dev/ko/technologies/ruby-on-rails/interview-questions/ruby-basics.md): 25개 질문, Junior - [Ruby 객체 지향 프로그래밍](https://sharpskill.dev/ko/technologies/ruby-on-rails/interview-questions/ruby-oop.md): 20개 질문, Junior - [Rails 기초](https://sharpskill.dev/ko/technologies/ruby-on-rails/interview-questions/rails-fundamentals.md): 18개 질문, Junior - [Routing & Controllers](https://sharpskill.dev/ko/technologies/ruby-on-rails/interview-questions/routing-controllers.md): 22개 질문, Junior - [ActiveRecord 기초](https://sharpskill.dev/ko/technologies/ruby-on-rails/interview-questions/active-record-basics.md): 25개 질문, Junior - [Views와 ERB 템플릿](https://sharpskill.dev/ko/technologies/ruby-on-rails/interview-questions/views-erb-templates.md): 20개 질문, Junior - [ActiveRecord 연관 관계](https://sharpskill.dev/ko/technologies/ruby-on-rails/interview-questions/active-record-associations.md): 24개 질문, Mid-Level - [고급 ActiveRecord 쿼리](https://sharpskill.dev/ko/technologies/ruby-on-rails/interview-questions/active-record-queries.md): 28개 질문, Mid-Level - [Rails 폼](https://sharpskill.dev/ko/technologies/ruby-on-rails/interview-questions/rails-forms.md): 20개 질문, Mid-Level - [인증과 인가](https://sharpskill.dev/ko/technologies/ruby-on-rails/interview-questions/authentication-authorization.md): 22개 질문, Mid-Level - [최신 Asset Pipeline 및 프런트엔드](https://sharpskill.dev/ko/technologies/ruby-on-rails/interview-questions/rails-asset-pipeline.md): 18개 질문, Mid-Level - [Rails API 모드](https://sharpskill.dev/ko/technologies/ruby-on-rails/interview-questions/rails-api-mode.md): 20개 질문, Mid-Level - [RSpec를 사용한 테스트](https://sharpskill.dev/ko/technologies/ruby-on-rails/interview-questions/rails-testing-rspec.md): 24개 질문, Mid-Level - [ActiveJob & Background Jobs](https://sharpskill.dev/ko/technologies/ruby-on-rails/interview-questions/active-job-background-jobs.md): 20개 질문, Mid-Level - [ActionCable & WebSockets](https://sharpskill.dev/ko/technologies/ruby-on-rails/interview-questions/action-cable-websockets.md): 18개 질문, Mid-Level - [ActionMailer](https://sharpskill.dev/ko/technologies/ruby-on-rails/interview-questions/action-mailer.md): 18개 질문, Mid-Level - [ActiveStorage](https://sharpskill.dev/ko/technologies/ruby-on-rails/interview-questions/active-storage.md): 20개 질문, Mid-Level - [캐싱 전략](https://sharpskill.dev/ko/technologies/ruby-on-rails/interview-questions/caching-strategies.md): 20개 질문, Mid-Level - [고급 마이그레이션](https://sharpskill.dev/ko/technologies/ruby-on-rails/interview-questions/database-migrations-advanced.md): 20개 질문, Mid-Level - [성능 최적화](https://sharpskill.dev/ko/technologies/ruby-on-rails/interview-questions/performance-optimization.md): 26개 질문, Senior - [Rails 디자인 패턴](https://sharpskill.dev/ko/technologies/ruby-on-rails/interview-questions/rails-design-patterns.md): 22개 질문, Senior - [Ruby 메타프로그래밍](https://sharpskill.dev/ko/technologies/ruby-on-rails/interview-questions/ruby-metaprogramming.md): 20개 질문, Senior - [Rails 보안](https://sharpskill.dev/ko/technologies/ruby-on-rails/interview-questions/rails-security.md): 22개 질문, Senior - [Rails에서의 GraphQL](https://sharpskill.dev/ko/technologies/ruby-on-rails/interview-questions/graphql-rails.md): 20개 질문, Senior - [배포 및 프로덕션](https://sharpskill.dev/ko/technologies/ruby-on-rails/interview-questions/rails-deployment-production.md): 20개 질문, Senior - [Monitoring & Logging](https://sharpskill.dev/ko/technologies/ruby-on-rails/interview-questions/monitoring-logging.md): 20개 질문, Senior - [Rails 업그레이드 전략](https://sharpskill.dev/ko/technologies/ruby-on-rails/interview-questions/rails-upgrade-strategies.md): 18개 질문, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/ko/technologies/ruby-on-rails/interview-questions/rails-engines-modular-apps