Integration, Messaging, & Access Flashcards

1
Q

What are the two main patterns for application communication?

A

Synchronous and Asynchronous/Event-based.

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

What AWS service is used for asynchronous queue-based communication?

A

Amazon SQS.

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

What AWS service is used for pub/sub messaging?

A

Amazon SNS.

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

What AWS service is used for real-time data streaming?

A

Amazon Kinesis.

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

What is the default message retention period in SQS?

A

4 days (can be increased up to 14 days).

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

What is the max message size in SQS?

A

256 KB (larger messages require SQS Extended Client).

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

What is a Dead Letter Queue (DLQ) in SQS?

A

A secondary queue for messages that can’t be processed after multiple attempts.

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

What is SQS Long Polling?

A

A method to wait for messages, reducing empty responses and API calls.

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

What is SQS FIFO queue used for?

A

For strict message ordering and exactly-once processing.

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

How is message deduplication handled in SQS FIFO?

A

Using content-based deduplication or explicit deduplication ID.

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

What is Amazon SNS used for?

A

To send messages to multiple subscribers (Pub/Sub model).

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

What is the fan-out pattern in SNS?

A

SNS topic sends the same message to multiple SQS queues.

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

What is Kinesis Data Streams used for?

A

To capture, process, and store real-time streaming data.

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

What are Kinesis capacity modes?

A

Provisioned and On-Demand.

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

What is the throughput per shard in Kinesis provisioned mode?

A

1 MB/s input, 2 MB/s output.

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

What are the consumer types in Kinesis?

A

Shared (Classic) Fan-out and Enhanced Fan-out.

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

What is Amazon Kinesis Data Firehose?

A

A fully managed service to load streaming data into AWS data stores.

18
Q

What is Kinesis Data Analytics used for?

A

To analyze streaming data using SQL or Apache Flink.

19
Q

How is data ordering managed in Kinesis?

A

Using partition keys to route data to the same shard.

20
Q

How does SQS FIFO handle message ordering?

A

Using message group IDs for ordered processing within groups.

21
Q

What is the key difference between SQS and SNS?

A

SQS is a pull-based queue, SNS is a push-based pub/sub system.

22
Q

What is the key use case of Kinesis over SQS?

A

Real-time big data analytics, streaming ETL, and reprocessing data.

23
Q

What is AWS Cognito used for?

A

To provide user identities and enable secure access to web and mobile applications.

24
Q

What is a Cognito User Pool?

A

A serverless user directory for managing sign-up, sign-in, and user profile management.

25
Q

What is a Cognito Identity Pool?

A

A service to grant users temporary AWS credentials to access AWS services.

26
Q

How do Cognito User Pools integrate with apps?

A

They integrate with API Gateway and Application Load Balancer for authentication.

27
Q

What kind of login does Cognito User Pool support?

A

Username/email and password, with optional MFA.

28
Q

What is the use of JWT in Cognito?

A

It is a JSON Web Token used to authenticate and transfer user claims.

29
Q

What is Cognito Hosted UI?

A

A customizable web UI for user authentication provided by Cognito.

30
Q

What is Adaptive Authentication in Cognito?

A

It evaluates risk scores and prompts MFA for suspicious logins.

31
Q

What are Cognito Lambda Triggers?

A

Custom code hooks triggered during the authentication flow.

32
Q

What is required for Cognito custom domains?

A

An ACM certificate in us-east-1 and configuration in App Integration.

33
Q

How does ALB use Cognito for authentication?

A

It offloads user authentication to Cognito using HTTPS listeners.

34
Q

What are the benefits of using Cognito with ALB?

A

Simplifies auth logic by letting ALB handle user authentication.

35
Q

What identity sources does Cognito Identity Pool support?

A

Public providers, Cognito User Pools, OIDC, SAML, developer identities.

36
Q

What is unauthenticated access in Identity Pools?

A

Allows guest users to access AWS services with limited permissions.

37
Q

How does Identity Pool grant AWS credentials?

A

Using STS and IAM roles based on user identity and policy rules.

38
Q

What are IAM roles in Cognito Identity Pools?

A

Roles assigned to authenticated and guest users to control access.

39
Q

How do CUP and CIP differ?

A

CUP is for authentication; CIP is for authorization.

40
Q

Can Cognito support federated identities?

A

Yes, via User Pools and Identity Pools using OIDC, SAML, and social logins.

41
Q

How can sign-in risk be mitigated in Cognito?

A

By using adaptive authentication and MFA.

42
Q

What is the trust relationship in IAM roles for Identity Pools?

A

A trust policy must allow Cognito Identity Pools to assume the role.