AWS Training Flashcards

1
Q

You would like to expose a fixed static IPto your end-users for compliance purposes, so they can write firewall rules that will be stable and approved by regulators.Which Load Balancer should you use?

A

Network Load Balancers (NLB) expose a public static IP, whereas an Application or Classic Load Balancer exposes a static DNS (URL)

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

An application is deployed with an Application Load Balancer and an Auto Scaling Group. Currently, the scaling of the Auto Scaling Group is done manually and you would like to define a scaling policy that will ensure the average number of connections to your EC2 instances is averaging at around 1000. Which scaling policy should you use?

A

Target Tracking

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

Your application is using an Application Load Balancer. It turns out your application only sees traffic coming from private IPwhich are in fact your load balancer’s. What should you do to find the true IPof the clients connected to your website?

A

look into the x-forwared-for header in the backend

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

You quickly created an ELB and it turns out your users are complaining about the fact that sometimes, the servers just don’t work. You realise that indeed, your servers do crash from time to time. How to protect your users from seeing these crashes?

A

Health checks ensure your ELB won’t send traffic to unhealthy (crashed) instances

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

You are designing a high performance application that will require millions of connections to be handled, as well as low latency. The best Load Balancer for this is

A

NLB provide the highest performance if your application needs it

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

Application Load Balancers (ALB) handle all these protocols except

A

HTTP, HTTPS, Websocket.

NLB (Network Load Balancer) support TCP instead

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

The application load balancer can route to different target groups based on all these except…

A

Hostname, request Path, Source IP

Except Geography

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

You are running at desired capacity of 3 and the maximum capacity of 3. You have alarms set at 60%CPUto scale out your application.Your application is now running at 80%capacity. What will happen?

A

The capacity of your ASG cannot go over the maximum capacity you have allocated during scale out events

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

I have an ASGand an ALB, and I setup my ASG to get health status of instances thanks to my ALB. One instance has just been reported unhealthy. What will happen?

A

Because the ASG has been configured to leverage the ALB health checks, unhealthy instances will be terminated

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

Your boss wants to scale your ASG based on the number of requests per minute your application makes to your database.

A

create a CloudWatch custom metrix and build an alarm to scale your ASG

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

You would like to expose a fixed static IPto your end-users for compliance purposes, so they can write firewall rules that will be stable and approved by regulators.Which Load Balancer should you use?

A

Network Load Balancers expose a public static IP, whereas an Application or Classic Load Balancer exposes a static DNS (URL)

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

A web application hosted in EC2 is managed by an ASG. You are exposing this application through an Application Load Balancer. The ALBis deployed on the VPCwith the following CIDR: 192.168.0.0/18. How do you configure the EC2 instance security group to ensure only the ALBcan access the port 80?

A

Open up the EC2 security on port 80 to ALB security Group

This is the most secure way of ensuring only the ALB can access the EC2 instances.

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

Your application load balancer is hosting 3 target groups with hostnames being users.example.com, api.external.example.com and checkout.example.com. You would like to expose HTTPS traffic for each of these hostnames. How do you configure your ALBSSL certificates to make this work?

A

SNI (Server Name Indication) is a feature allowing you to expose multiple SSL certs if the client supports it.

Read more here: https://aws.amazon.com/blogs/aws/new-application-load-balancer-sni/

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

An ASGspawns across 2 availability zones. AZ-Ahas 3 EC2 instances and AZ-Bhas 4 EC2 instances. The ASGis about to go into a scale-in event. What will happen?

A

AZ-B will termnate the oldest Launch configuration

Make sure you remember the Default Termination Policy for ASG. It tries to balance across AZ first, and then delete based on the age of the launch configuration.

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

The Application Load Balancers target groups can be all of these EXCEPT…

A

EC2, IP ADDR, Lambda Function

Except NLB

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

You are running an application in 3 AZ, with an Auto Scaling Group and a ClassicLoad Balancer. It seems that the traffic is not evenly distributed amongst all the backend EC2 instances, with some AZ being overloaded. Which feature should help distribute the traffic across all the available EC2 instances?

A

Cross Zone Load Balancing

17
Q

YourApplication Load Balancer (ALB)currently is routing to two target groups, each of them is routed to based on hostname rules. You have been tasked with enabling HTTPStraffic for each hostname and have loaded the certificates onto the ALB. Which ALBfeature will help it choose the right certificate for your clients?

A

Server Name Indication (SNI)

18
Q

An application is deployed with an Application Load Balancer and an Auto Scaling Group. Currently, the scaling of the Auto Scaling Group is done manually and you would like to define a scaling policy that will ensure the average number of connections to your EC2 instances is averaging at around 1000. Which scaling policy should you use?

A

Target Tracking

19
Q

Your instance in us-east-1a just got terminated, and the attached EBSvolume is now available. Your colleague tells you he can’t seem to attach it to your instance in us-east-1b.

A

EBS volumes are AZ locked

EBS Volumes are created for a specific AZ. It is possible to migrate them between different AZ through backup and restore

20
Q

You have provisioned an 8TB gp2 EBSvolume and you are running out of IOPS. What is NOTa way to increase performance?

A

Increase the EBS VOLUME SIZE.

EBS IOPS peaks at 16,000 IOPS. or equivalent 5334 GB.

21
Q

You would like to have a high-performance cache for your application that mustn’t be shared. You don’t mind losing the cache upon termination of your instance. Which storage mechanism do you recommend as a SolutionArchitect?

A

Instance Store provide the best disk performance

22
Q

You are running a high-performance database that requires an IOPSof 210,000 for its underlying filesystem. What do you recommend?

A

Use an EC2 Instance Store

23
Q

My company would like to have a MySQL database internally that is going to be available even in case of a disaster in the AWSCloud.I should setup

A

In this question, we consider a disaster to be an entire Availability Zone going down. In which case Multi-AZ will help.

24
Q

Our RDSdatabase struggles to keep up with the demand of the users from our website. Our million users mostly read news, and we don’t post news very often. Which solution isNOTadapted to this problem?

A

RDS Multi AZ
The question is asking which solution is NOT adapted to this problem. ElastiCache and RDS Read Replicas do indeed help with scaling reads.

25
Q

We have setup read replicas on our RDSdatabase, but our users are complaining that upon updating their social media posts, they do not see the update right away

A

Read Replicas have asynchronous replication and therefor it’s likely our user will only observe eventual consistency

26
Q

Which RDSClassic (not Aurora)feature does not require us to change our SQLconnection string?

A

Multi AZ keeps the same connection string regardless of which database is up.

27
Q

Your application functions on an ASG behind an ALB. Users have to constantly log back in and you’d rather not enable stickiness on your ALBas you fear it will overload some servers. What should you do?

A

Storing Session Data in ElastiCache is a common pattern to ensuring different instances can retrieve your user’s state if needed.

28
Q

One analytics application is currently performing its queries against your main production database.These queries slow down the database which impacts the main user experience. What should you do to improve the situation?

A

Read Replicas will help as our analytics application can now perform queries against it, and these queries won’t impact the main production database.

29
Q

You have a requirement to use TDE(Transparent Data Encryption) on top of KMS. Which database technology does NOT support TDEon RDS?

A

PostgreSQL

30
Q

Which RDSdatabase technology does NOTsupport IAMauthentication?

A

Oracle

31
Q

You would like to ensure you have a database available in another region if a disaster happens to your main region. Which database do you recommend?

A

Global Databases allow you to have cross region replication

32
Q

How can you enhance the security of your Redis cache to force users to enter a password?

A

Use Redis AUTH

33
Q

Your company has a production Node.js application that is using RDSMySQL5.6 as its data backend. Anew application programmed in Java will perform some heavy analytics workload to create a dashboard, on a regular hourly basis. You want to the final solution to minimize costs and have minimal disruption on the production application, what should you do?

A

Create Read Replica in the same AZ and run the analytics workload on the replica database

this will minimize cost because the data won’t have to move across AZ

34
Q

You would like to create a disaster recovery strategy for your RDSPostgreSQLdatabase so that in case of a regional outage, a database can be quickly made available for Read and Write workload in another region. The DR database must be highly available. What do you recommend?

A

Create Read Replica in a different region and enable muti-AZ on the main database.

35
Q

You are managing a PostgreSQLdatabase and for security reasons, you would like to ensure users are authenticated using short-lived credentials. What do you suggest doing?

A

In this case, IAM is leveraged to obtain the RDS service token, so this is the IAM authentication use case.

36
Q

An application is running in production, using an Aurora database as its backend. Your development team would like to run a version of the application in a scaled-down application, but still, be able to perform some heavy workload on a need-basis. Most of the time, the application will be unused. Your CIO has tasked you with helping the team while minimizing costs. What do you suggest?

A

Use Aurora Serverless

37
Q

RDS Database ports

A

RDS Databases ports:

PostgreSQL: 5432

MySQL: 3306

Oracle RDS: 1521

MSSQL Server: 1433

MariaDB: 3306 (same as MySQL)

Aurora: 5432 (if PostgreSQL compatible) or 3306 (if MySQL compatible)