Building an API – Consuming DynamoDB Data

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/12

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

13 Terms

1
New cards

What is DynamoDB?

Amazon’s fully managed NoSQL database service.

2
New cards

What is the goal of this lesson?

To build a Lambda function that reads data from a DynamoDB table and exposes it through an API.

3
New cards

Where does DynamoDB exist relative to VPCs?

Outside of your VPC.

4
New cards

Why is this important for security?

DynamoDB does not use VPC networking, Lambda cannot access it through security groups or subnets. Instead, security must be enforced through IAM permissions that explicitly allow or deny read access.You need IAM permissions

5
New cards

Why do we need an IAM role for DynamoDB?

Lambda must have explicit permission to read DynamoDB items.

6
New cards

What AWS service type do we choose when creating the IAM role?

AWS service (because Lambda is calling it).

7
New cards

What use case do we select when creating the IAM role?

Lambda.

8
New cards

How do we add DynamoDB permissions to the role?

Add an inline policy.

9
New cards

What is the purpose of the inline policy?

To allow Lambda to read items from the Students DynamoDB table only.

10
New cards

What structure is the DynamoDB result originally in?

A JSON object.

11
New cards

What should be done after coding the Lambda?

Deploy the function.

12
New cards

How do we expose HelloWorld4 as an API?

Add an API Gateway trigger.

13
New cards

What HTTP method does HelloWorld4 use?

HTTP GET.