lambda_flows_intermediate_flashcardsv3

(64 cards)

1
Q

Synchronous Lambda Invocation

A

Flow invokes Lambda function and waits until function completes processing before moving to next step. Flow uses result to determine next action.

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

Lambda Timing Constraint

A

Amazon Connect flow block waits maximum of 8 seconds for Lambda to return result. Timeout value is configurable but cannot exceed 8 seconds.

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

Flow Timeout vs Lambda Timeout

A

Amazon Connect flow timeout and Lambda function timeout need to match. If flow times out before Lambda completes

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

Asynchronous Invocation Need

A

If function requires more than 8 seconds to complete

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

CloudWatch REPORT Log

A

Contains unique request identifier

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

Lambda Duration Testing

A

Test function in Lambda console or check CloudWatch log group for duration. REPORT log shows exact processing time in milliseconds.

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

Query Data Sources Use Case

A

Query internal and external data sources to retrieve system or contact information. Use to personalize interaction

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

Self-Service Implementation Use Case

A

Interact with other AWS services and third-party applications to implement self-service options for customers.

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

Update Data Sources Use Case

A

Update internal and external data sources using information collected during contact interaction with the flow.

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

DynamoDB Lookup Pattern

A

Lambda function performs DynamoDB lookup to retrieve configuration settings. Returns data like language and line of business name for branded greeting.

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

Synchronous Response Speed

A

When Lambda runs successfully it returns response within milliseconds. Flow waits for response before continuing and contact experience is not affected.

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

Error Path Timeout

A

If Lambda does not return response within 8 seconds

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

Fallback Strategy

A

Experience designer implements fallback that selects default language and offers generic greeting if Lambda times out or errors.

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

Retry Logic

A

Implement retry logic in code to handle intermittent errors. Helps ensure function completes successfully despite temporary issues.

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

Error Information Return

A

Return information about any error so flow can use this to fall back on default behavior. Enables graceful degradation.

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

Processing Time Testing

A

Time test Lambda function processing time under different conditions. Ensures function completes within allotted timeout.

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

Asynchronous Lambda Pattern

A

Flow invokes first Lambda synchronously which immediately invokes second Lambda asynchronously and returns. Second Lambda handles long running process while flow continues.

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

Process Tracker Record

A

First Lambda creates tracker record in DynamoDB table to monitor asynchronous process status. Later Lambda function checks this tracker for results.

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

Multi-Step Process Orchestration

A

Multi-Step Process Orchestration uses Lambda with custom state machines or Step Functions workflows to coordinate multiple AWS services in sequence. Unlike simple Lambda functions, this approach manages complex workflows with conditional logic, parallel processing, and error handling. It updates process status quickly throughout execution, allowing you to track progress and handle failures gracefully across multiple service calls.

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

Get Results Lambda

A

Third Lambda function verifies results of asynchronous process by checking tracker status. Returns status back to flow for decision making.

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

20 Second Sequence Limit

A

Amazon Connect limits duration of sequence of Lambda functions to 20 seconds. Break up sequences to invoke multiple functions lasting longer than threshold.

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

Voice Contact Silence

A

Contact experiences silence when flow runs Lambda function. If total runtime exceeds timeout contact receives error message.

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

Money Transfer Use Case

A

Lambda starts transfer request with third-party application and immediately returns. Process runs to completion with continuous status updates checked by different Lambda.

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

Loop Logic Pattern

A

Flow implements loop logic so long process can complete without affecting contact experience. Checks status periodically while keeping customer engaged.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Transaction Verification Use Case
High-value transactions use Step Functions to perform security checks asynchronously, allowing customers to receive status confirmation via text or callback instead of waiting on line. This pattern is perfect for processes that take several minutes - like fraud verification, credit checks, or large payment authorizations - where keeping customers on hold would be a poor experience. Emphasize that asynchronous processing improves customer experience by eliminating hold times, Step Functions handles all the orchestration and retry logic automatically, and status updates via SMS/callback keep customers informed without them having to check manually.​​​​​​​​​​​​​​​​
26
Step Functions State Machine
Orchestrates workflow by invoking multiple Lambda functions in sequence. Evaluates conditions and routes to different functions based on results.
27
Compliance Check Pattern
State machine first invokes compliance check Lambda. If approved invokes tax verification Lambda. Routes to approved or rejected transaction Lambda based on results.
28
Follow-Up Confirmation Methods
For completed transactions send SMS message or create task for agent callback. Based on customer's preferred method of contact.
29
Asynchronous Use Cases
Updating contact information to external data sources
30
Status Update Pattern
Asynchronous Lambda updates tracker status every time process status changes. Allows flow to check progress without blocking contact.
31
Avoiding Abandoned Transactions
Use asynchronous pattern with SMS or callback for long processes. Prevents customers from abandoning while waiting on line for 18-22 minute processes.
32
Flow Block Error Handling
Experience designers implement default behavior when Lambda fails. Example: set default language if Lambda can't retrieve preference.
33
Success Branch
Indicates Lambda invocation was successful. Invocation event with request body and metadata was emitted and Lambda function runs.
34
Error Branch Scenarios
Lambda didn't return result within timeout
35
Lambda Retry Behavior
Lambda Retry Behavior refers to what happens when a function returns an error after running. By default, Lambda automatically retries failed asynchronous invocations (from services like EventBridge, SNS, or SQS) twice with delays between attempts. For synchronous invocations (like from API Gateway or Connect), there’s no automatic retry - the error is immediately returned to the caller. Understanding this behavior is crucial for building resilient systems.
36
Retry Mechanism Pattern
When Invoke block takes error branch
37
Error Context in Response
Include context information when formatting Lambda response. Pass back error information so flows can implement actions based on response.
38
Flow Actions from Error Info
Retry Lambda invocation
39
Operation Property
Determines which operation the Lambda function performed. Example values: verifyLimit and updateBalance.
40
Result Property
Determines if the operation was successful. Indicates success or error status.
41
Error Property
Short description of the error. Values can be timeout
42
Resilient Flow Design
Handle errors in Lambda code and send error context back to flow. Creates seamless user experience despite function failures.
43
Response Size Limit
Lambda function response that is too large triggers error branch. Keep responses within size limits.
44
Invalid Response
Lambda function returns response that doesn't match expected format. Triggers error branch in flow block.
45
Graceful Error Handling
Implement logic to handle failed transactions without impacting contact experience. Sometimes retry is appropriate
46
Error Information Benefits
Experience designers create dynamic flow behaviors based on error types and reasons for failure. Enables appropriate response to different error conditions.
47
CloudWatch for Amazon Connect
Monitors AWS resources and applications in real time. Collects
48
Flow Logs Storage
Flow logs stored in CloudWatch log group in same AWS Region as Amazon Connect instance. Log group automatically created when flow logs enabled.
49
Flow Logs Requirements
Enable Flow logs setting in instance configuration and include Set logging behavior block with logging enabled in flow. Both conditions must be met.
50
Flow Log Group Path
Logs available at /aws/connect/ in CloudWatch Logs section under Log groups.
51
Successful Lambda Log Event
Shows ContactId
52
Failed Lambda Log Event
Starts with Results property indicating error. Contains ContactId
53
Filter Patterns
Extract only log events of interest. Example: { $.ContactFlowModuleType = "InvokeExternalResource" } lists all Invoke Lambda block events.
54
ContactFlowErrors Metric
Number of times the error branch for a flow was run. Helps identify errors raised by Amazon Connect flows including Lambda invocation errors.
55
ContactFlowFatalErrors Metric
Number of times a flow failed to run because of a system error. Indicates critical flow failures.
56
CloudWatch Alarms
Setup alarms for flow error metrics to get notified when errors exceed thresholds. Part of operational excellence for contact center.
57
CloudWatch Dashboards
Add flow error metrics to operational dashboard. Provides visual overview of all errors in flows.
58
Logs Insights
CloudWatch functionality to query log streams for specific events. Monitor only Lambda invocation errors instead of all flow errors.
59
Invocation Errors Query
Filters all Results log events that indicate Lambda function invocation in flows. Shows all Lambda invocations regardless of success.
60
Failed Lambda Query
Selects all log events with properly formatted result where result property value is failed. Identifies Lambda functions that returned failure status.
61
Endpoint Timeout Query
Lists log events where result is failed and error property is endpointTimeout. Identifies specific failure type from external provider timeouts.
62
Proactive Monitoring Approach
Monitor overall flow errors
63
Chart and Alert Configuration
Add query data to operational dashboard as Chart. Create alerts based on identified thresholds for proactive monitoring.
64
Error Response Benefits
Format Lambda error responses with operation