Chapter 1 Introduction to AWS Cloud Api Flashcards

1
Q

What is AWS SAM Local?

A

Tool which allows you to test serverless functions locally

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

What is SAM

A

‘Serverless Application Model’: an open source framework for building serverless applications. You build templates for Lambda and deploy them via CloudFormation

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

How does AWS use access keys when forming an HTTP header?

A

It will use access key credentials to create time based signature string. This is called the AWS Signature Version 4 signing process.

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

Default object replication consists of…

A

replicating objects across at least 3 AZs within a region

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

Considerations when choosing regions not based on service availability or latency

A

“De Bo Punches”

  1. Data residency (compliance/regulation)
  2. Business Continuity (select 2 regions in close proximity for disaster recover)
  3. Price (price implications)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to define an IAM role? What are its constituent parts?

A

Via a ‘trust policy’. This consists of

  1. Effect (i.e. ‘allow’)
  2. Principal (i.e. the specific aws service(s) which assum role)
  3. Action (action performed against a aspecifc aws resource)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Describe anatomy of a STS token

A

It consists of a self contained access key id, secret access key, session token, and expiration date

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

Can an IAM user be a a principal within an trust policy?

A

Yes

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

What are a couple of scenarios in which use of IAM Users (not roles) would be acceptable?

A

For code running on local development laptop or on prem server

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

ARN scheme

A
Partition (aws.)
Service
Region
AccountID
Resource
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

IAM policies behavior when both deny and allow exist for same API action

A

default to deny

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

do IAM policies expire?

A

no

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

When IAM user makes API call, his long term credentials are valid in which context? AZ, Region, all regions?

A

across all regions

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

Through which means does an IAM role have the authorization to perform an action?

A

STS token

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

The principals who have access to assume an IAM role are defined in which document?

A

IAM Trust Policy

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

_____ define what API actions can be performed with the credentials from the role

A

Access Policies

17
Q

T/F: Users’ long term credentials are valid across regions

A

true