AWS Developer Associate - C02 (Set 2) Flashcards

1
Q

What can you use to speed up distribution of static and dynamic web content to users?

A

AWS CloudFront.
It is a web service that speeds up distribution of web content to users through a worldwide network of data centers called edge locations.

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

What does AWS CodePipeline use to automatically start the pipeline? (Assuming you used the AWS CodePipeline console to construct the pipeline)

A

AWS CloudWatch Events (AKA EventBridge) are used to automatically start the pipeline.

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

When using CodeDeploy, what is required to revert changes if anything goes wrong during deployment?

A

Nothing, CodeDeploy should be able to rollback on its own.

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

What can you do to set up notifications if CodeDeploy fails a deployment and rolls back?

A

Set up a Lambda function subscribed to CodeDeploy events using CloudWatch Events.

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

When you create a CloudTrail trail, by default, only what type of events are logged?

A

Only Management events are logged.

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

To track Lambda function invocations with AWS CloudTrail, what type of events will need to be loggeed?

A

Data Events will show Lambda invocations.

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

What are CloudTrail Insights?

A

They help developers identify and respond to unusual activity associated with API calls and API error rates by analyzing CloudTrail management events.

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

What are CloudTrail data events?

A

They provide visibility into the resource operations performed on or within a resource.

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

What are CloudTrail management events?

A

They provide visibility into management operations that are performed on resources in the AWS account.

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

Is CodeDeploy able to deploy out to EC2 instances despite them being within an Auto Scaling Group?

A

Yes, the ASG has no effect and CodeDeploy will still deploy changes automatically.

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

What AWS service can you use to send notification messages to an HTTP or HTTPS endpoint?

A

AWS SNS

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

Between SNS and SQS, which supports sending notifications to HTTP / HTTPS endpoints?

A

AWS SNS

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

What is a Lambda function’s Execution Role?

A

It refers to the AWS IAM Role that grants the function permission to access specific AWS services and resources.

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

What can you do to reduce AWS Lambda latency?

A

Configure provisioned concurrency

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

How does reserved concurrency affect a Lambda function’s execution?

A

It ensures the number of instances defined will be available concurrently and exclusively for a given function, but also limits functions from using concurrency outside of the reservation.

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

How can you use AWS KMS to detect which KMS key was used to encrypt each ciphertext?

A

You can’t; AWS KMS does not store information about which key was used for which ciphertext.

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

How can you tell which AWS KMS key was used to encrypt a given ciphertext?

A

By analyzing AWS CloudTrail logs

18
Q

What does AssumeRoleWithWebIdentity API return?

A

It returns a set of temporary security credentials for users who have been authenticated with a web identity provider.

19
Q

Why might you not be able to call APIs such as GetFederationTokens or GetSessionTokens after calling AssumeRoleWithWebIdentity?

A

Because this returns a temporary set of credentials and disallows calling those two APIs.

20
Q

What is Lambda@Edge?

A

It is a feature of CloudFront feature that can customize the content shown to different users using a CloudFront distribution.

21
Q

What is a good alternative when objects you intended to upload to DynamoDB are larger than 400KB and aren’t able to be compressed?

A

Writing attribute values of the objects to S3

22
Q

When creating a user pool and you want users to use SMS for MFA, is it necessary to set up any additional roles for this?

A

Yes, when MFA is required, phone numbers will be verified and you must provide a role to allow Amazon Cognito to send SMS messages.

23
Q

What two things does a developer need for programmatic access to AWS resources, or access from the AWS CLI?

A

An Access Key ID and a Secret Access Key.

24
Q

What does the X-Amzn-Trace-Id tracing header do?

A

It sends AWS X-Ray trace headers through all layers the request goes through.

25
Q

What does the SAM Resource AWS::Serverless::StateMachine create?

A

It creates an AWS Step Functions state machine

26
Q

What does the SAM Resource AWS::Serverless::Api create?

A

It creates a collection of Amazon API Gateway resources and methods that can be invoked through HTTPS endpoints. It is not explicitly needed as a resource of this type is implicitly created in AWS::Serverless::Function

27
Q

What does the SAM Resource AWS::Serverless::Application create?

A

It embeds a serverless application from the AWS SAR (Serverless Application Registry) or from an S3 bucket as a nested application.

28
Q

What does the SAM Resource AWS::Serverless::Connector create?

A

It configures permissions between two resources

29
Q

What does the SAM Resource AWS::Serverless::Function create?

A

It creates an AWS Lambda function, an AWS IAM execution Role, and event source mappings that trigger the function.

30
Q

What does the SAM Resource AWS::Serverless::HttpApi create?

A

It creates an Amazon API Gateway HTTP API, which enables you to create RESTful APIs with lower latency and lower costs than REST APIs.

31
Q

What does the SAM Resource AWS::Serverless::LayerVersion create?

A

It creates a Lambda LayerVersion that contains library or runtime code needed by a Lambda function. It is equivalent to AWS::Lambda::LayerVersion.

32
Q

What does the SAM Resource AWS::Serverless::SimpleTable create?

A

It creates a DynamoDB table with a single attribute primary key. If you need more advanced usage of DynamoDB, use AWS::DynamoDB::Table instead.

33
Q

To grant IAM permissions, users or groups can be assigned JSON documents called ____?

A

Policies

34
Q

What do policies do in IAM?

A

They define the permissions of the users

35
Q

What are the 3 properties an IAM Policy consists of?

A

Version, Id, Statement

36
Q

What are the 6 properties an IAM Policy Statement consists of?

A

Sid, Effect, Principal, Action, Resource, Condition

37
Q

What is a Sid in an IAM policy statement?

A

The identifier for the statement. This field is optional.

38
Q

What is the Effect in an IAM policy statement?

A

Whether the statement will allow or deny access

39
Q

What is the Principal in an IAM policy statement?

A

The account/user/role to which this policy will be applied to

40
Q

What is the Action in an IAM policy statement?

A

A list of actions this policy will allow or deny

41
Q

What is the Resource in an IAM policy statement?

A

A list of resources to which the actions will be applied to

42
Q

What is the Condition in an IAM policy statement?

A

Conditions for when this policy is in effect. This field is optional.