AWS DEV-A Practice Exam 2 (training mode) Flashcards
What are the AWS Elastic Beanstalk Deployment policies?
Rolling, Rolling with additional batch, All-at-Once and Immutable.
AWS Elastic Beanstalk Deployment policy
Why is All at once the fastest deployment?
Deploys the new version to all instances simultaneously.
All your instances are out of service while the deployment takes place.
What are two major downsides to All at once deployment policy?
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
AWS Elastic Beanstalk Deployment policy
Rolling come at no additional cost but has a long ___________ ______
No additional cost.
Long deployment time.
AWS Elastic Beanstalk Deployment policy
Rolling with additional batch: is like Rolling but
launches new instances in a batch ensuring that there is full availability
AWS Elastic Beanstalk Deployment policy
Rolling with an additional batch is good for ______________ environments but is a ____________ deployment model.
Good for production environments.
Longer deployment model
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.
Launches new instances in a new ASG and deploys the version update to these instances before swapping traffic to these instances once healthy.
DynamoDB:
Each API call to read data from your table is a
read request.
For items up to 4kb in size, 1 RCU can perform how many strong and eventually consistent reads.
one strongly consistent read request per second.
two eventually consistent read requests per second.
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 ________
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
Amazon API Gateway is an AWS service for ___________ , ___________, ___________, ___________, and ___________ REST and WebSocket APIs at any scale
Amazon API Gateway is an AWS service for creating, publishing, maintaining, monitoring, and securing REST and WebSocket APIs at any scale
A stage is a named reference to a _________ , which is a _________ of your API
A stage is a named reference to a deployment, which is a snapshot of your API
How would you query how much provisioned capacity is actually being used in a Amazon DynamoDB table?
Monitor the ___________________________________ and ____________________________________ over a specified _________ period
Monitor the ConsumedReadCapacityUnits and ConsumedWriteCapacityUnits over a specified time period
An API Gateway REST API is a collection of HTTP ______________ and _____________ that are integrated with backend HTTP ________, ________ ________, or other AWS services.
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.
Blue / Green deployment:
How does a Blue/Green Deployment achieve Zero downtime and release facility.
By Creating a new “stage” environment and deploying new updates there.
Amazon SNS allows applications to send time-critical messages to multiple ___________ through a _____ mechanism, eliminating the need to periodically _____ for updates.
Amazon SNS allows applications to send time-critical messages to multiple subscribers through a “push” mechanism, eliminating the need to periodically “poll” for updates.
Amazon ElastiCache is a popular choice for real-time use cases like (5)
- Gaming
- Caching
- Queuing
- Session Stores and
- Real-Time Analytics
ElastiCache is a fully managed, low latency, in-memory data store that supports either ____________ or _______.
ElastiCache is a fully managed, low latency,** in-memory** data store that supports either Memcached or Redis.
Amazon DynamoDB Accelerator also known as DAX is a fully ________ __-________ ________ for DynamoDB
Amazon DynamoDB Accelerator also known as DAX is a fully managed in-memory cache for DynamoDB
Lambda triggers allow you to build applications that react to data modifications in DynamoDB ________ via DynamoDB ___________
Lambda triggers allow you to build applications that react to data modifications in DynamoDB tables via DynamoDB streams.
AWS SAM templates are an extension of AWS _______________________ templates, with some additional components that make them _______ to work with.
AWS SAM templates are an extension of AWS CloudFormation templates, with some additional components that make them easier to work with.
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.
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.
CloudWatch metric filters do not ____________ filter data. Filters only publish the metric data points for events that happen ______ the filter was created.
CloudWatch metric filters do not retroactively filter data. Filters only publish the metric data points for events that happen after the filter was created.
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:
- Determine the average item size by rounding up the next multiple of 4KB (5KB rounds up to 8KB).
- Determine the RCU per item by dividing the item size by 4KB (8KB/4KB = 2)
- Multiply the value from step 2 with the number of reads required per second (2×100 = 200).
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:
- Determine the average item size by rounding up the next multiple of 4KB (12KB rounds up to 12KB).
- Determine the RCU per item by dividing the item size by 8KB (12KB/8KB = 1.5).
- Multiply the value from step 2 with the number of reads required per second (1.5×200 = 300).
You can create Cross- ________ and Cross- ________ dashboards, which summarize your CloudWatch data from multiple AWS ________ and ________ into one ____________
You can create Cross- Account and Cross- Region dashboards, which summarize your CloudWatch data from multiple AWS accounts and Regions into one dashboard.
AWS CodePipeline is a continuous delivery service you can use to ________, ________, and __________ the steps required to release your software
Model, visualize, and automate
CloudFormation is not triggered by changes in a source ________ ____________. To deploy updates to CloudFormation you must create ________ ____
CloudFormation is not triggered by changes in a source code repository To deploy updates to CloudFormation you must create ** change sets**
CodeBuild is used for ________ code, running unit ____ and creating the ____________ package. But it does not manage the ____________ of the code.
CodeBuild is used for compiling code, running unit tests and creating the deployment package. But it does not manage the deployment of the code.
Server-side encryption is about ____________ data at ____
protecting, rest
If you followed AWS best practices and are still having throttling issues with your API’s what actions can you take?
You can request a limit increase.
Note: Increasing the rate limit can have a high financial impact on your AWS bill.”
When you deploy your API to a stage it is given a unique ____ that contains the ________ ________.
URL ; stage name.
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.
URL ; stage, version
You can monitor Amazon DynamoDB using CloudWatch, which collects and ________ raw data from DynamoDB into readable, near real-time ______.
processes, metrics
By default, the DynamoDB write operations (PutItem, UpdateItem, DeleteItem) are ____________________: Each operation ________ an existing item that has the specified ________ key.
By default, the DynamoDB write operations (PutItem, UpdateItem, DeleteItem) are unconditional: Each operation overwrites an existing item that has the specified primary key.
What is the function of conditionalwrites in DynamoDB?
Conditional writes are helpful in cases where __________ users attempt to modify the _____ item
Conditional writes are helpful in cases where multiple users attempt to modify the same item
DynamoDB Batch writes is way of making multiple ___ or _________ API operations in a ______ batch operation.
DynamoDB Batch writes is way of making multiple put or delete API operations in a single batch operation.
With Conditional writes you could prevent an UpdateItem operation from ____________ an item if one of its attributes has a certain ______
With Conditional writes you could prevent an UpdateItem operation from modifying an item if one of its attributes has a certain value.
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________ ____
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
Sticky sessions are a mechanism to _______ requests to the same ________ in a target group.
route, target
Sticky sessions are useful for servers that maintain ________ ________ information in order to provide a ____________ experience to clients.
Sticky sessions are useful for servers that maintain session state information in order to provide a continuous experience to clients.
To use sticky sessions, the clients must ________ cookies.
support
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?
Create a /products resource
Create a GET products method
A microservices architecture is where you have many small ____________ components of an application that are loosely ________
A microservices architecture is where you have many small individual components of an application that are loosely coupled
GetItem provides ____________ consistent read by default.
If your application requires a strongly consistent read, set ____________ to true
GetItem provides eventually consistent read by default.
If your application requires a strongly consistent read, set ConsistentRead to true
DynamoDB Accelerator (DAX) is an in-memory cache that improves ____ performance by ________ data.
DynamoDB Accelerator (DAX) is an in-memory cache that improves read performance by cachenig data.
A Lambda Alias is like a ________ to a specific function ________
A Lambda Alias is like a pointer to a specific function version
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.
group ; move
Client-side encryption provides _________ protection for your data from its ______ to ______ in DynamoDB.
Client-side encryption provides end-to-end protection for your data from its source to storage in DynamoDB.
DynamoDB Streams captures a _______ _______ of item-level modifications in any DynamoDB table and stores this information in a log for up to ____ hours.
time-ordered sequence ; 24
With adaptive _________________, you can configure your user pool to ____ suspicious sign-ins or add second factor authentication in response to an increased ____ level.
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.
If Amazon Cognito suspects suspicious activity at sign-in you can take the following actions: (3)
-Allow – Users can sign in without an additional factor.
-Require MFA
-Block all sign-in attempts
API Gateway: ________ templates are used for ________ data.
Mapping ; transforming
The /tmp directory can be used with a _____ _________ for storing temporary files within the ________ context.
Lambda function ; execution
Lambda Function: There is a limit of ____mb storage space in the /tmp directory
512 MB
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.
usage ; much ; fast
API Gateway: Usage plan uses API ____ to identify API ____ and meters access to the associated API ______ for each key.
keys ; clients; stages
When IAM roles for Amazon ECS tasks is ________, applications sign their AWS API requests with AWS _______
enabled ; credentials
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?
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:
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.
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.
AWS X-Ray is a service that collects ____ about requests that your ____________ serves
AWS X-Ray is a service that collects data about requests that your application serves
AWS X-Ray provides tools you can use to ____, ____, and gain insights into that data to identify issues and opportunities for ____________
AWS X-Ray provides tools you can use to view, filter, and gain insights into that data to identify issues and opportunities for optimization
You can run the X-Ray daemon on the following operating systems on Amazon EC2: (3)
Amazon Linux
Ubuntu
Windows Server (2012 R2 and newer)
The X-Ray daemon uses the AWS ____ to upload trace data to X-Ray, and it needs AWS ________ with permissions to do that.
SDK ; credentials
Cross-origin resource sharing (CORS) defines a way for client web applications that are loaded in one domain to ______ with _______ in a different domain.
interact with resources