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
What is a Cognito Identity Pool?
A service to grant users temporary AWS credentials to access AWS services.
26
How do Cognito User Pools integrate with apps?
They integrate with API Gateway and Application Load Balancer for authentication.
27
What kind of login does Cognito User Pool support?
Username/email and password, with optional MFA.
28
What is the use of JWT in Cognito?
It is a JSON Web Token used to authenticate and transfer user claims.
29
What is Cognito Hosted UI?
A customizable web UI for user authentication provided by Cognito.
30
What is Adaptive Authentication in Cognito?
It evaluates risk scores and prompts MFA for suspicious logins.
31
What are Cognito Lambda Triggers?
Custom code hooks triggered during the authentication flow.
32
What is required for Cognito custom domains?
An ACM certificate in us-east-1 and configuration in App Integration.
33
How does ALB use Cognito for authentication?
It offloads user authentication to Cognito using HTTPS listeners.
34
What are the benefits of using Cognito with ALB?
Simplifies auth logic by letting ALB handle user authentication.
35
What identity sources does Cognito Identity Pool support?
Public providers, Cognito User Pools, OIDC, SAML, developer identities.
36
What is unauthenticated access in Identity Pools?
Allows guest users to access AWS services with limited permissions.
37
How does Identity Pool grant AWS credentials?
Using STS and IAM roles based on user identity and policy rules.
38
What are IAM roles in Cognito Identity Pools?
Roles assigned to authenticated and guest users to control access.
39
How do CUP and CIP differ?
CUP is for authentication; CIP is for authorization.
40
Can Cognito support federated identities?
Yes, via User Pools and Identity Pools using OIDC, SAML, and social logins.
41
How can sign-in risk be mitigated in Cognito?
By using adaptive authentication and MFA.
42
What is the trust relationship in IAM roles for Identity Pools?
A trust policy must allow Cognito Identity Pools to assume the role.