AWS DEV-A Practice Exam 2 (training mode) Flashcards

1
Q

What are the AWS Elastic Beanstalk Deployment policies?

A

Rolling, Rolling with additional batch, All-at-Once and Immutable.

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

AWS Elastic Beanstalk Deployment policy
Why is All at once the fastest deployment?

A

Deploys the new version to all instances simultaneously.

All your instances are out of service while the deployment takes place.

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

What are two major downsides to All at once deployment policy?

A

You will experience an outage while the deployment is taking place – not ideal for mission-critical systems.

If the update fails, you need to roll back the changes by re-deploying the original version to all your instances

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

AWS Elastic Beanstalk Deployment policy
Rolling come at no additional cost but has a long ___________ ______

A

No additional cost.
Long deployment time.

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

AWS Elastic Beanstalk Deployment policy
Rolling with additional batch: is like Rolling but

A

launches new instances in a batch ensuring that there is full availability

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

AWS Elastic Beanstalk Deployment policy

Rolling with an additional batch is good for ______________ environments but is a ____________ deployment model.

A

Good for production environments.

Longer deployment model

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

AWS Elastic Beanstalk Deployment policy
Immutable:
Launches new instances in a new ____ and deploys the version update to these instances before___________ ___________ to these instances once healthy.

A

Launches new instances in a new ASG and deploys the version update to these instances before swapping traffic to these instances once healthy.

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

DynamoDB:

Each API call to read data from your table is a

A

read request.

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

For items up to 4kb in size, 1 RCU can perform how many strong and eventually consistent reads.

A

one strongly consistent read request per second.
two eventually consistent read requests per second.

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

Occasionally ,you may receive the 400 ThrottlingException error for PutMetricData API calls in Amazon CloudWatch. What 3 things can you do to mitigate this?

Distribute your API calls ________ ____ _______
Combine as many ________ as possible into a ________ API call
Retry your call with exponential ________ and ________

A

Distribute your API calls evenly over time
Combine as many metrics as possible into a single API call
Retry your call with exponential backoff and jitter

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

Amazon API Gateway is an AWS service for ___________ , ___________, ___________, ___________, and ___________ REST and WebSocket APIs at any scale

A

Amazon API Gateway is an AWS service for creating, publishing, maintaining, monitoring, and securing REST and WebSocket APIs at any scale

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

A stage is a named reference to a _________ , which is a _________ of your API

A

A stage is a named reference to a deployment, which is a snapshot of your API

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

How would you query how much provisioned capacity is actually being used in a Amazon DynamoDB table?

Monitor the ___________________________________ and ____________________________________ over a specified _________ period

A

Monitor the ConsumedReadCapacityUnits and ConsumedWriteCapacityUnits over a specified time period

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

An API Gateway REST API is a collection of HTTP ______________ and _____________ that are integrated with backend HTTP ________, ________ ________, or other AWS services.

A

An API Gateway REST API is a collection of HTTP resources and methods that are integrated with backend HTTP endpoints, Lambda functions, or other AWS services.

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

Blue / Green deployment:

How does a Blue/Green Deployment achieve Zero downtime and release facility.

A

By Creating a new “stage” environment and deploying new updates there.

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

Amazon SNS allows applications to send time-critical messages to multiple ___________ through a _____ mechanism, eliminating the need to periodically _____ for updates.

A

Amazon SNS allows applications to send time-critical messages to multiple subscribers through a “push” mechanism, eliminating the need to periodically “poll” for updates.

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

Amazon ElastiCache is a popular choice for real-time use cases like (5)

A
  • Gaming
  • Caching
  • Queuing
  • Session Stores and
  • Real-Time Analytics
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

ElastiCache is a fully managed, low latency, in-memory data store that supports either ____________ or _______.

A

ElastiCache is a fully managed, low latency,** in-memory** data store that supports either Memcached or Redis.

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

Amazon DynamoDB Accelerator also known as DAX is a fully ________ __-________ ________ for DynamoDB

A

Amazon DynamoDB Accelerator also known as DAX is a fully managed in-memory cache for DynamoDB

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

Lambda triggers allow you to build applications that react to data modifications in DynamoDB ________ via DynamoDB ___________

A

Lambda triggers allow you to build applications that react to data modifications in DynamoDB tables via DynamoDB streams.

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

AWS SAM templates are an extension of AWS _______________________ templates, with some additional components that make them _______ to work with.

A

AWS SAM templates are an extension of AWS CloudFormation templates, with some additional components that make them easier to work with.

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

To create a DynamoDB table using an AWS SAM template the Developer can use the AWS::Serverless::_____________ resource type which creates a DynamoDB table with a _________ attribute primary key. It is useful when data only needs to be accessed via a primary key.

A

To create a DynamoDB table using an AWS SAM template the Developer can use the AWS::Serverless::SimpleTable resource type which creates a DynamoDB table with a single attribute primary key. It is useful when data only needs to be accessed via a primary key.

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

CloudWatch metric filters do not ____________ filter data. Filters only publish the metric data points for events that happen ______ the filter was created.

A

CloudWatch metric filters do not retroactively filter data. Filters only publish the metric data points for events that happen after the filter was created.

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

What are the steps to determine the number of RCUs required to handle 100 strongly consistent reads per/second with an average item size of 5KB, perform the following steps:

A
  1. Determine the average item size by rounding up the next multiple of 4KB (5KB rounds up to 8KB).
  2. Determine the RCU per item by dividing the item size by 4KB (8KB/4KB = 2)
  3. Multiply the value from step 2 with the number of reads required per second (2×100 = 200).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

To determine the number of RCUs required to handle 200 eventually consistent reads per/second with an average item size of 12KB, perform the following steps:

A
  1. Determine the average item size by rounding up the next multiple of 4KB (12KB rounds up to 12KB).
  2. Determine the RCU per item by dividing the item size by 8KB (12KB/8KB = 1.5).
  3. Multiply the value from step 2 with the number of reads required per second (1.5×200 = 300).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

You can create Cross- ________ and Cross- ________ dashboards, which summarize your CloudWatch data from multiple AWS ________ and ________ into one ____________

A

You can create Cross- Account and Cross- Region dashboards, which summarize your CloudWatch data from multiple AWS accounts and Regions into one dashboard.

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

AWS CodePipeline is a continuous delivery service you can use to ________, ________, and __________ the steps required to release your software

A

Model, visualize, and automate

28
Q

CloudFormation is not triggered by changes in a source ________ ____________. To deploy updates to CloudFormation you must create ________ ____

A

CloudFormation is not triggered by changes in a source code repository To deploy updates to CloudFormation you must create ** change sets**

29
Q

CodeBuild is used for ________ code, running unit ____ and creating the ____________ package. But it does not manage the ____________ of the code.

A

CodeBuild is used for compiling code, running unit tests and creating the deployment package. But it does not manage the deployment of the code.

30
Q

Server-side encryption is about ____________ data at ____

A

protecting, rest

31
Q

If you followed AWS best practices and are still having throttling issues with your API’s what actions can you take?

A

You can request a limit increase.

Note: Increasing the rate limit can have a high financial impact on your AWS bill.”

32
Q

When you deploy your API to a stage it is given a unique ____ that contains the ________ ________.

A

URL ; stage name.

33
Q

The ____ assigned to an API stage can be used to direct customers to your URL based on the ________ or the _______ you’d like them to use.

A

URL ; stage, version

34
Q

You can monitor Amazon DynamoDB using CloudWatch, which collects and ________ raw data from DynamoDB into readable, near real-time ______.

A

processes, metrics

35
Q

By default, the DynamoDB write operations (PutItem, UpdateItem, DeleteItem) are ____________________: Each operation ________ an existing item that has the specified ________ key.

A

By default, the DynamoDB write operations (PutItem, UpdateItem, DeleteItem) are unconditional: Each operation overwrites an existing item that has the specified primary key.

36
Q

What is the function of conditionalwrites in DynamoDB?

Conditional writes are helpful in cases where __________ users attempt to modify the _____ item

A

Conditional writes are helpful in cases where multiple users attempt to modify the same item

37
Q

DynamoDB Batch writes is way of making multiple ___ or _________ API operations in a ______ batch operation.

A

DynamoDB Batch writes is way of making multiple put or delete API operations in a single batch operation.

38
Q

With Conditional writes you could prevent an UpdateItem operation from ____________ an item if one of its attributes has a certain ______

A

With Conditional writes you could prevent an UpdateItem operation from modifying an item if one of its attributes has a certain value.

39
Q

Conditional writes are helpful in many situations. For example, you might want a PutItem operation to succeed only if there is not already an item with the same________ ____

A

Conditional writes are helpful in many situations. For example, you might want a PutItem operation to succeed only if there is not already an item with the same primary key

40
Q

Sticky sessions are a mechanism to _______ requests to the same ________ in a target group.

A

route, target

41
Q

Sticky sessions are useful for servers that maintain ________ ________ information in order to provide a ____________ experience to clients.

A

Sticky sessions are useful for servers that maintain session state information in order to provide a continuous experience to clients.

42
Q

To use sticky sessions, the clients must ________ cookies.

A

support

43
Q

A new application will be hosted on the domain name dctlabs.com using an Amazon API Gateway REST API front end. The Developer needs to configure the API with a path to dctlabs.com/products that will be accessed using the HTTP GET verb. How MUST the Developer configure the API?

A

Create a /products resource
Create a GET products method

44
Q

A microservices architecture is where you have many small ____________ components of an application that are loosely ________

A

A microservices architecture is where you have many small individual components of an application that are loosely coupled

45
Q

GetItem provides ____________ consistent read by default.
If your application requires a strongly consistent read, set ____________ to true

A

GetItem provides eventually consistent read by default.
If your application requires a strongly consistent read, set ConsistentRead to true

46
Q

DynamoDB Accelerator (DAX) is an in-memory cache that improves ____ performance by ________ data.

A

DynamoDB Accelerator (DAX) is an in-memory cache that improves read performance by cachenig data.

47
Q

A Lambda Alias is like a ________ to a specific function ________

A

A Lambda Alias is like a pointer to a specific function version

48
Q

If you work with multiple resources, you can manage them as a ________ on one dashboard rather than ________ from one AWS service to another for each task.

A

group ; move

49
Q

Client-side encryption provides _________ protection for your data from its ______ to ______ in DynamoDB.

A

Client-side encryption provides end-to-end protection for your data from its source to storage in DynamoDB.

50
Q

DynamoDB Streams captures a _______ _______ of item-level modifications in any DynamoDB table and stores this information in a log for up to ____ hours.

A

time-ordered sequence ; 24

51
Q

With adaptive _________________, you can configure your user pool to ____ suspicious sign-ins or add second factor authentication in response to an increased ____ level.

A

With adaptive authentication, you can configure your user pool to block suspicious sign-ins or add second factor authentication in response to an increased risk level.

52
Q

If Amazon Cognito suspects suspicious activity at sign-in you can take the following actions: (3)

A

-Allow – Users can sign in without an additional factor.
-Require MFA
-Block all sign-in attempts

53
Q

API Gateway: ________ templates are used for ________ data.

A

Mapping ; transforming

54
Q

The /tmp directory can be used with a _____ _________ for storing temporary files within the ________ context.

A

Lambda function ; execution

55
Q

Lambda Function: There is a limit of ____mb storage space in the /tmp directory

A

512 MB

56
Q

API Gateway: A ________ plan specifies who can access one or more deployed API stages and methods along with how ____ and how ____ they can access them.

A

usage ; much ; fast

57
Q

API Gateway: Usage plan uses API ____ to identify API ____ and meters access to the associated API ______ for each key.

A

keys ; clients; stages

58
Q

When IAM roles for Amazon ECS tasks is ________, applications sign their AWS API requests with AWS _______

A

enabled ; credentials

59
Q

A developer received the following error message during an AWS CloudFormation deployment:

**DELETE_FAILED (The following resource(s) failed to delete: (sg-11223344).)
**
Which action should the developer take to resolve this error?

A

You’d have to delete the stack in the console and then select to retain the resource(s) that failed to delete.

This can also be achieved from the AWS CLI:

60
Q

A Developer is deploying an application using Docker containers running on the Amazon Elastic Container Service (ECS). The Developer is testing application latency and wants to capture trace information between the microservices. How would he meet this requirement?

Create a Docker image that runs the _______ daemon, upload it to a Docker image ______________, and then _______ it to the Amazon ECS cluster.

A

Create a Docker image that runs the X-Ray daemon, upload it to a Docker image repository, and then deploy it to the Amazon ECS cluster.

61
Q

AWS X-Ray is a service that collects ____ about requests that your ____________ serves

A

AWS X-Ray is a service that collects data about requests that your application serves

62
Q

AWS X-Ray provides tools you can use to ____, ____, and gain insights into that data to identify issues and opportunities for ____________

A

AWS X-Ray provides tools you can use to view, filter, and gain insights into that data to identify issues and opportunities for optimization

63
Q

You can run the X-Ray daemon on the following operating systems on Amazon EC2: (3)

A

Amazon Linux

Ubuntu

Windows Server (2012 R2 and newer)

64
Q

The X-Ray daemon uses the AWS ____ to upload trace data to X-Ray, and it needs AWS ________ with permissions to do that.

A

SDK ; credentials

65
Q

Cross-origin resource sharing (CORS) defines a way for client web applications that are loaded in one domain to ______ with _______ in a different domain.

A

interact with resources