Back End Programming
LATEST FINAL ASSESSMENT
REVIEW
Q&S
©2024/2025
,1. What is the primary advantage of using the Repository Pattern
in back-end programming?
- A) Simplified MVC architecture
- B) Improved database security
- C) Increased application scalability
- D) Separation of database access logic
- Correct ANS: D
- Rationale: The Repository Pattern separates the logic that
retrieves data from a database from the business logic, making the
application easier to maintain and test.
2. Which HTTP method should be idempotent according to
RESTful principles?
- A) POST
- B) GET
- C) DELETE
- D) PATCH
- Correct ANS: B
©2024/2025
, - Rationale: GET requests are idempotent, meaning they can be
repeated without changing the resource state, which is a key
RESTful design principle.
3. In a microservices architecture, which component is crucial
for service discovery?
- A) Load Balancer
- B) API Gateway
- C) Service Registry
- D) Orchestrator
- Correct ANS: C
- Rationale: A Service Registry helps in locating instances of
services, thus supporting service discovery.
4. Which of the following best describes the 'CAP theorem' in
distributed systems?
- A) Consistency, Availability, Partition tolerance can all be
fully achieved simultaneously
- B) Only two out of the three - Consistency, Availability,
Partition tolerance - can be fully satisfied
- C) Performance, Auditability, Persistence
- D) Conciseness, Adaptability, Performance
- Correct ANS: B
©2024/2025