Modern Applications Flashcards

1
Q

What is a monolithic application?

A

A monolithic application has tightly coupled services in which the user interface and data are combined into a single program from a single platform. It is self-contained and independent from other computer applications.

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

What is a microservice application?

A

A microservice application service has the following characteristics:

  • tightly scoped
  • strongly encapsulated
  • loosely coupled
  • independently deployable
  • scalable
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Integration falls into which two categories?

A
  1. Synchronous or API-based

2. Asynchronous or event-based

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

What is serverless computing?

A

You can build and run applications without considering servers. No need to provision, scale, and manage any servers. Everything required to run and scale your application with high availability is handled for you.

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

What are the benefits of serverless computing?

A
  • don’t pay for idle, request-based pricing
  • no infrastructure to provision, monitor, or manage
  • scaling and fault-tolerance are built in
  • easier to author, deploy, and secure
  • enables best practices (events, stateless functions)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the difference between availability and fault-tolerance?

A

High Availability:
AWS makes it easy to build highly redundant, multi data-center systems, reaching several nines of availability that also support dynamic horizontal availability.

Fault-tolerance:
Load balancing automatically routes traffic in the event of a crash. You cannot have fault-tolerance without high availability.

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

What is a Step Function?

A

A serverless orchestration service that lets you combine AWS Lambda functions and other AWS services to build apps.

*All work is done by tasks. An activity is a subset of tasks.

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

All work in a state machine is performed by tasks. True or false?

A

TRUE

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

The workflows of the AWS Step Functions can be created/defined in which two ways?

A
  1. Using a JSON-based language using Amazon States Language

2. Using the Workflow Studio

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

With serverless architecture, teams focus on the application, while the cloud service provider manages the infrastructure. True or false?

A

TRUE

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

Modern application development is an approach to designing, building, and managing applications in the cloud. True or false?

A

TRUE

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

In Step Functions, all work in your state machine is done by AWS Lambda functions. True or false?

A

FALSE

All work in your state machines is done by tasks, which can invoke Lambda functions or other services.

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

The state machines of Step Functions support branching, parallel runs, retry/error handling, and initiating tasks. True or false?

A

TRUE

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

Microservices are loosely coupled at independent functionality and are event-driven or API-driven.

A

TRUE

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

Step Function workflows manage parallelization and service integration, but you have to manage failures and retries.

A

FALSE

Workflows manage failures, retries, parallelization, service integrations, and observability.

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

What are Step Functions based on?

A

State machines and tasks.

17
Q

What is a state machine?

A

A state machine is a workflow.

18
Q

What is a task?

A

A task is a state in a workflow that represents a single unit of work that another AWS service performs.

19
Q

What is a state?

A

Each step in a workflow is a state.

20
Q

States can perform a variety of functions in your state machine. List some of these functions.

A
  • Task: performs a single unit of work
  • Choice: choose the appropriate branch of the flow
  • Fail or Succeed: stop the flow based on pass/fail
  • Pass: pass the input to the output as is, or combined with some fixed data
  • Wait: delay the flow for a specific amount of time
  • Parallel: begin parallel branching within the flow
  • Map: run the same steps for multiple entries of an array in the state input
21
Q

Step Functions has two workflow types. What are they?

A

Standard and Express workflows

22
Q

What’s the difference between Standard and Express workflows?

A

Standard workflows have exactly-once execution and can run for up to one year

Express workflows have at-least-once execution and can run up to 5 minutes.