Practice Test Pearson Flashcards

1
Q

Can I have cross-region replicas with Amazon Aurora?

A

Yes, with Aurora MySQL you can set up cross-region Aurora Replicas using either logical or physical replication.

Logical replication can replicate to up to five secondary AWS regions. Physical replication, called Aurora Global Database, uses dedicated infrastructure that leaves your databases entirely available to server your application, and can replicate to one secondary region with typical latency of under a second. For low-latency reads and disaster recovery, Global Database is recommended.

Aurora PostgreSQL does not currently support cross-region replicas.

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

What are Aurora replicas?

A

Aurora replicas are independent endpoints in an Aurora DB cluster, best used for scaling read operations and increasing availability.

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

Why do Aurora replicas work well for read scaling?

A

Aurora Replicas work well for read scaling because they are fully dedicated to read operations on your cluster volume. Write operations are managed by the primary instance. Because the cluster volume is shared among all DB instances in your DB cluster, minimal additional work is required to replicate a copy of data for each Aurora Replica.

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

What are some caching strategies for ElastiCache?

A

Lazy loading, write-through. You can also add TTL to help avoid stale data.

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

What is lazy loading?

A

Lazy loading is a caching strategy that loads data into the cache only when necessary. When an application requests data, it first makes a request to the ElastiCache cache. If the data exists and is current, ElastiCache returns the data the application. If it does not exist or is expired, the application makes a request to the data store, which returns the requested data. Your application next writes the retrieved data to the cache. This way, it will be more quickly retrieved next time it’s being requested.

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

What are some advantages of lazy loading?

A

Advantages:

  • Only requested data is cached. Because most data is never requested, lazy loading avoids filling up the cache with data that isn’t requested.
  • Node failures aren’t fatal for your application. When a node fails and is replaced by a new, empty node, your application continues to function, though with increase latency.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are some disadvantages of lazy loading?

A

Disadvantages:

  • There is a cache miss penalty. Each cache miss results in three trips. 1) Initial request for data from the cache. 2) Query of the database for the data. 3) Writing the data to the cache.
  • Stale data. If data is written to the cache only when there is a cache miss, data in the cache can become stale. This result occurs because there are no updates to the cache when data is changed in the database. To address this issue, you can use write-through and Adding TTL strategies.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the write-through caching strategy?

A

The write-through strategy adds or updates data in the cache whenever data is written to the database.

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

What are the advantages of the write-through caching strategy?

A

Advantages:

  • Data in the cache is never stale. Because the data in the cache is updated every time it’s written to the database, the data in the cache is always current.
  • Write penalty vs. read penalty. Every write involves two trips, 1) A write to the cache. 2) A write to the database. This adds latency to the process, but end users are generally more accepting of updates taking longer than reads.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the disadvantages of the write-through caching strategy?

A

Disadvantages

  • Missing data. If you spin up a new node, whether due to a node failure or scaling out, there is missing data. This data continues to be missing until it’s added or updated on the database. You can minimize this by implementing lazy loading with write-through.
  • Cache churn. Most data is never read, which is a waste of resources. By adding a time to live (TTL) value, you can minimize wasted space.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What happens when configuration changes in an Elastic Beanstalk environment require terminates all instances in your environment and replacing them?

A

Configuration changes that modify the launch configuration or VPC settings require terminating all instances in your environment and replacing then. E.g., when you change the instance type or SSH key setting for your environment, the EC2 instances must be terminated and replaced. To prevent downtime during these processes, Elastic Beanstalk applies these configuration changes in batches, keeping a minimum number of instances running and serving traffic at all times.This process is known as a rolling update.

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

What can you do to minimize the amount of time that is used to upload an item greater than 100MB?

A

You can use Multipart Upload. Multipart upload allows you to upload a single object as a set of parts. Each part is a contiguous portion of the object’s data. You can upload these parts independently and in any order. If transmission of any part fails, you can retransmit that part without affecting other parts. After all parts of your object are uloaded, S3 assembles these parts and creates the object. In general, when your object size reaches 100MB, you should consider using multipart uploads instead of uploading the object in a single operation.

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

What are custom CloudWatch metrics?

A

There are two types of custom metrics: standard resolution (with data having a one-minute granularity) and high resolution (with data having a one-second granularity).

Metrics produced by AWS services are standard resolution by default.

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

What are CloudWatch statistic sets?

A

You can aggregate your data before you publish to CloudWatch. When you have multiple data points per minute, aggregating data minimizes the number of calls to put-metric-data. E.g., instead of calling put-metric-data multiple times for three data points that are within 3 seconds of each other, you can aggregate the data into a statistic set that you publish with one call, using the –statistic-values parameter.

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

What are the four deployment methods for Elastic Beanstalk?

A

All at once, rolling, rolling with an additional batch, immutable.

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

What’s the difference between an IAM role and an IAM user?

A

An IAM user has permanent long-term credentials and is used to directly interact with AWS services. An IAM role does not have any credentials and cannot make direct requests to AWS services. IAM roles are meant to be assumed by authorized entities, such as IAM users, applications, or an AWS service such as EC2.

17
Q

What services in AWS are serverless?

A

Compute: Lambda, Lambda@Edge, Fargate
Storage: S3, Elastic File System (EFS)
Data stores: DynamoDB, Aurora Serverless, RDS Proxy
API Proxy: API Gateway
Application integration: SNS, SQS, AppSync, EventBridge
Orchestration: Step Functions
Analytics: Kinesis, Athena

18
Q

How do you reference your Lambda function?

A

You reference your Lambda function using its ARN. There are two ARNs associated with the initial version:

  • Qualified ARN. The function ARN with the version suffix.
  • Unqualified ARN. The function ARN without the version suffix.
19
Q

What is a Lambda Function Alias?

A

You can create one or more aliases for your AWS Lambda function. A Lambda alias is like a pointer to a specific Lambda function version. Users can access the function version using the alias ARN.

20
Q

What does STS stand for?

A

Security Token Service.

21
Q

What does STS:AssumeRole return?

A

STS:AssumeRole returns a set of temporary security credentials that you can use to access AWS resources you might not normally have access to. These temporary credentials consist of an access key ID, a secret access key and a security token. Typically, you use AssumeRole within your account or for cross-account access.

Note that you cannot use AWS account root user credentials to call AssumeRole. You must use credentials for an IAM user or an IAM role to call AssumeRole.

22
Q

What is Systems Manager Parameter Store?

A

Systems Manager Parameter Store provides secure, hierarchical storage for configuration data management and secrets management. You can store data such as passwords, database strings, and license codes as parameter values. You can store these as plaintext (unencrypted) or ciphertext (encrypted)

23
Q

How to deploy an API Gateway?

A

After creating your API, you must deploy it to make it callable by your users. To deploy an API, you create an API deployment and associate it with a stage. Each stage is a snapshot of the API and is made available for client apps to call. As your API evolves, you can continue to deploy it to different stages as different versions of the API. You can also deploy your API updates as a canary release deployment, enabling your API clients to access, on the same stage, the production version through the production release, and the updated version through the canary release.

24
Q

What do you use stage variables for in API Gateway?

A

Stage variables are name-value pairs that you can define as configuration attributes associated with a deployment stage of a REST API. They act like environment variables and can be used in your API setup and mapping templates.

With deployment stages, you can manage multiple release stages for each API, such as alpha, beta, and production. Using stage variables, you can configure an API deployment stage to interact with different backend endpoints.

25
Q

RDS for Microsoft SQL Server and Transparent Data Encryption.

A

Amazon RDS for Microsoft SQL Server now supports the use of Transparent Data Encryption (TDE). Once enabled, the database instance encrypts data before it is stored in the database and decrypts it after it is retrieved.

26
Q

How to migrate to Amazon RDS for SQL Server using transactional replication?

A

You can migrate your databases into Amazon RDS for Microsoft SQL Server in multiple ways. Typically, you perform a simple backup and restore of the databases. If you want a higher availability or lower downtime option, you might use the AWS Database Migration Service (DMS). A third approach is to use transactional replication.