lambda_flows_integration_flashcardsv2

(43 cards)

1
Q

Lambda Functions in Flows

A

Extend Amazon Connect flow functionality by accessing other AWS services or third-party APIs. Invoked using the Invoke AWS Lambda function block.

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

Invoke AWS Lambda Function Block

A

Flow block that passes input parameters to Lambda function. Lambda performs operations and returns data back to the flow.

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

Lambda Response Format

A

Lambda formats information into specific response format and sends back to flow. Data is used to improve experiences in Amazon Connect flows.

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

Lambda with DynamoDB Pattern

A

Lambda uses input parameters to query DynamoDB table. Formats results and returns to flow for improved customer experience.

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

Retrieving Customer Info Use Case

A

Lambda checks if caller has existing open case using phone number. Returns name and case details to route to specialist team immediately.

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

JSON Response Validation

A

Choose JSON option in response validation when expecting structured data from Lambda. Example: firstName

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

Check Contact Attribute Block

A

Flow block used to branch calls based on attributes returned from Lambda. Routes contacts differently based on Lambda response.

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

Self-Service Payments Use Case

A

Lambda integrates with external payment system to process transactions. Customers can make payments without relying on business hours.

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

Amazon Lex with Lambda

A

Lex bot captures payment details and passes to Lambda function. Lambda processes transaction and returns result as contact attribute.

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

Routing Enhancement Use Case

A

Lambda retrieves customer membership status and preferred language. Routes to appropriate queue with agents who speak customer’s language.

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

STRING_MAP Response Validation

A

Choose STRING_MAP option for flat object key-value pairs from Lambda. Example: membershipStatus and preferredLanguage attributes.

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

User-Defined Contact Attributes

A

Data returned from Lambda stored as user-defined contact attributes. Used in Play prompt blocks to read information back to customer.

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

Dynamic Prompts

A

Prompts that use contact attributes to personalize messages. Example: greeting customer by name and mentioning their case number.

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

Synchronous Lambda Invocation

A

Flow invokes Lambda function and waits for response before proceeding. Maximum timeout duration is 8 seconds.

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

Lambda Timeout Configuration

A

Configure timeout value less than 8 seconds in Invoke AWS Lambda function block settings. Function must return results fast to avoid negative contact experience.

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

Event Object

A

JSON object containing contact context that Amazon Connect sends to Lambda function. Lambda accesses and processes data received in this object.

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

Success vs Error Branch

A

Success branch runs if Lambda returns well-formatted response. Error branch runs if invocation error occurs or response format is wrong.

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

Details Property

A

Contains ContactData property and Parameters property. Part of the event object sent to Lambda function.

19
Q

ContactData Property

A

Includes current contact interaction details like communication channel

20
Q

Parameters Property

A

Contains function input parameters configured in the Invoke AWS Lambda function block. Passes additional information from flow to Lambda.

21
Q

Function Input Parameters

A

Additional information passed to Lambda using key-value pairs in block configuration. Example: operation key with checkBalance value.

22
Q

ContactId

A

Unique identifier for the contact. Included in ContactData as additional information.

23
Q

STRING_MAP Response Format

A

Lambda returns flat object of key-value pairs. Used for simple responses without nested objects.

24
Q

JSON Response Format

A

Accommodates complex responses that include nested JSON objects. More flexible than STRING_MAP for structured data.

25
Response Validation Configuration
Experience designer configures Invoke AWS Lambda block to specify expected response type. Developers and designers must collaborate to define format.
26
Lambda Testing in Console
Lambda console provides access to test and simulate Lambda functions for flows. Can test before deploying to production.
27
Common Lambda Use Case
Searching and retrieving contact information from third-party applications like CRM
28
Event Object Structure
Event contains Details property which has ContactData and Parameters. Parameters come from Function input parameters section of block configuration.
29
Environment Variables
Adjust Lambda function behavior without code changes. Store resource identifiers as environment variables for loose coupling and reusability.
30
Lambda Function Reusability
Configure queues or flow identifiers as environment variables. Update variables to use same Lambda function across different environments without changing code.
31
Accessing Environment Variables
Code accesses environment variables at function initialization. Read values like INSTANCE_ID and BUCKET_NAME then use as internal variables.
32
Lambda Alias
Pointer to a specific function version. Flows use alias ARN so flow doesn't need to change when deploying new Lambda version.
33
Lambda Alias Benefits
Reduces risk to customer experience and operational overhead. Decouples Lambda code from flow actions reducing testing and deployment time.
34
Default Lambda Invocation
Amazon Connect invokes most current version of Lambda by default. New functionality immediately available in flows and affects live traffic instantly.
35
Single Version Alias
Alias associated to single version diverts 100 percent of traffic to that version only. Ensures no traffic goes to latest version under development.
36
Weighted Alias Configuration
Gradual or immediate traffic redirection between versions. Example: redirect 30 percent of traffic to new production version for testing.
37
Alias ARN Configuration
Experience designer configures alias ARN in Invoke AWS Lambda function block. Use Set manually setting under Function ARN setting.
38
Lambda Alias Permission
Amazon Connect instance requires explicit permission to invoke Lambda alias. Grant access using AWS CLI command.
39
Same Region Lambda
Lambda function created in same AWS Region as Amazon Connect instance. Cloud admin adds function in AWS Management Console.
40
Different Region Lambda
Lambda function created in different AWS Region from Amazon Connect instance. Used for data residency requirements or multi-region resilience.
41
Cross-Region Permission Requirements
Associate Lambda with instance using AssociateLambdaFunction API. Attach resource-based IAM policy with connect.amazonaws.com as principal.
42
Resource-Based IAM Policy
IAM policy attached to Lambda function for cross-region access. Must specify connect.amazonaws.com as principal and Amazon Connect instance ARN.
43
Lambda Version Management
By using aliases organizations can develop and refine Lambda functions without impacting production workloads. Provides abstraction layer between Connect and specific version.