Component based systems Flashcards

1
Q

What defines a software component?

A

It is any reusable piece of software with a clear function, computation, and data stores, defined by its interfaces.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the main difference between a module and a component?

A

Modules are artifacts grouped together and exist in the file system at design-time, while components are instantiated component types that exist only at runtime.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why are components essential in software architecture?

A

They are described by interfaces, constraints, and non-functional properties, which help in modeling configurations and defining system topology.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the purpose of a UML Component Diagram?

A

To model the static implementation view of a system’s components.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an API?

A

A set of definitions that allows one piece of software to interact with another, defining the data, services, and functionality exposed to third parties.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the primary difference between synchronous and asynchronous APIs?

A

Synchronous APIs are blocking, requiring the application to wait for the response, while asynchronous APIs are non-blocking and notify the application when processing is complete.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is OpenAPI (Swagger)?

A

An interface description language for REST APIs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What can you do with Swagger UI?

A

Visualize and interact with the API’s resources without having to write any code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the advantage of using the “Design First” approach in API creation?

A

The implementation follows the API specification, ensuring that the API design is well-defined and agreed upon before development begins.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly