Design For New Solutions Flashcards

(30 cards)

1
Q

To Manage temporary credentials for applications that run on EC2 instances

A

Associate an IAM role upon EC2 instance launch. Application retrieves the Temp credentials - credentials stored in EC2 metadata

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

Devs Can only use Approved AMIs for EC2 instances; latest security patches always installed on approved AMIs; checks are in place to verify AMIs used are approved; but don’t stop dev’s from launching unapproved AMIs - just send notification

A

AWS Systems Manager Patch Manager patch baselines
+
AWS Config Managed Rules
+
Cloudwatch Alarms

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

Credentials kept in dedicated storage with lifecycle management and key rotation

A

AWS Secrets Manager

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

Grant users in Account B access to resources in Account A (ie. S3 bucket)

A
  1. S3 bucket policy in account A must grant access to account B
  2. AWS KMS key policy in account A must grant access to the user in account B
  3. The AWS IAM policy in account B must grant user access to the bucket and the AWS KMS key in account A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Write IaC in AWS in familiar Python, Typescript, JavaScript, Java, C#

A

use AWS CDK

then deploy with:
CodeCommit, CodeBuild, CodeDeploy, CodePipeline

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

CloudFront distribution; dynamic content set to go to ALB (in front of compute services); static content served from S3 using OAC; Getting error 404 - How to fix?

A
  1. Need 2 origins in the CloudFront Distribution- 1 for dynamic content and a 2nd for Static content — so create a second origin to serve the static assets
  2. Need to update CloudFront by creating a new behavior to forward requests for static assets to S3 based on path pattern
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Mobile app;
store user data;
user data is small size (4 KB)
millions of users;
social login account for authentication

A

DynamoDB, Web identity federation, STS, DynamoDB fine grained Access Control for authentication and Authorization

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

Need a System to check if EC2 instances are using approved AMIs. Don’t prevent dev team from using unapproved AMIs but send notification if unapproved AMI is used

A

AWS Config Managed Rule to specify list of approved AMIs

sends config changes to SNS topic to send notifications

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

Easily centrally manage and scale desktop applications and deliver them to any computer across the globe. No acquiring, provisioning, managing hardware needed. Simplify application delivery; Good for migration purposes also

A

Amazon AppStream 2.0

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

Expecting an increase in incoming traffic to website from across globe;
Can’t migrate to AWS in time;
Need ability to scale out fast;
Need to remain Cost effective

A

Launch CloudFront distribution;
Offload DNS to AWS for CloudFront traffic

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

Scalable, highly available, caching functionality, global content distribution network, lots of edge locations

A

CloudFront - securely delivers data, videos, applications, APIs globally with low latency and high transfer speeds

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

Document storage;
Create documents;
Secure;
accessible by external application;
Upload documents;
Version control;
Sharing documents
Collaborate on documents

A

Amazon Workdocs and Workdocs content manager

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

In memory data store

Popular for real time uses like caching, session store, gaming, geospatial, real time analytics, and queuing

A

Amazon ElastiCache

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

Sequence to authenticate an employee into AWS against Active Directory LDAP to get to specific S3 bucket

A

Create identity broker

Authenticate against LDAP using identity broker in order to retrieve name of an IAM ROLE

Application retrieves federated user credentials via a call to IAM STS

Application gets the IAM role federated credentials from the identity broker to access the S3 bucket

Application assumes the role via a call to STS

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

Cloudformation DeletionPolicy

A

snapahot - take a snapshot of the resource before deleting it

retain - do not delete the specified resource when the rest of the cloudformation stack is deleted

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

Build serverless architecture comprised of Lambda, API gateway, and DynamoDB.

Plus needs a code pipeline for gradual deployment

A

AWS SAM (serverless application, model)
&
Codebuild, codedeploy, and codepipeline

17
Q

search feature needed for website for large amount of books, articles, other written materials (ie. 50 TB);

A

Amazon CloudSearch for managed, cost effective, scalable search solution for website or application

18
Q

Kinesis has storage backed by S3;

A

Every record retrieval, write, and delete on a Kinesis data stream incurs additional cost

19
Q

Millions records/min
Worldwide user base
storage and retrieval of data where each record less then 4KB; low latency retrieval time; data stored for 120 days only;

A

DynamoDB with proper scaling, enable DynamoDB TTL settings to delete records after 120 days

20
Q

Automates patching managed instances with security and other updates - uses patch baselines.

A

AWS Systems Manager Patch Manager

AWS Systems Manager Automation

21
Q

An IAM role attached to an EC2 instance retrieves temporary credentials from the instance metadata or userdata?

A

From the instance metadata

22
Q

Solution to protect against DDOS, SQL Injection, cross-site scripting, other Layer 7 attacks
and
Notify for incoming layer 3 & 4 attacks like SYN floods and UDP reflection attacks

A

AWS WAF & AWS Shield Advanced

23
Q

Critical application;
CICD pipeline;
Cloudformation creates resources;
Userdata script downloads from S3
Cloudformation template update causes major downtime

How to fix for no downtime?

A

CodeBuild to auto test on a non-production environment

Cloudformation change sets to preview changes before applying to production

Blue/Green deployment pattern on CodeDeploy to deploy changes on separate environments and rollback quick if needed

24
Q

Cloudformation tenplate that defines an EC2 autoscaling group so that when you update the launch template or launch configuration, this update action does not deploy any change across the running EC2 instances. However, all new instances will get the updated configuration, while existing instances will not

A

AWS::AutoScaling::AutoScalingGroup

25
Cloudformation attribute added to the ASG stack to perform rolling updates when a change is made to the ASG
UpdatePolicy attribute UpdatePolicy + AWS::AutoScaling::AutoScalingGroup + AutoScalingRollingUpdate = auto rolling deployment of new AMI instances for ASG
26
Policy to Define whether Cloudformation updates instances in an ASG in batches or all at once
Use the **AutoScalingRollingUpdate** policy
27
Connect AWS DX connection to one or more VPCs in your account located in the same or different regions
Direct Connect Gateway Create it in any public region and access it from all other public regions Associate it with the Virtual Private gateway for each VPC
28
Controls User access and authentication to API (ie. API Gateway) Solution involves API Gateway, Lambda functions, S3
Amazon Cognito and Cognito User Pools
29
Lock down S3 bucket content to be distributed only to specific people and only via CloudFront
Use CloudFront signed URLs Create OAC with permission to read files in S3 bucket Remove permission to use S3 URLs for everyone else Create new S3 bucket, use pre-signed URLs for specific people only. Remove permission to use S3 URLs to read the files for everyone else
30
Entire region continuity for Redshift in case region goes down
Automatic snapshots & Cross region snapshot copy for auto replication of production cluster to DR region Snapshots automatically taken by Redshift every 8 hours or every 5 GB per node of data changes. Whichever comes first