Counted from the questions in the past papers listed on this site. Repeated = how many times the topic came in those papers.
Software Architectures important questions with answers
Each answer starts with the short answer. Then come the points to write, a diagram and an exam tip. The questions under each topic are copied from the RGPV papers.
Q1. Software development models and their issues (spiral, RAD)
Asked 6 times in 2020, 2022, 2023, 2024, 2025 · Unit 1
From the papers
“Describe various models of software development with their issues.” (2020, 2024)
“Compare different software development models and discuss their associated challenges.” (2025)
“What is Rapid Application Development Methodology? Explain its advantages and disadvantages.” (2023)
The short answer
A software development model is the order in which a team does the work of building software: requirements, design, coding, testing and delivery. Each model fits some projects and brings its own problems.
Write these points
Waterfall: each phase ends before the next one starts. It is simple to plan. Its issue is that a wrong requirement is found only at testing, when a change costs the most.
Incremental and iterative: the system is built in small parts. Each part is a working release. Users see results early. The issue is that a weak first design can make later parts hard to add.
Prototyping: a quick model is built to find out what users want, then thrown away or improved. The issue is that users may take the prototype for the real product.
Spiral (Boehm): every loop of the spiral has four parts. The team sets objectives, studies risks and builds a prototype, develops and tests, then plans the next loop. It suits large, risky projects. Its issues are high cost and the need for skilled risk analysts.
RAD (Rapid Application Development): the system is built in short time boxes of 60 to 90 days with reusable parts and code tools. Its phases are requirements planning, user design, construction and cutover. It is fast. It needs active users and a project that can be split into modules.
Agile (Scrum, XP): work is done in sprints of 1 to 4 weeks with daily contact with the customer. Change is welcome. The issue is weak documentation and a hard to fix budget.
Model
Best for
Main issue
Waterfall
Clear, fixed requirements
Late feedback, costly change
Spiral
Large, high risk work
Costly, needs risk experts
RAD
Modular systems, tight dates
Needs users and skilled team
Agile
Changing requirements
Less documentation
Choosing a model for two projects.
Project A: a satellite control system. Budget 40 crore, 3 years, a wrong design is very costly. Risk is the main concern, so the spiral model fits. Each loop ends with a risk review.
Project B: a college event app. 8 weeks, 4 developers, the screens split into modules (login, events, tickets). Speed matters most, so RAD fits. Each module is built in a 2 to 3 week time box.
Rule used: high risk and large size point to spiral; short time and modular parts point to RAD.
Real-life example
ISRO cannot test a rocket by launching it again and again. Its large projects study risk at every stage, as in the spiral model. A startup building a food app in two months works in quick RAD or Agile cycles instead.
Figure: one loop of the spiral model
Same or opposite: spiral model and RAD
Point
Spiral
RAD
Same or opposite
Main focus
Risk analysis
Speed
Opposite
Project size
Large, risky
Small to medium, modular
Opposite
Cost
High
Lower
Opposite
Builds prototypes
Yes
Yes
Same
Exam tip. For the spiral question, draw the four quadrants and name each one. Most of the marks are for the figure. Always write advantages and issues for each model. The question asks for issues by name.
Q2. Need of documentation and principles of sound documentation
Asked 5 times in 2020, 2022, 2023, 2024, 2025 · Unit 5
From the papers
“What are the principles of sound software architecture documentation?” (2025)
“Define Refinement. Explain the principles of sound documentation.” (2024)
“What are the basic principles of Sound Documentation? Explain in detail.” (2023)
The short answer
Architecture documentation records the structures of a system so that people can learn, build and judge it. Sound documentation follows seven rules that make it useful to its readers.
Write these points
Need of documentation: it teaches new team members. It is the main way stakeholders talk about the system. It is the base for analysis, building and testing.
1. Write from the point of view of the reader. Write for the people who will read it, not for the writer.
2. Avoid needless repetition. Keep each fact in one place and refer to it.
3. Avoid ambiguity. Explain what every box, line and symbol means, or use a standard notation such as UML.
4. Use a standard organisation. A fixed template helps readers find things and shows what is still missing.
5. Record rationale. Write why a choice was made and which options were rejected.
6. Keep documentation current but not too current. Update it at planned points, not after every small change.
7. Review documentation for fitness of purpose. Ask its real readers whether it meets their needs.
Example.
Refinement means showing an element again in more detail. Decomposition refinement opens one box to show its parts. Implementation refinement shows the same element with more of its real code structure. A context diagram then shows how the refined part fits in its surroundings.
Real-life example
When a new developer joins a bank's IT team, the architecture document tells them how the systems fit together. Without it they would spend weeks asking around.
Figure: seven rules of sound documentation
Same or opposite: good and poor documentation
Point
Sound documentation
Poor documentation
Same or opposite
Written for
The reader
The writer
Opposite
Rationale recorded
Yes
No
Opposite
Kept current
At planned points
Rarely
Opposite
Describes the architecture
Yes
Yes
Same
Exam tip. List all seven principles. A one line meaning for each is enough for 7 marks. If the question also asks for refinement, define both kinds: decomposition and implementation.
Q3. Architectural styles and patterns: client-server, master-slave, MVC
Asked 5 times in 2020, 2022, 2023, 2025 · Unit 1
From the papers
“List and define any two software architecture styles with their characteristics.” (2025)
“What is Model View Architecture? Explain its characteristics in detail.” (2023)
“What is a software architecture framework? Write the difference between client-server and master-slave software architecture patterns.” (2022)
The short answer
An architectural style (or pattern) is a named, reusable way to arrange components and connectors, with rules on how they may work together. A software architecture framework is a set of standard views and rules for describing an architecture, such as the 4+1 view model or ISO/IEC 42010.
Write these points
Client-server: many clients send requests to a central server, which does the work and replies. Example: a browser and a web server. The server can become a bottleneck.
Master-slave: a master splits one job, gives the parts to slaves, then joins their results. The slaves do not talk to each other. Example: database replication, where the master takes writes and slaves hold copies.
MVC (Model View Controller): the model holds data and rules. The view shows the data. The controller takes user input and updates the model. One model can have many views, so the UI can change without touching the logic.
Event driven (publish and subscribe): components publish events to a bus. Every subscriber reacts. Senders do not know the receivers, so new parts plug in easily. The flow is hard to trace and test.
Other styles to name in a comparison: layered, pipe and filter, repository (shared data store, such as a blackboard) and broker.
Point
Client-server
Master-slave
Who starts work
Client sends a request
Master hands out tasks
Who does the work
Server serves many clients
Many slaves do parts of one job
Aim
Share one service
Parallel work, copies of data
Example
Browser and web server
DB replication, MapReduce
One login request in MVC.
1. The user submits the login form. The LoginController receives the user name and password.
2. The controller calls UserModel.check(name, password). The model looks up the users table and returns true.
3. The controller selects DashboardView. The view reads the user's name from the model and shows "Welcome, Riya".
If the password is wrong, the model returns false and the controller selects LoginView with an error message.
Real-life example
Gmail in a browser is client-server. A MySQL setup with one main server and read copies is master-slave. Most web frameworks, such as Django and Spring, follow MVC.
Figure: MVC, how one request moves through controller, model and viewFigure: request flow in MVC
Same or opposite: client-server and master-slave
Point
Client-server
Master-slave
Same or opposite
Who starts work
Client sends a request
Master hands out tasks
Opposite
Aim
Share one service
Parallel work, copies of data
Opposite
Central part can be a bottleneck
Yes
Yes
Same
Example
Browser and web server
Database replication
Opposite
Exam tip. Give each style its parts, one real example and one drawback. In MVC the view never changes the model directly. User input goes through the controller.
“Explain pipes and filters in detail.” (2020, 2023)
“Short note: Data flow architecture.” (2024)
“Write a short note on pipes and filter architecture.” (2022)
The short answer
Pipes and filters is a data flow style. Independent filters each read a stream, change it and pass it on through pipes to the next filter.
Write these points
A filter does one job, such as remove, sort or convert. It knows nothing about the filters before or after it.
A pipe moves data in one direction and may buffer it. A data source feeds the first filter. A data sink takes the last output.
Filters can run at the same time, since each one starts on data as soon as it arrives.
Data flow variants: in batch sequential, each step finishes the whole data before the next starts, as in old payroll runs. Pipe and filter streams the data through. Process control uses a feedback loop, such as a thermostat.
Advantages: filters are easy to reuse and swap. New filters can be added. The design is easy to understand as a series of steps.
Disadvantages: it does not suit interactive systems. Each filter may parse and format data again. An error in the middle is hard to handle.
Example.
Unix shell: cat marks.txt | grep CSE | sort | uniq. Here cat is the source. grep, sort and uniq are filters. Each | is a pipe. A compiler is another example: lexical analysis, parsing, code generation.
Real-life example
A video app uploads a clip, then compresses it, then adds subtitles, then makes thumbnails. Each step is a filter. The queue between steps is a pipe.
Figure: pipes and filters in a compilerFigure: a pipe and filter chain
Same or opposite: batch sequential and pipe and filter
Point
Batch sequential
Pipe and filter
Same or opposite
Data passes as
Whole batch after each step
A stream, piece by piece
Opposite
Steps run at the same time
No
Yes
Opposite
Example
Old payroll run
Unix shell pipeline
Opposite
Data flow style
Yes
Yes
Same
Exam tip. Draw source, at least two filters, pipes and a sink. Label which part is a pipe. Filters keep no shared state. That is why they can be reused and run in parallel.
Q5. Architecture Description Language (ADL) and its features
Asked 4 times in 2020, 2022, 2023, 2025 · Unit 3
From the papers
“What is an Architecture Description Language (ADL)? Explain with suitable examples.” (2022, 2025)
“What is architecture description language? Outline the features of architecture description languages.” (2020, 2023)
The short answer
An Architecture Description Language (ADL) is a formal language for writing down the architecture of a system as components, connectors and their configuration. Because it is formal, tools can check and analyse the design before code is written.
Write these points
Components: the units of computation or data, such as a client or a database. Each has ports, which are its points of contact.
Connectors: the links between components, such as a procedure call, a pipe or an event bus. Each has roles, which are its ends.
Configuration: how ports are attached to roles. This is the shape of the whole system.
Features of a good ADL: clear syntax and meaning, types for components and connectors and constraints the design must keep. It also allows hierarchy, where one component holds a subsystem, with analysis and tool support.
Uses: it removes the doubt of box and line drawings. Tools can check it for deadlock or performance. It guides code generation.
Examples: Acme (exchange of designs between tools), Wright (connector behaviour, deadlock checks), Rapide (event simulation), Darwin (distributed systems), AADL (embedded systems) and xADL (XML based).
Example.
System simple_cs has a client component with port send-request and a server component with port receive-request.
Connector rpc has two roles: caller and callee.
Attachments: client.send-request goes to rpc.caller. server.receive-request goes to rpc.callee.
Real-life example
Aircraft and car software is often described in AADL, an ADL. Tools then check timing and safety from that description before any code runs in the vehicle.
Figure: what an ADL describes
Same or opposite: ADL and UML
Point
ADL
UML
Same or opposite
Formal meaning
Strict
Looser
Opposite
Main focus
Components, connectors, configuration
Many kinds of design models
Opposite
Tool analysis
Strong
Limited
Opposite
Describes software structure
Yes
Yes
Same
Exam tip. Name the three parts (components, connectors, configuration) and give at least two real ADLs. Ports belong to components and roles belong to connectors. Do not mix them up.
Q6. ATAM (Architecture Tradeoff Analysis Method) and its phases
Asked 4 times in 2020, 2022, 2023, 2025 · Unit 4
From the papers
“Explain the Architecture Tradeoff Analysis Method (ATAM) with an example.” (2020, 2023, 2025)
“Write down the steps to analyse quality of software architecture using Trade-off Analysis (ATAM) Method.” (2022)
The short answer
ATAM (Architecture Tradeoff Analysis Method) is the SEI method for checking an architecture against its quality goals. It finds risks and tradeoffs before the system is built, using scenarios that stakeholders agree on.
Write these points
Phase 0, partnership and preparation: the evaluation team and the client agree on scope, people and dates.
Phase 1, evaluation with the architect and project leaders (steps 1 to 6): present ATAM, the business drivers and the architecture. Then identify the approaches, build the utility tree and analyse the approaches against the top scenarios.
Phase 2, evaluation with all stakeholders (steps 7 to 9): brainstorm and vote on scenarios, analyse the approaches again with them and present the results.
Phase 3, follow up: the team writes the final report and reviews how well the evaluation went.
Outputs: risks, non-risks, sensitivity points and tradeoff points. A sensitivity point is a choice that one quality depends on. A tradeoff point affects two qualities, such as encryption that adds security but costs speed.
Example.
A bank app has the scenario: 1,000 users log in at 9 a.m. and each login takes under 2 seconds. The team sees one database server. That is a risk for performance and availability. Adding a replica is a tradeoff point, since it helps both but adds cost and sync delay.
Real-life example
A bank wants its new payment system fast and also very secure. Extra security checks slow it down. ATAM brings the team together to find such trade-offs before the system is built.
Figure: phases of ATAM
Same or opposite: ATAM and ARID
Point
ATAM
ARID
Same or opposite
Design stage
Complete architecture
Partial design
Opposite
Checks
Quality attribute trade-offs
Whether the design is usable
Opposite
Duration
Several days
About two days
Opposite
SEI review method
Yes
Yes
Same
Exam tip. Write all nine steps in order. Many students forget the utility tree in step 5. Know the four outputs by name. Define sensitivity point and tradeoff point.
“Explain Active Reviews for Intermediate Design (ARID) and Attribute Driven Design (ADD) methods.” (2025)
“Define ARID with its characteristics.” (2024)
“Write a note on Active Reviews for Intermediate Design.” (2023)
The short answer
ARID (Active Reviews for Intermediate Design) is an SEI method for reviewing a design that is only partly done, such as the interface of one subsystem. It mixes Parnas's Active Design Reviews with the scenario idea of ATAM.
Write these points
Its aim is to check whether the design can be used by the people who must build on it, before the full architecture exists.
The people are a facilitator, a scribe, the lead designer and reviewers, who are the future users of the design, such as the programmers of other modules.
Phase 1, rehearsal by the designer and facilitator (steps 1 to 4): identify the reviewers, prepare the design briefing, prepare seed scenarios and prepare the materials.
Phase 2, review by everyone (steps 5 to 9): present ARID and the design, then brainstorm and rank scenarios. Reviewers write pseudo code that uses the design to solve each scenario. Last, the issues found are summarised.
Step 8 makes the review active. A reviewer who must write the calls finds missing functions and unclear rules quickly.
Point
ATAM
ARID
Design state
Full architecture
Partial, intermediate design
Checks
All quality attributes
Fitness for use by its users
Effort
Several days, many people
About two days, small group
Output
Risks and tradeoffs
Issues list for the designer
ARID on a payment API.
A team has designed only the interface of a payment subsystem: pay(), refund() and status().
The reviewers are the app developers who will call it. Seed scenario: refund half of a paid order.
A reviewer writes pseudo code: status(order), then refund(order, amount / 2). The design has no way to pass a part amount.
Issue recorded: refund() needs an amount field. It is fixed before the rest of the subsystem is built.
Real-life example
A team building an app's payment module asks other developers to write real code against its half-finished interface. If they get stuck, the interface needs work. ARID reviews a design this way.
Figure: steps of ARID
Same or opposite: ARID and a normal design review
Point
ARID
Normal review
Same or opposite
Reviewers
Write tasks using the design
Read and comment
Opposite
Finds
Usability of the interface
General faults
Opposite
Stage
Intermediate design
Any
Opposite
Improves the design
Yes
Yes
Same
Exam tip. The benefits over ATAM are that ARID is cheaper, works early and checks usability of the design by its users. Remember the two phases and the nine steps. Step 8 is the heart of ARID.
Q8. Attribute Driven Design (ADD) method and its steps
Asked 5 times in 2022, 2024, 2025 · Unit 4
From the papers
“Illustrate the Attribute Driven Design (ADD) method with a case study.” (2025)
“Explain Active Reviews for Intermediate Design (ARID) and Attribute Driven Design (ADD) methods.” (2025)
“Explain attribute driven design method of architecture analysis.” (2022)
The short answer
ADD (Attribute Driven Design) is the SEI method for designing an architecture from its quality attribute requirements. It breaks the system down step by step and picks patterns and tactics that meet the most important qualities first.
Write these points
Input: functional requirements, quality attribute scenarios and constraints. The quality scenarios drive the choices.
Output: the first layers of decomposition into modules and components, their responsibilities and their interfaces.
ADD is recursive. Each child element is designed by running the same steps again.
Architecturally significant requirements (ASRs) are the few requirements that shape the structure, such as 2 second response time or 99.9 percent uptime.
Steps
Confirm there is enough requirement information to start.
Choose an element of the system to decompose (at first, the whole system).
Identify the ASRs for that element and rank them.
Choose a design concept (pattern or tactic) that meets the top ASRs.
Instantiate child elements and give each one its responsibilities.
Define the interfaces between the child elements.
Verify and refine the requirements, turning them into constraints for the children.
Repeat for the next element until the design is complete.
Example.
Case study, a ticket booking site. The top ASR is 10,000 users at release time with response under 3 seconds. The design concept is load balancing with stateless web servers and a cache. The children are the load balancer, web servers, booking service and seat database, joined by REST calls and SQL. The next round adds a database replica for availability.
Real-life example
If an online exam site must stay up for lakhs of students at one time, availability drives its design. ADD starts from such quality needs and picks patterns, such as load balancers, to meet them.
Figure: steps of ADD
Same or opposite: ADD and ATAM
Point
ADD
ATAM
Same or opposite
Purpose
Design an architecture
Evaluate an architecture
Opposite
Input
Quality attribute requirements
A finished architecture
Opposite
Uses quality attributes
Yes
Yes
Same
Output
Module structure
Risks and trade-offs
Opposite
Exam tip. Write the steps in order and show that the method loops. Quality attributes drive ADD, not functions. Say that in the first line.
Java RMI (Remote Method Invocation) lets a Java program call a method of an object in another JVM as if it were local. CORBA does the same job across many languages.
Write these points
RMI parts: a remote interface that extends java.rmi.Remote, where every method throws RemoteException. A server class implements it.
The stub is the proxy on the client side. It marshals (serializes) the method name and arguments and sends them over the network. On the server, the skeleton (or the RMI runtime in new Java versions) unmarshals them and calls the real object.
The RMI registry is a naming service. The server calls Naming.rebind(name, obj). The client calls Naming.lookup(name) to get the stub.
CORBA parts: interfaces are written in IDL (Interface Definition Language). An IDL compiler makes stubs and skeletons for C++, Java and other languages. The ORB (Object Request Broker) carries calls. ORBs talk to each other over IIOP.
CORBA services include naming, events and transactions. The object adapter (POA) connects the ORB to the server object.
Point
RPC
RMI
CORBA
Style
Procedure call
Object method call
Object method call
Language
Mostly C
Java only
Many languages
Interface
XDR / IDL file
Java interface
OMG IDL
Can pass objects
No, only data
Yes, by serialization
Yes, by IDL types
A remote method call in RMI.
Interface: Calculator extends Remote, with the method int add(int a, int b) throws RemoteException.
Server: creates CalculatorImpl and binds it with Naming.rebind("calc", obj).
Client: Calculator c = (Calculator) Naming.lookup("rmi://server/calc"); then c.add(5, 7).
The stub sends 5 and 7 over the network, the skeleton calls add on the server and 12 comes back to the client.
Real-life example
A railway booking client written in Java can call a seat-check method on a server in another city as if it were a local method. That is what RMI gives.
Figure: Java RMI, a stub on the client and a skeleton on the serverFigure: a call in Java RMI
Same or opposite: RMI and RPC
Point
RMI
RPC
Same or opposite
Calls
Methods of remote objects
Remote procedures
Opposite
Language
Java only
Many languages
Opposite
Passes objects
Yes
Only data
Opposite
Hides network details from the caller
Yes
Yes
Same
Exam tip. Draw client, stub, network, skeleton, server and the registry. Number the steps bind, lookup, call. RMI is Java to Java. CORBA is language neutral. That is the main difference examiners ask for.
“Discuss the role of UML in Software Architecture.” (2020, 2023)
“Describe various UML diagrams used in software architecture using suitable diagrams.” (2022)
The short answer
UML (Unified Modeling Language) is the standard notation for drawing software models. In software architecture it gives one shared language to show the structure, behaviour and deployment of a system from several views.
Write these points
Component diagram: shows components and their interfaces. A provided interface is drawn as a circle (lollipop) and a required interface as a half circle (socket).
Deployment diagram: shows nodes (servers, devices) as 3D boxes, the artifacts placed on them and the links between nodes. It answers where each part runs.
Class and package diagrams: show the module view, that is, the code units and how they depend on each other.
Sequence and activity diagrams: show behaviour, the order of messages between parts for one scenario.
State machine diagram: shows the states of one element and the events that move it between states.
Role of UML: a common language for all stakeholders, support for the 4+1 views (logical, process, development, physical, scenarios), tool support and a link from design to code. Its limit is weak meaning for connectors, which is why ADLs exist.
UML diagrams for a library system.
Structure: a class diagram with Book, Member and Loan. A component diagram with the web app, the loan service and the database.
Behaviour: a sequence diagram for issue book, from the librarian screen to the loan service to the database.
Deployment: a deployment diagram with one web server, one app server and one database server.
These diagrams cover the module, component and allocation views of one system.
Real-life example
Before building a hospital system, architects draw component diagrams for the main parts and deployment diagrams for the servers. The whole team then reads the same picture.
Figure: UML diagrams used for architecture
Same or opposite: component and deployment diagram
Point
Component diagram
Deployment diagram
Same or opposite
Shows
Software parts and interfaces
Hardware nodes and what runs on them
Opposite
View
Logical structure
Physical setup
Opposite
UML structural diagram
Yes
Yes
Same
Example
Payment, Login components
App server, DB server
Opposite
Exam tip. Draw at least one component diagram with lollipop and socket. Draw one deployment diagram with nodes. Link each diagram to a view: component for structure, deployment for allocation, sequence for behaviour.
Q11. Documentation package using the seven-part template
Asked 3 times in 2023, 2024, 2025 · Unit 5
From the papers
“Explain the software documentation package using a seven-part template.” (2025)
“Describe seven part template for documentation package.” (2024)
“What is the Documentation Package? Explain in detail.” (2023)
The short answer
A documentation package is the full set of architecture documents for a system. Each view uses a standard seven-part template, plus one section on how the views fit together.
Write these points
1. Primary presentation: the main picture of the view (or a table) showing its elements and relations.
2. Element catalog: details of every element in the picture, with its properties, relations, interfaces and behaviour.
3. Context diagram: shows what is inside the part being documented and what is outside it, with the links between them.
4. Variability guide: shows the parts of the design that can change, such as product options or settings. It also says how to choose them.
5. Architecture background: the rationale for the design, the analysis results and the assumptions.
6. Glossary of terms: short meanings of the terms used in the view.
7. Other information: version, owner, change history and anything that fits nowhere else.
Beyond the views: a roadmap of the package, a view template, mapping between views, a directory of elements and the system wide rationale.
One view in the seven-part template.
View: the deployment view of an online exam system.
1. Primary presentation: a diagram of the web servers, the exam server and the database. 2. Element catalogue: what each server does.
3. Context diagram: students and the college network. 4. Variability guide: one or two web servers.
5. Rationale: two web servers for exam day load.
6. Glossary: terms such as load balancer. 7. Other information: owner, version and date.
Real-life example
A government project handed from one company to another comes with a documentation package. The new team finds each view with the same seven sections, so nothing is missed.
Figure: the seven-part template
Same or opposite: primary presentation and element catalog
Point
Primary presentation
Element catalog
Same or opposite
Shows
Main elements and links
Details of every element
Opposite
Form
Picture or table
Text and tables
Opposite
Part of the seven-part template
Yes
Yes
Same
Order in the template
First
Second
Opposite
Exam tip. Learn the seven parts in order. Writing them as a numbered list gets most of the marks. The primary presentation shows only the main elements. The details go in the element catalog.
Q12. Microservices versus monolithic architecture and scalability
Asked 4 times in 2022, 2025 · Unit 2
From the papers
“Illustrate how the micro-services architecture enhances software scalability.” (2025)
“What is microservices architecture and how is it different from monolithic architecture?” (2025)
“Explain micro services based architecture and agent based architecture in brief.” (2022)
The short answer
Microservices architecture builds one application as many small services, each with one business job, its own data and its own deployment. They talk through light APIs such as REST.
Write these points
Monolithic: the whole application is one unit with one code base and one database. A small change means building and deploying everything again.
Microservices: the order, payment and user services are separate. Each can be written, tested and deployed by its own small team.
An API gateway is the single entry point for clients. It routes each request to the right service. A service registry helps services find each other.
Scalability: only the busy service gets more copies. During a sale, the shop can run ten copies of the order service and one copy of the user service. Containers (Docker) and Kubernetes start and stop these copies.
Fault isolation: if one service fails, the rest keep working. A circuit breaker stops calls to the failed service.
Challenges: many network calls, data spread across many databases, harder testing and the need for good monitoring.
Point
Monolithic
Microservices
Deployment
Whole app at once
Each service alone
Scaling
Copy the whole app
Copy only the busy service
Database
One shared database
One database per service
Failure
One bug can stop all
Failure stays in one service
Scaling a food delivery app.
Monolith: one app holds menu, orders and payments. At 8 pm orders grow ten times, so the whole app is copied to 10 servers.
Microservices: only the order service is busy. It runs 10 copies while menu and payment stay at 2 each.
Result: 14 small service copies instead of 10 full apps. A bug in payments does not stop people from seeing menus.
Real-life example
During a big sale, an online store needs many copies of its checkout service but not of its reviews service. With microservices, only checkout is scaled up.
Figure: a monolith next to the same shop built as microservicesFigure: a request in a microservices app
Same or opposite: microservices and monolithic architecture
Point
Microservices
Monolithic
Same or opposite
Deployment
Each service on its own
Whole app at once
Opposite
Scaling
Only the busy service
Whole app
Opposite
Database
One per service
One shared
Opposite
Delivers the full application
Yes
Yes
Same
Complexity
Higher, network calls
Lower at the start
Opposite
Exam tip. Say "independently deployable" and "database per service". Examiners look for both ideas. For the scalability question, give the sale day example with numbers of copies.
Q13. J2EE components: JSP, Servlets (life cycle) and EJB
Asked 3 times in 2024, 2025 · Unit 3
From the papers
“Develop a simple architecture for an enterprise application using J2EE components.” (2025)
“Discuss the use of J2EE components like JSP, Servlets and EJBs in enterprise applications.” (2025)
“Define JSP. Describe the life cycle of servlets.” (2024)
The short answer
J2EE (now Jakarta EE) is the Java platform for multi tier enterprise applications. Its main components are Servlets and JSP in the web tier and EJBs (Enterprise JavaBeans) in the business tier, all running inside a server container.
Write these points
Servlet: a Java class on the server that takes an HTTP request and builds a response. It is good for control logic.
JSP (JavaServer Pages): an HTML page with Java tags. The server turns each JSP into a servlet the first time, then compiles it. It is good for the view.
EJB: business logic that the container manages for transactions, security and pooling. Session beans (stateless, stateful, singleton) hold the logic. Message driven beans read JMS messages. Data is saved through JPA entities.
Tiers of an enterprise app: client tier (browser), web tier (Servlet, JSP), business tier (EJB) and EIS tier (database through JDBC).
Example shop: the browser sends an order to OrderServlet, which calls OrderBean (an EJB). The bean saves the order through JPA and sends a JMS message to the billing bean. A JSP then shows the receipt.
Steps
Loading and instantiation: the container loads the servlet class and creates one object.
init(): called once, to open resources such as a database connection.
service(): called for every request, each on its own thread. It passes GET to doGet() and POST to doPost().
destroy(): called once before the servlet is removed, to free resources.
Servlet life cycle for a login page.
1. The container loads LoginServlet and calls init() once. It opens a database pool.
2. Each login request calls service(), which calls doPost(). It checks the user name and password.
3. When 500 students log in, the same servlet object serves all 500 requests on separate threads.
4. When the server shuts down, destroy() is called once and the pool is closed.
Real-life example
Many bank and government portals in India were built on Java EE. A servlet takes the login request, an EJB checks the account and a JSP page shows the balance.
Figure: the servlet life cycleFigure: servlet life cycle
Same or opposite: Servlet and JSP
Point
Servlet
JSP
Same or opposite
Written as
Java code with HTML in strings
HTML with Java tags
Opposite
Best for
Control logic
Showing pages
Opposite
Runs in a web container
Yes
Yes, compiled to a servlet
Same
Role in MVC
Controller
View
Opposite
Exam tip. The servlet life cycle has three methods: init() once, service() per request, destroy() once. JSP is for the view, servlet for control and EJB for business logic. That is MVC on Java.
In a layered architecture the system is split into layers. Each layer gives services to the layer above it and uses only the services of the layer below it.
Write these points
A common four layer stack is presentation (UI), business logic, persistence (data access) and database. The OSI network model is another example.
Strict layering lets a layer call only the layer just below. Relaxed layering lets it skip down past a layer. That is faster but builds more links between layers.
Abstract common services: services that many parts need, such as logging, database access or security, sit once in a lower layer. Upper layers reuse them, so a change is made in one place.
Encapsulate: each layer hides its inner work behind a public interface. An upper layer depends only on that interface, so the inside of a layer can change freely.
Use an intermediary: a layer stands between the layers above and below it. The UI never talks to the database directly. It goes through the business and data access layers, so the database can be replaced.
Disadvantages: each call passes through several layers, which costs time. A change that touches every layer is costly.
Changing the database in a layered app.
Layers: presentation (web pages), business (fee rules), data access (SQL) and the database.
The college moves from MySQL to PostgreSQL. Only the data access layer changes its SQL and driver.
The business and presentation layers call the same methods as before, so they do not change.
This is the modifiability tactic of hiding the database behind one layer.
Real-life example
A college app can move from MySQL to PostgreSQL without touching its screens. Only the data access layer changes, because the screens never talk to the database directly.
Figure: a four-layer architectureFigure: four-layer architecture
Same or opposite: strict and relaxed layering
Point
Strict
Relaxed
Same or opposite
Calls allowed
Only the layer just below
Any lower layer
Opposite
Speed
Slower
Faster
Opposite
Ease of change
Higher
Lower
Opposite
Upper layers use lower ones
Yes
Yes
Same
Exam tip. Calls go downward and results come back up. A lower layer never calls an upper one. For the 2024 question, link each tactic (abstract, encapsulate, intermediary) to one layer in your figure.
“How can we decide the quality of software architecture? Explain.” (2023)
“What are the six characteristics of a scenario for quality attributes specification?” (2023)
The short answer
A quality attribute scenario is a short, testable statement of one quality need, such as performance. Its six parts say what happens, where and how the result is measured.
Write these points
Source of stimulus: who or what causes the event, such as a user, another system or an attacker.
Stimulus: the event that arrives, such as a request, a fault or a change request.
Environment: the condition of the system at that time, such as normal load, peak load or offline.
Artifact: the part that is stimulated, such as the whole system, one service or the database.
Response: what the system does, such as process the request, log the fault or switch to backup.
Response measure: the number that shows the response is good enough, such as latency under 2 seconds or recovery within 30 seconds.
To decide the quality of an architecture, the team writes such scenarios for each quality and checks the design against them, as ATAM does with its utility tree.
Example.
Performance scenario: Users (source) send 1,000 booking requests per minute (stimulus) during peak hours (environment) to the booking system (artifact). The system processes every request (response) with an average latency under 2 seconds (response measure).
Real-life example
'When 10,000 students open results at 10 am, each page loads within 2 seconds.' This one line is a quality attribute scenario. It names the source, stimulus, environment and response measure.
Figure: six parts of a quality attribute scenario
Same or opposite: general and concrete scenario
Point
General scenario
Concrete scenario
Same or opposite
Detail
System independent
For one system
Opposite
Example
Users send many requests
10,000 result requests at 10 am
Opposite
Has the six parts
Yes
Yes
Same
Testable as written
No
Yes
Opposite
Exam tip. Learn the six parts in order: source, stimulus, environment, artifact, response, response measure. A scenario without a number in the response measure cannot be tested. Always give a number.
Software Architectures (CS-701) is about the big design choices that shape a software system. It is a Semester 7 subject of RGPV B.Tech CSE with five units: development methods, architecture models and styles, implementation technologies, analysis and design methods, and documentation. Learn each style with a real system as its example.
Software Architectures unit-wise brief
Unit 1: Overview of software development methodology
This unit reviews development methods and quality models, then introduces software architecture: how it evolved, components and connectors, common frameworks, the architecture business cycle, patterns and reference models. Be able to say what architecture is and why it matters.
Unit 2: Software architecture models and styles
Here you study structural, framework, dynamic and process models, and the main styles: dataflow, pipes and filters, call-and-return, data-centred, layered, agent based, micro-services, reactive and REST. Make a table that pairs each style with an example and its main weakness.
Unit 3: Implementation technologies
This unit covers architecture description languages, and the technologies used to build systems: Struts, Hibernate, Node JS, Angular JS, J2EE (JSP, Servlets and EJB), middleware such as JDBC, JNDI, JMS, RMI and CORBA, and the role of UML. Know what each technology is used for.
Unit 4: Architecture analysis and design
The unit covers requirements for architecture, the life-cycle view of design and analysis, and methods such as CBAM, ATAM, ARID and ADD, plus architecture reuse and domain-specific architecture. Learn the purpose of each method in one line.
Unit 5: Architecture documentation
The last unit covers the principles of sound documentation, refinement, context diagrams, variability, software interfaces, documenting behaviour, and a documentation package built on a seven-part template. Learn the seven parts in order.
Units follow the RGPV scheme and syllabus, B.Tech Computer Science and Engineering, Semester 7 (AICTE flexible curriculum, w.e.f. July 2020) (copy hosted by VIT Bhopal (RGPV-affiliated)). For the full topic list of each unit, open the Software Architectures notes.
What are the most important topics in Software Architectures?
By how often they were asked in the papers on this site: Software development models and their issues (spiral, RAD) (6 times); Need of documentation and principles of sound documentation (5 times); Architectural styles and patterns: client-server, master-slave, MVC (5 times); Attribute Driven Design (ADD) method and its steps (5 times); Java RMI, CORBA and RMI vs RPC (5 times).
How were these Software Architectures important questions chosen?
Each topic was counted from the questions in the past papers listed on this site (2020-2025). Repeated is the number of times the topic came. The counts come from keyword matching and the answers are not teacher-reviewed, so use them together with your syllabus.
Is there a PDF of Software Architectures important questions with answers?
Yes. The Paperwala Imp Question & Answer PDF for Software Architectures is free to download from this page.
The 15 most repeated topics of Software Architectures (CS-701) for RGPV B.Tech CSE semester 7, counted from the previous year papers on this site.