• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 99 pages
Exam (elaborations)

WGU D780 Software Architecture and Design Task 2 | Complete Retail System Monolith-to-Microservices Refactoring Exemplar with Python Flask Code, API Test Cases and Detailed Explanations | 2026/2027 Updated

Document preview thumbnail
Preview 4 out of 99 pages

WGU D780 Software Architecture and Design Task 2 | Complete Retail System Monolith-to-Microservices Refactoring Exemplar with Python Flask Code, API Test Cases and Detailed Explanations | 2026/2027 Updated

Content preview

WGU D780 TASK 2 – RETAIL SYSTEM MONOLITH → MICROSERVICES REFACTORING
Questions and Answers | Updated – 2026/2027 EDITION – Python Flask Code API Test Cases Detailed Explanations

,TABLE OF CONTENTS / EXAM BLUEPRINT

Section 1: 1. Monolith Architecture – Retail System Flask Monolith

Section 2: 2. Microservices Architecture – Decomposition Strategy

Section 3: 3. User, Product, Inventory Services – Flask Implementation

Section 4: 4. Order, Payment, Notification Services – Stripe API Email/SMS

Section 5: 5. API Gateway – Routes, Auth, Rate Limiting

Section 6: 6. Message Queue – RabbitMQ Event Bus & Databases

Section 7: 7. Python Flask Code – Refactoring & Clean Code

Section 8: 8. API Test Cases – Unit & Integration Testing

Section 9: 9. Task 2 Integration – Monolith to Microservices Refactoring

,EXAM BLUEPRINT & INSTRUCTIONS

About This Exam:
• 200 original with complete retail system monolith-to-microservices exemplar – 100% different – fixed factory – new image cover that go
• Covers both tracks: Monolith Flask App Single DB and Microservices API Gateway User Product Inventory Order Payment Notification
• Aligned to WGU D780 Software Architecture and Design Task 2 Complete Retail System Monolith-to-Microservices Refactoring Exemp
• Reflects Task 2 format – MONOLITH Before Retail System Monolith Flask App Single Database PostgreSQL All Features Users Produ

Instructions:
1. Pace yourself: 200Q complete exemplar Python Flask code API test cases
2. Read last line first: monolith microservices retail system Flask API Gateway Docker
3. Monolith Before: Retail System Monolith Flask App from flask import Flask app Flask name @app.route products get_products return
4. Microservices After: API Gateway Routes Auth Rate Limiting User Service Flask /users JWT Auth Product Service /products Catalog I
5. Refactoring Benefits: Scalable Independent Deployments Resilience Containerized with Docker Docker Compose Clean Code Inherita
6. Testing & Documentation: Python Flask code app route jsonify API test cases unit integration pytest detailed explanations tested code

, SECTION ONE: QUESTIONS 1-200
Choose the single best answer. Correct answers and rationales follow each item.

1. Monolith Architecture – Retail System Flask Monolith
Question 1. Which API for Inventory Service Flask /inventory stock check correctly
yields API test cases unit integration pytest with Flask code test cases per Task 2
exemplar? WGU D780 Software Architecture and Design Task 2 Complete Retail System
Monolith to Microservices Refactoring Exemplar with Python Flask Code API Test Cases
and Detailed Explanations 2026/2027 Updated.
A. Ignore Inventory Service Flask /inventory stock check: assume Docker not needed –
incorrect Task 2 exemplar.
B. Miscalculate Inventory Service Flask /inventory stock check as product service no
catalog – Task 2 error.
C. Inventory Service Flask /inventory stock check: inventory → testing. Complete
exemplar Q1: inventory implements API test cases unit integration pytest via monolith to
microservices refactoring with Python Flask code API test cases detailed explanations
for D780 Task 2.
D. Confuse Inventory Service Flask /inventory stock check with API test cases unit
integration pytest: keep monolith all features in one Flask app single DB – not
refactored.
CORRECT ANSWER: C. Inventory Service Flask /inventory stock check: inventory →
testing. Complete exemplar Q1: inventory implements API test cases unit integration
pytest via monolith to microservices refactoring with Python Flask code API test cases
detailed explanations for D780 Task 2.
RATIONALE: Inventory: inventory → testing. Monolith→microservices refactoring Flask API
Gateway Docker. Others keep monolith. Per D780 Task 2 retail system exemplar.

Question 2. Which statement about Scalable independent deployments resilience shows
need for correction re Monolith Before Flask App single database PostgreSQL all
features users products orders payments inventory in D780 Task 2 retail system? WGU
D780 Software Architecture and Design Task 2 Complete Retail System Monolith to
Microservices Refactoring Exemplar with Python Flask Code API Test Cases and
Detailed Explanations 2026/2027 Updated.
A. Ignore Scalable independent deployments resilience: assume API Gateway not needed –
incorrect Task 2 exemplar.
B. Confuse Scalable independent deployments resilience with Monolith Before Flask App
single database PostgreSQL all features users products orders payments inventory: keep
monolith all features in one Flask app single DB – not refactored.
C. Miscalculate Scalable independent deployments resilience as microservices single DB
still – Task 2 error.
D. Scalable independent deployments resilience: benefits microservices → monolith.
Complete exemplar Q2: benefits microservices implements Monolith Before Flask App single
database PostgreSQL all features users products orders payments inventory via monolith
to microservices refactoring with Python Flask code API test cases detailed explanations
for D780 Task 2.
CORRECT ANSWER: D. Scalable independent deployments resilience: benefits microservices
→ monolith. Complete exemplar Q2: benefits microservices implements Monolith Before
Flask App single database PostgreSQL all features users products orders payments
inventory via monolith to microservices refactoring with Python Flask code API test
cases detailed explanations for D780 Task 2.
RATIONALE: Scalable: benefits microservices → monolith. Monolith→microservices refactoring
Flask API Gateway Docker. Others keep monolith. Per D780 Task 2 retail system exemplar.

Document information

Uploaded on
October 27, 2026
Number of pages
99
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$17.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
GradeAchiver
2.3
(4)
Sold
48
Followers
2
Items
4836
Last sold
18 hours ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions