acg_questions Flashcards

1
Q

What is a Dimension in CloudWatch?

A

A Dimension in CloudWatch is a filter used to specify a particular aspect of a metric. For example, you can use the InstanceId dimension to search for metrics related to a specific EC2 instance.

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

What is a Namespace in CloudWatch?

A

A Namespace in CloudWatch is a container for CloudWatch metrics. For example, EC2 uses the AWS/EC2 namespace. A namespace cannot be used for filtering.

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

What is Real-Time Streaming Data Processing?

A

Real-Time Streaming Data Processing typically involves processing large volumes of data in real-time or near-real-time, often using services like Amazon Kinesis.

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

What is the purpose of stack termination setting ‘Enable’ in CloudFormation?

A

Enabling stack termination prevents the accidental deletion of an entire CloudFormation stack.

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

What does ‘DeletionPolicy’ set to ‘Retain’ in a CloudFormation template do?

A

Setting ‘DeletionPolicy’ to ‘Retain’ in a CloudFormation template preserves resources if the stack is deleted, ensuring that specified resources are not deleted when the stack is deleted.

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

Where should passwords be passed in CloudFormation templates?

A

Passwords should be passed in the Parameters section of CloudFormation templates to ensure security and flexibility in managing sensitive information.

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

What does the DynamoDB GetItem operation do?

A

The GetItem operation in DynamoDB returns a set of attributes for the item with the given primary key. If there is no matching item, GetItem does not return any data and there will be no Item element in the response.

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

How can you limit the attributes returned in a DynamoDB GetItem operation?

A

You can use a ProjectionExpression to limit the attributes returned in a DynamoDB GetItem operation, but you cannot use a FilterExpression.

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

What are the requirements for performing DynamoDB Queries?

A

For DynamoDB Queries, you must provide the name of the partition key attribute and a single value for that attribute. Optionally, you can provide a sort key attribute and use a comparison operator to refine the search results.

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

What is the purpose of a filter expression in DynamoDB Queries?

A

A filter expression in DynamoDB Queries is applied after a Query finishes, but before the results are returned. It determines which items within the results should be returned to you, with all other results discarded.

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

What is the purpose of a scan operation in DynamoDB?

A

A Scan operation in Amazon DynamoDB reads every item in a table or a secondary index. By default, a Scan operation returns all of the data attributes for every item in the table or index.

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

What are Projection Expressions in DynamoDB?

A

Projection Expressions are used to specify the attributes that you want to retrieve from a DynamoDB table. They allow you to get only some, rather than all, of the attributes.

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

What is the difference between PutItem and UpdateItem in DynamoDB?

A

PutItem creates a new item or replaces an old item with a new one, while UpdateItem edits an existing item’s attributes or adds a new item to the table if it does not already exist.

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

What is the Lambda Basic Execution Role?

A

The Lambda Basic Execution Role is a role automatically created by Lambda, with permissions to upload logs to Amazon CloudWatch Logs. It can be changed to another role or permissions can be added to it.

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

What is the purpose of CodeDeploy’s appspec file?

A

CodeDeploy uses the appspec file to specify instructions for deploying applications to instances. It defines the deployment lifecycle, including pre-deployment and post-deployment actions.

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

What is the purpose of CodeBuild’s buildspec.yaml file?

A

The buildspec.yaml file in CodeBuild contains the build commands and related settings for building the project. Each project can have one buildspec.yaml file located in the root of the source directory by default.

17
Q

What are SQS Dead-letter Queues used for?

A

SQS Dead-letter Queues are used for handling messages that cannot be processed successfully by other queues (source queues). They are useful for debugging applications or messaging systems and can help isolate unconsumed messages to determine why their processing failed.

18
Q

What is Elastic Load Balancing?

A

Elastic Load Balancing automatically distributes incoming traffic across multiple targets, such as EC2 instances, containers, and IP addresses, in one or more Availability Zones. It monitors the health of registered targets and routes traffic only to healthy targets, scaling load balancer capacity automatically in response to changes in incoming traffic.

19
Q

What are the different types of AWS load balancers and their use cases?

A

The different types of AWS load balancers are: Classic Load Balancer (CLB) for legacy applications or basic web servers, Application Load Balancer (ALB) for microservices architecture or web applications, Network Load Balancer (NLB) for high-performance applications or services with TCP/UDP traffic, and Gateway Load Balancer (GWLB) for third-party virtual appliance integration or additional security measures.

20
Q

What is another name for sticky sessions and which load balancer supports them?

A

Sticky sessions, also known as session affinity, are supported by the Application Load Balancer (ALB) and Classic Load Balancer (CLB)