NEW
Font size
S
M
L
XL
WorksheetsHDV-2
Total questions: 75
Worksheet time: 38mins
Name
Class
Date
1.
Which object-oriented design principle is encouraged for complex business logic?
a)
Encapsulation
b)
Inheritance
c)
Applying object-oriented design principles
d)
Polymorphism
2.
What is a benefit of decentralized governance in microservices?
a)
Uniform technology stack
b)
Freedom to choose suitable tools per service
c)
No need for service boundaries
d)
Eliminating testing requirements
3.
What is a typical component of a CI/CD toolchain?
a)
Load balancer
b)
Version control system
c)
Firewall
d)
Database driver
4.
What is the primary principle behind event sourcing?
a)
Storing only the current state of data
b)
Storing every change to application state as a sequence of events
c)
Storing both state and behavior in the database
d)
Using events for communication only
5.
Which type of network connection is generally available to clients within the firewall?
a)
Bluetooth
b)
LAN
c)
Mobile 5G
d)
Satellite
6.
How can a gateway handle varied client needs efficiently?
a)
Through DNS switching
b)
By rejecting requests not from mobile
c)
Using backend for frontends or GraphQL
d)
Using token refresh only
7.
What is a benefit of using a circuit breaker in service communication?
a)
Enables stateful routing
b)
Improves serialization speed
c)
Prevents cascading failures
d)
Provides data encryption
8.
Which mechanism is commonly used to propagate domain changes to query models?
a)
HTTP polling
b)
Direct database replication
c)
Domain events and messaging
d)
API Gateway transforms
9.
What is the role of a projection in the query side of a CQRS system?
a)
To transform events into commands
b)
To synchronize commands with queries
c)
To build and update read models from events
d)
To secure service endpoints
10.
Which protocol is traditionally used in centralized transaction coordination?
a)
HTTP
b)
gRPC
c)
Two-Phase Commit
d)
REST
11.
Dịch vụ dựa trên SOAP hay REST có kiến trúc phức tạp hơn?
a)
SOAP
b)
REST
c)
Tùy thuộc vào cách triển khai cụ thể
d)
SOAP và REST có cùng độ phức tạp
12.
Trong SOAP, các phương thức được định nghĩa trong phần nào của tài liệu WSDL?
a)
Binding
b)
Service
c)
PortType
d)
Message
13.
SOAP là viết tắt của từ gì?
a)
Simple Object Access Protocol
b)
Service Object Access Protocol
c)
Service Oriented Architecture Protocol
d)
Service Object Architecture Protocol
14.
Fine-grained trong dịch vụ web có đặc điểm gì?
a)
Cung cấp các dịch vụ có phạm vi rộng
b)
Cung cấp các dịch vụ lớn, tổng quát
c)
Cung cấp các dịch vụ tương đối nhỏ và phổ biến
d)
Cung cấp các dịch vụ nhỏ, chi tiết
15.
Loại SOA nào được sử dụng phổ biến?
a)
Service Composition
b)
Service Inventory
c)
Service-Oriented Enterprise
d)
Tất cả các loại SOA kể trên
16.
Phân loại các lớp mô hình dịch vụ?
a)
Bất khả tri: Entity Service Layer, Microservices Layer ; Khả tri: Task Service Layer, Utility Service Layer
b)
Bất khả tri: Entity Service Layer, Utility Service Layer; Khả tri: Task Service Layer, Microservices Layer
c)
Bất khả tri: Task Service Layer, Microservices Layer; Khả tri: Entity Service Layer, Utility Service Layer
d)
Bất khả tri: Task Service Layer, Entity Service Layer ; Khả tri: Microservices Layer, Utility Service Layer
17.
Chỉ ra các mô hình dịch vụ phổ biến?
a)
Task service, Microservice, Management service, Utility service
b)
Task service, Microservice, Entity service, Utility service
c)
Task service, Microservice, Entity service, Identity service
d)
Routing service, Microservice, Entity service, Utility service
18.
Khi nào một logic khả tri (non-agnostic) có thể được đóng gói thành một microservice riêng biệt?
a)
Chi phí triển khai và bảo trì
b)
Mức độ độc lập về logic và dữ liệu
c)
Yêu cầu hiệu suất và khả năng mở rộng
d)
Mức độ phức tạp của dịch vụ
19.
Những hành động nào bị coi là cần loại bỏ trong quy trình mô hình hóa REST Service?
a)
Các hoạt động có sự tham gia của con người
b)
Các hoạt động có sự tham gia của con người và những logic nghiệp vụ cũ không thể đóng gói vào trong dịch vụ
c)
Các hoạt động là những logic nghiệp vụ cũ không thể đóng gói vào trong dịch vụ
d)
Đáp án khác
20.
Tại sao xây dựng một microservice dưới dạng dịch vụ Web dựa trên SOAP không phổ biến?
a)
Xử lý liên quan đến nhắn tin SOAP và ngăn xếp công nghệ nhiều lớp của dịch vụ Web và môi trường WS-* có thể gây ra độ trễ
b)
Microservices đòi hỏi một công nghệ xếp chồng đa tầng phức tạp
c)
Microservices dựa trên REST cung cấp hiệu suất tốt hơn
d)
Dịch vụ Web dựa trên SOAP đã lỗi thời
21.
Thuật ngữ "Service Granularity" đề cập đến điều gì?
a)
Phạm vi chức năng của một dịch vụ
b)
Mức độ tương tác của người dùng
c)
Tần suất cập nhật dịch vụ
d)
Băng thông mạng được sử dụng
22.
Điều gì làm cho việc thiết kế utility services khó khăn?
a)
Không có sự liên quan đến quy trình kinh doanh
b)
Được thiết kế dựa trên các yêu cầu công nghệ và thực tế của hệ thống
c)
Yêu cầu sử dụng API phức tạp
d)
Yêu cầu chuyên môn phân tích nghiệp vụ cao
23.
Which of the following is a primary reason for using asynchronous communication in microservices?
a)
To reduce latency in request handling
b)
To simplify service discovery
c)
To decouple services for better scalability
d)
To enforce strict request-response patterns
24.
What is one of the main goals of microservice architecture?
a)
To minimize code reuse
b)
To tightly couple services
c)
To achieve modularity and scalability
d)
To use monolithic deployment
25.
Why is fault isolation important in microservices?
a)
To ensure faster UI rendering
b)
To enable service-level scaling
c)
To prevent a single failure from cascading
d)
To allow reuse of logic
26.
In Kubernetes, what mechanism can automatically roll back a failed deployment?
a)
Pod eviction
b)
Horizontal scaling
c)
Liveness probe
d)
Deployment controller
27.
To avoid configuration drift, what strategy is recommended?
a)
Manual editing of each instance
b)
Centralized logging
c)
Infrastructure as Code
d)
Increasing replicas
28.
What is the typical purpose of a command in event sourcing?
a)
Query data from the database
b)
Request system configuration
c)
Trigger a state change resulting in events
d)
Listen to state changes
29.
What challenge is commonly associated with event sourcing?
a)
Fast writes to the database
b)
Scaling read operations
c)
Keeping events small in size
d)
Rebuilding state after many events
30.
Which of the following is NOT typically a client of the FTGO application’s API?
a)
Browser-based JavaScript
b)
Mobile applications
c)
Third-party partners
d)
Hardware routers
31.
What is the main characteristic of synchronous communication between microservices?
a)
Messages are queued before delivery
b)
Requests are fire-and-forget
c)
Client waits for immediate response
d)
Data is transferred in batch
32.
What is the trade-off of supporting strong consistency in query-side models?
a)
Reduced performance and higher complexity
b)
Increased developer productivity
c)
Improved monitoring tools
d)
Support for cross-cutting concerns
33.
What is the key difference between monolithic and microservices-based transaction handling?
a)
Monoliths handle distributed state
b)
Microservices use centralized databases
c)
Microservices involve distributed transaction context
d)
Monoliths cannot handle ACID properties
34.
What is the primary challenge when managing transactions in a microservices architecture?
a)
Lack of performance
b)
Lack of scalability
c)
Distributed nature of services
d)
Too many logs
35.
Dịch vụ dựa trên SOAP hay REST an toàn hơn?
a)
SOAP
b)
REST
c)
Tùy thuộc vào cách triển khai cụ thể
d)
SOAP và REST có cùng mức độ an toàn
36.
Trường hợp sử dụng phổ biến nhất cho SOAP là gì?
a)
Tạo ứng dụng di động
b)
Tạo ứng dụng web
c)
Tạo ứng dụng doanh nghiệp
d)
Tạo ứng dụng trên máy tính để bàn
37.
Trong WSDL, phần PortType dùng để làm gì?
a)
Chứa các thông tin bổ sung về message
b)
Chứa thông tin về tài nguyên của web service
c)
Định nghĩa các phương thức và kiểu dữ liệu
d)
Chứa các thư viện lập trình
38.
SOAP sử dụng cấu trúc dữ liệu nào để truyền thông tin?
a)
HTML
b)
JSON
c)
Envelope
d)
CSV
39.
Dịch vụ loại nào được sử dụng để xử lý các thực thể kinh doanh liên quan, như hóa đơn, khách hàng hoặc yêu cầu?
a)
Task service
b)
Microservice
c)
Entity service
d)
Utility service
40.
Phương thức HTTP nào thường được sử dụng để truy xuất tài nguyên từ dịch vụ RESTful?
a)
GET
b)
PUT
c)
POST
d)
DELETE
41.
Bước đầu tiên khi mô hình hóa REST Service?
a)
Xác định ứng viên dịch vụ thực thể
b)
Xác định tài nguyên
c)
Xác định logic cụ thể của quy trình
d)
Phân rã quy trình nghiệp vụ
42.
Vai trò của Entity Service trong kiến trúc dịch vụ là gì?
a)
Điều phối và thực hiện các nhiệm vụ cụ thể trong quy trình kinh doanh
b)
Cung cấp các chức năng liên quan đến CRUD (Create, Read, Update, Delete) cho các thực thể
c)
Cung cấp các dịch vụ tiện ích chung mà nhiều dịch vụ khác có thể cần
d)
Đơn vị triển khai độc lập, thực hiện một chức năng duy nhất và cụ thể trong hệ thống
43.
Các mức độ chi tiết khác nhau cần được xem xét khi thiết kế dịch vụ là gì?
a)
Mức độ chi tiết năng lực, giá trị thông điệp, dữ liệu, kiểu dữ liệu
b)
Mức độ chi tiết dịch vụ, năng lực, dữ liệu, kiểu dữ liệu
c)
Mức độ chi tiết dịch vụ, năng lực, giá trị thông điệp, dữ liệu
d)
Mức độ chi tiết dịch vụ, năng lực, ràng buộc, dữ liệu
44.
Tại sao khi thiết kế các hoạt động của dịch vụ web hướng tới có thể mở rộng?
a)
Để tăng hiệu suất xử lý dịch vụ web
b)
Để giảm độ phức tạp của dịch vụ web
c)
Để đáp ứng được yêu cầu mở rộng trong tương lai
d)
Để tạo sự linh hoạt trong quản lý dịch vụ web
45.
Service contract REST được thiết lập dựa trên điều gì trong quá trình phân tích hướng dịch vụ?
a)
Hiệu suất của hệ thống
b)
Ngữ cảnh chức năng
c)
Tính bảo mật của dữ liệu
d)
Tính khả dụng của dịch vụ
46.
Which HTTP status code often indicates a downstream service is unavailable?
a)
200
b)
404
c)
503
d)
301
47.
Which design pattern is commonly combined with aggregates?
a)
Saga pattern
b)
Factory pattern
c)
Builder pattern
d)
Prototype pattern
48.
What is the role of an API Gateway in microservices architecture?
a)
To directly call databases
b)
To store data
c)
To provide a single entry point and route requests
d)
To manage UI layout
49.
Which protocol is commonly used in microservices for communication?
a)
SMTP
b)
HTTP/REST
c)
FTP
d)
POP3
50.
What does a 'blue/green deployment' typically involve?
a)
Running two data centers simultaneously
b)
Switching traffic from old to new service instance
c)
Synchronizing databases
d)
Cloning the source code repository
51.
What is the primary purpose of a deployment pipeline in microservices architecture?
a)
To manage version control
b)
To automate service deployment
c)
To store container images
d)
To build frontend interfaces
52.
A desktop web client wants extensive details from multiple services. What's a good API design approach?
a)
Let it call each service directly
b)
Return large default payloads
c)
Use an API gateway to aggregate and tailor response
d)
Enforce usage of SOAP
53.
How can query models support different consumer needs in microservices?
a)
By providing a single generic model
b)
By customizing views per use case or API endpoint
c)
By including all write data in the query side
d)
By storing commands and queries in one schema
54.
Which of the following best describes a SAGA pattern in microservices?
a)
A way to encrypt transactions
b)
A distributed sequence of local transactions with compensations
c)
A batch transaction handler
d)
A fallback mechanism for HTTP errors
55.
Dịch vụ dựa trên SOAP hay REST dễ phát triển hơn?
a)
SOAP
b)
REST
c)
Tùy thuộc vào kỹ năng của nhà phát triển cụ thể
d)
SOAP và REST đều dễ phát triển
56.
Trong WSDL, phần SOAP Body chứa thông tin gì?
a)
Thông tin về tài nguyên của web service
b)
Phần header của message
c)
Dữ liệu của message
d)
Các thông tin bổ sung về message
57.
Phần tử nào trong SOAP chứa thông tin về tên phương thức?
a)
Body
b)
Header
c)
Envelope
d)
Method
58.
Ngôn ngữ nào dưới đây thường được sử dụng để định nghĩa dịch vụ ?
a)
WSDL
b)
XML
c)
UDDI
d)
SOAP
59.
Trong việc xây dựng một dịch vụ web quản lý blog, việc áp dụng độ mịn như thế nào có thể giúp tăng khả năng tái sử dụng của các chức năng?
a)
Áp dụng độ mịn để chia nhỏ các chức năng như quản lý bài viết, quản lý danh mục, quản lý người dùng
b)
Áp dụng độ mịn để gộp các chức năng blog thành một dịch vụ duy nhất
c)
Áp dụng độ mịn không ảnh hưởng đến khả năng tái sử dụng của các chức năng
d)
Áp dụng độ mịn chỉ cần xác định các API cho việc xây dựng blog
60.
Đâu là một trong những loại SOA phổ biến?
a)
Kiến trúc dịch vụ
b)
Kiến trúc kho dịch vụ
c)
Kiến trúc doanh nghiệp hướng dịch vụ
d)
Tất cả đáp án trên
61.
Vì sao đặc điểm hướng mô hình kinh doanh của SOA lại giúp tăng giá trị và tuổi thọ của kiến trúc?
a)
Giữ đồng bộ liên tục với cách doanh nghiệp phát triển theo thời gian
b)
Làm mô hình kinh doanh phát triển nhanh
c)
Hỗ trợ quá trình chuẩn hóa kinh doanh
d)
Phát triển theo thời gian
62.
Điều gì KHÔNG đúng khi nói về việc xác định các tài nguyên trong giai đoạn mô hình hóa dịch vụ ?
a)
Các tài nguyên có thể được biểu diễn bằng dấu gạch chéo làm dấu phân cách
b)
Các tài nguyên nên được giữ ở dạng đơn giản trong giai đoạn này
c)
Các tài nguyên xác định có thể không liên quan đến các thực thể kinh doanh đã biết
d)
Các tài nguyên cần phải tuân thủ hoàn toàn các tiêu chuẩn URL ngay từ đầu
63.
Trong quy trình mô hình hóa web service, ứng viên dịch vụ nào được xác định đầu tiên?
a)
Entity service
b)
Task service
c)
Microservice
d)
Utility Service
64.
Thiết kế hợp đồng dịch vụ Web thường bắt đầu bằng việc làm gì?
a)
Xác định định nghĩa chính thức về các thông báo của dịch vụ được yêu cầu xử lý
b)
Xác định loại giao thức truyền thông
c)
Xác định cấu trúc dữ liệu tải trọng
d)
Xác định cách triển khai dịch vụ qua REST
65.
Which service pattern supports observability in distributed systems?
a)
Orchestration
b)
Tracing
c)
Logging only
d)
Database sharding
66.
How is the domain model mapped to the database in the FTGO application?
a)
Using SQL
b)
Using stored procedures
c)
Using JPA
d)
Using REST APIs
67.
How can a service publish domain events to other services?
a)
By using a shared memory object
b)
Through REST polling
c)
Via event-driven messaging
d)
Through FTP updates
68.
How might you ensure zero downtime during deployment?
a)
Manual script execution
b)
Scaling down before deployment
c)
Using load balancer to shift traffic
d)
Stopping old version before new one starts
69.
In a microservices environment, what does 'immutable infrastructure' imply?
a)
Infrastructure cannot be resized
b)
Infrastructure is updated in-place
c)
Infrastructure is replaced rather than changed
d)
Infrastructure is read-only
70.
What is the challenge with having a one-size-fits-all API in microservices?
a)
It is always slower than direct DB queries
b)
It requires GraphQL
c)
Different clients have different data needs and network constraints
d)
It reduces reusability of services
71.
Why might a system prefer using separate read databases in microservices?
a)
To ensure all services can write simultaneously
b)
To reduce latency and optimize for read performance
c)
To reduce the number of microservices
d)
To enforce tighter consistency
72.
Which component is NOT typically involved in saga pattern orchestration?
a)
Saga orchestrator
b)
Database lock
c)
Service participant
d)
Compensation logic
73.
Dịch vụ dựa trên SOAP hay REST tốt hơn cho ứng dụng đơn giản?
a)
REST
b)
SOAP
c)
Tùy thuộc vào ứng dụng
d)
SOAP và REST đều có thể được sử dụng cho ứng dụng đơn giản
74.
Phần tử nào trong WSDL định nghĩa các kiểu dữ liệu sử dụng trong phương thức?
a)
input
b)
output
c)
types
d)
operation
75.
Trong WSDL, phần Service dùng để làm gì?
a)
Chứa thông tin về tài nguyên của web service
b)
Định nghĩa phương thức và các đối tượng liên quan
c)
Chứa các thông tin bổ sung về message
d)
Chứa mô tả giao diện dịch vụ web
Reset
