AWS Certified Developer - Associate

461 flashcardsby ANDtac
Study these flashcardsFree · spaced repetition · iPhone, Android, Mac & web

First 300 of 461 cards

1
AWS SQS long polling allows the SQS service to wait until a message is available in the queue before sending a response?
  • true
  • false
2
A visibility timeout is a period of time during which AWS SQS prevents other consuming components from receiving and processing the message?
true
3
What AWS service can you use to "fan out" SQS messages to multiple queues?
SNS
4
(SQS) What is the maximum long poll timeout?
20 seconds
5
You have a fleet of EC2 instances that are constantly polling empty SQS queues which is burning CPU complete cycles. What should you do?
Enable SQS long polling
6
What is the default SQS visibility time out?
30 seconds
7
EC2 instances download jobs from SQS queue, but are taking too long to process. What api call can you use to the length of time to process jobs?
ChangeMessageVisibility
8
(SQS) You are designing a new app which processes payments and delivers promotional emails to customers. Your need to ensure that the payment process takes priority over the creation of emails. What is the best way to achieve this?
Use 2 SQS queues. Poll that payment queue first.
9
An SQS message can NOT be delivered multiple times?
False, SQS messages can be delivered multiple times
10
What is the default visibility timeout for SQS?
30 seconds
11
How long can SQS messages be?
Messages can contain up to 256 KB of text in any format
12
SQS was the second service on AWS?
False, SQS was the first
13
DynomaDB writes are measured in 2 KB per write?
False, they are measured in 1 KB per write.
14
What are the two consistency models used when reading data from DynamoDB?
Eventually Consistent and Strongly consistent
15
DynamoDB is a NoSQL database by AWS?
True
16
You have an app that needs 25 items of 13KB per second. Your app uses STRONGLY consistent reads. What should the throughput be set to? (Math problem)
Calculate read capacity units (items up to 4 KB in size)
Multiply number of items by read capacity units
Do NOT divide by 2 because strongly consistent
Answer: 100
17
One read capacity unit represents one strongly consistent read per second, or two eventually consistent reads per second, for items up to 4 KB in size?
True
18
When you create a table, you specify how much provisioned throughput capacity you want to reserve for reads and writes?
True
19
In DynamoDB, you specify provisioned throughput requirements in terms of capacity units?
True
20
One read capacity unit represents one X type of read per second, or two Y type of read per second?
One strongly consistent read per second. Two eventually consistent reads per second. For items up to 4 KB in size.
21
Application needs to read 25 items of 13KB per second. App uses EVENTUALLY consistent reads. What should you set read throughput to?
Calculate read capacity units (items up to 4 KB in size).
Multiply number of items by read capacity units.
Divide by two because EVENTUALLY consistent.
Answer: 50
22
A global secondary index contains a selection of attributes from the table, but are organized by a primary key that is different from the table's? (T/F)
True
23
DynamoDB local secondary indexes are fixed at 10 per table?
False, local secondary indexes are fixed at 5 per table.
24
Local secondary indexes give your table a choice of sort keys?
True
25
What are the three capacity unit sizes in DynamoDB?
One read capacity unit represents one strongly consistent read per second, for items up to 4 KB in size.
One read capacity unit represents two eventually consistent reads per second, for items up to 4 KB in size.
One write capacity unit represents one write per second for items up to 1 KB in size.
26
Using the AWS portal, you are trying to scale DynamoDB past preconfigured maximums. Which service can be increased through AWS support?
Provisioned throughput limits
27
What are the steps for calculating write throughput?
Write capacity units are 1 KB per write.
Calculate items per second.
Multiply items per second by writes per item.
28
You have a motion sensor which writes 600 items of data every minute. Each item is 5 KB. What should write throughput be?
Calculate items per second.
Multiply items per second by write capacity units per item.
Answer: 50 provisioned write capacity units
29
What is the api call to receive multiple items from a DynamoDB table?
BatchGetItem
30
You have a motion sensor which writes 600 items of data every minute. Each item consists of 5 KB. Your application uses Strongly consistent reads. What should you set read throughput to?
Calculate items per second.
Calculate read capacity units per item.
Strongly consistent reads are up to 4 KB per read.
Multiply items per second by read capacity units per item.
Answer: 20 provisioned read capacity units
31
You have a motion sensor which writes 600 items of data every minute. Each item consists of 5 KB. Your application uses eventually consistent reads. What should you set the read throughput to?
Calculate items per second.
Calculate read capacity units per item.
Eventually consistent reads give 2 reads for items up to 4 KB.
Answer: 10 provisioned read capacity units
32
Steps for calculating read throughput?
Calculate items per second.
Calculate read capacity units per item (4 KB).
Multiply items per second by read capacity units per item.
If eventually consistent, divide by two.
33
A scan is more efficient than query in terms of performance? (T/F)
False, a query is more efficient that a scan in terms of performance.
34
What does the error "ProvisionedThroughputExceededException" mean?
You have exceeded your maximum allowed provisioned throughput
35
A scan reads every item in a table or secondary index?
Tru
36
What does OLTP stand for?
Online Transaction Processing (OLTP)
37
What does OLAP stand for?
Online analytics processing (OLAP)
38
Is RDS an OLAP? (T/F)
False, RDS is Online Transaction Processing (OLTP)
39
Is Redshift OLAP? (T/F)
True
40
Is DynamoDB NoSQL?
True
41
Is ElastiCache in memory?
True
42
What is more frequent Online Transaction Processing (OLTP) or Online Analytics Processing (OLAP)?
Online Transaction Processing (OLTP) because it is similar to a traditional query. Online Analytics Processing (OLAP) is more of a management tool used at the end of a day.
NoSQL Notes:

NoSQL : RDS
collection: table
document: row
key value pair: fields

_id is required
can embed key value pairs (KVP)
43
embedded data = nested KVP
Not a question
44
Does DynamoDB allow embedded data structures?
No, DynamoDB allow embedded data structures; however, MongoDB does.
45
What is AWS proprietary database?
Aurora
46
Developers store session data in Elasticache?
Yes, developers store session data in Elasticache.
47
What are the two Elasticache engines offered?
Memcached and Redis
48
What is AWS in memory cache?
Elasticache
49
Are newly created S3 buckets public by default?
No, they are not public by default
50
Is 1 TB the largest size file you can transfer to S3 using a PUT?
No, the largest is 5GB. After 5 GB you must use multipart upload
51
What is the maximum size on S3?
5TB
52
Does S3 provide unlimited storage?
Yes
53
What is CORS?
Cross Origin Resource Sharing (CORS)
54
Which region is Sydney, Australia in?
ap-southeast-2
55
What does "ap" stand for in AWS regions?
Asian Pacific
56
Which region is Singapore in?
ap-southeast-1
57
Which region is Japan in?
ap-northwest-1
58
An s3 endpoint always contains?
Tee phrase "s3-website" followed by the region name
59
What is the link to an S3 bucket created in Japan?
https://s3-ap-northeast-1.amazonaws.com/sitename/
60
Do static hosted websites on S3 have www in their names?
No, static hosted websites on S3 do NOT have www in their names
61
Create a static hosting website in a bucket called "eric" in japan using s3. What is the new url?
http://eric.s3-website-ap-northeast-1.amazonaws.com
62
What encryption does AWS use on s3 buckets?
Advanced encryption standard (AES) 256
63
What is the minimum file size on s3?
1 byte
64
Are autoscaling, Elastic Beanstalk, and Cloud formation chargeable?
No, the resources they use are.
65
Is Elastic Load Balancer Service chargeable?
Yes, ELB is chargeable because it is a service
66
Can you have multiple certs on an elastic load balancer?
Yes, you can have multiple certs on an elastic load balancer
67
Must you use the appropriate OS when encrypting an EBS volume?
No, used to be the case, but now you can encrypt upon creation
68
To enable encryption at rest using ec2 and elastic block store, you need to?
Configure encryption when creating the EBS volume
69
Which command line command will tell you the internal ip address?
ipconfig (windows)
ifconfig (linux)
70
An EC2 which needs its private and public ip address should Retrieve the instance metadata from http://169.254.169.254? (T/F)
True, An EC2 which needs its private and public ip address should Retrieve the instance metadata from http://169.254.169.254.
71
What does a 2xx code mean?
The request was successful.
72
What does a 5xx error mean?
There has been a server side error
73
What does a 404 error mean?
The resource being accessed is not available on the server
74
which languages are supported by the aws sdk?
python, ruby, nodejs, php, java
75
What is the default region for an sdk?
us-east-1
76
What is amazons data warehouse called?
Redshift
77
When using Web Identity Federation to allow a user to access AWS, what is the correct order of the steps?
1) user auths with facebook first. Theyt are given an id token by facebook

2) an api call to AssumeRoleWithWebIdentity is then used in conjunction with the ID token

3) the user gains temporary credentials
78
The AWS sign in endpoint is https://signin.aws.amazon.com/saml ? (T/F)
True, The AWS sign in endpoint is https://signin.aws.amazon.com/saml
79
When using AD to authenticate to AWS, what steps are performed?
1) User navigates to Active Directory Federation Services (ADFS)

2) user enters Single Sign On (SSO) credentials

3) user's web browser receives SAML assertion from the AD server

4) user's web browser receives Security Assertion Markup Language (SAML) assertion to AWS SAML endpoint: AssumeRoleWithSAML api request is used to request temporary credentials

5)user is then able to access the AWS console
80
What API call requests temporary security credentials from the AWS platform when federating with Active Directory
AssumeRoleWithSAML


Security Assertion Markup Language (SAML)
81
What API call is used to gain temporary security credentials when authenticating using WebIdentityFederation?
AssumeRoleWithWebIdentity
82
Name of service allowing users to use social media account to gain temporary access to AWS platform?
Web Identity Ferderation
83
AWS recommends storing credentials on Ec2 over using IAM roles? (T/F)
False, use IAM roles
IAM allows:

1) centralized control of account?
2) integrates with active directory?
3) Fine grained access control to AWS resources?
84
4) Biometric Auth?
IAM allows centralized control of account
IAM integrates with active directory
IAM give Fine grained access control to AWS resources
IAM, does NOT do Biometric Auth
85
IAM allows you to manage these 3 things: Users, Groups, Roles? (t/f)
True, IAM allows you to manage these 3 things: Users, Groups, Roles
86
What service allows you to manage users, groups, roles, and their access to the AWS platform?
IAM
87
What service offers object (file) based storage?
S3
88
Does EBS use object (file) based storage?
No, EBS uses block storage
89
What does EBS stand for?
Elastic Block Storage
90
Object Based storage is synonymous with?
File based storage
91
Why is Route53 named as such?
DNS port is 53
92
Amazon's scalable DNS is called?
Route53
93
There are more regions than edge locations?
False, there are more edge locations than regions
94
Do Availability Zones (AZ) automatically sync data between them?
No, not in terms of EBS and EC2
95
Distinct locations within an AWS region that are isolated from failure are called?
Availability Zones (AZ)
96
How many regions are the on AWS at present?
11

us-east-1 US East (N. Virginia)
us-west-2 US West (Oregon)
us-west-1 US West (N. California)
eu-west-1 EU (Ireland)
eu-central-1 EU (Frankfurt)
ap-southeast-1 Asia Pacific (Singapore)
ap-northeast-1 Asia Pacific (Tokyo)
ap-southeast-2 Asia Pacific (Sydney)
ap-northeast-2 Asia Pacific (Seoul)
ap-south-1 Asia Pacific (Mumbai)
sa-east-1 South America (São Paulo)
97
What is AWS Business Intelligence (BI) tool?
Quicksight
98
What services does AWS offer for Real Time Big Data analytics?
Kinesis firehose
Kinesis streams
Kinesis analysis
99
What are the AWS big data analytics frameworks?
Elastic Map Reduce (EMR) (Hadoop and spark)
Elasticsearch service
100
What allows organizations to do complex analysis on large volumes of data?
Elastic Map reduce (EMR)
101
What are the services offered by AWS? (high level)
Compute and Networking
Storage and Content delivery
Security and Identity
Database
Analytics
Application
Management tools
102
VPC is a component of which AWS Service?
Networking Service
103
What is AWS's content distribution network (CDN) ?
Cloudfront
104
AWS console that provides a quick global picture of your cloud computing environment?
Cloudwatch
105
A distinct location within a geographic area designed to provide high availability to a specific geography is called?
An Availability Zone (AZ)
106
An independent collection of AWS computing resources in a defined geography is called?
An AWS region
107
What's the difference between an AWS region and an availability zone?
Region is a geographic area.
Availability Zone is an isolated area inside of a region
Regions have multiple Availability Zones
108
You have a motion sensor which writes 300 items every 30 seconds. Each item consists of 5 kb. Your app uses eventually consistent reads. What should read throughput be set to?
10 items per seconds.
2 reads per item (8 kb).
Eventually consistent, so divide by 2.
Read throughput = 10
109
What is the largest file size you can transfer to S3 using a PUT request?
5 GB
110
There is a hard limit on how much data you can store on s3?
False, there is no hard limit on how much data you can store on s3.
111
You are hosting a static website in an s3 bucket which uses javascript to reference assets in another S3 bucket. For some reason, these assets are not displaying. What could be the problem?
Cross Origin Resource Sharing (CORS) is not enabled
112
You create a static hosting website in a bucket called 'eric' in sydney using S3. What would the new URL endpoint be?
http://eric.s3-website-ap-southeast-2.amazonaws.com
113
You have added a NAT (Network address translator) ec2 instance to your vpc, but your ec2 instances in the private subnet still cannot access the internet. What should you do with the NAT?
Disable the source/destination checks on the NAT
114
You have 2 ec2 instances which sit in a custom VPC in a public subnet. You add a 3rd instance to the subnet, but it cannot access the internet. What should you do?
Add an elastic ip address to the new instance
115
How many internet gateways can I attach to a custom VPC?
1
116
You are designing an application which needs to locate the public ip address on the ec2 instance on which it is stored. What do you do?
Get the instance metedata by visiting http://169.254.169.254/latest/meta-data/
117
With ec2 you can have 2 types of storage. EBS storage or Instance store. EBS is persistent and if an ec2 instance is stopped with an ebs volume attached, there will be no data lost. instance store is ephemeral and if the ec2 is stopped, all data will be lost. (t/f)
True.

EBS is persistent and if an ec2 instance is stopped with an ebs volume attached, there will be no data lost.

Instance store is ephemeral and if the ec2 is stopped, all data will be lost.
118
If you make an ami public, this AMI is immediately available across all regions by default (t/f)
False, If you make an ami public, the AMI is NOT immediately available across all regions by default (t/f)
119
in the shared responsibility model, what is aws's responsibility?
restricting access to data centers
proper destruction of decommissioned disks
patching of firmware
120
what is the default encryption used on s3?
advanced encryption standard (AES) 256
121
after successfully uploading a file to s3, what http response code is expected?
200
122
which of these aws services do not use key value pairs?
route53
123
which of the following languages is not supported by the aws sdk? (bad question)
C++
124
what is the default region for all SDKs
us-east-1
125
you can have multiple ssl certs (for multiple domain names) on a single ELB?
true, you can have multiple ssl certs (for multiple domain names) on a single ELB
you run a website which hosts videos and you have 2 types of members, premium and free.

all videos uploaded by both types are processed by a fleet of ec2 instances which will poll sqs as videos are uploaded; however, you need to ensure that premium members have a higher priority.
126
how do you design simple queue service (SQS)?
Create two queues.
program ec2 to poll the premium queue first.
127
you can select a specific availability zone in which to place your dynamo DB table (t/f)
false, you can NOT select a specific availability zone in which to place your dynamo DB table
128
in order to enable encryption at rest using ec2 and elastic block store (EBS) you need to?
Configure encryption when creating the ebs volume
129
Amazon s3 provides unlimited file size for objects
False, it provides unlimited storage, but there is a maximum file size
130
amazon s3 buckets in all other regions (other than us standard) do NOT provide eventual consistency for overwrite PUTS and DELETES (t/f)
False, amazon s3 buckets in all other regions (other than us standard) DO provide eventual consistency for overwrite PUTS and DELETES (t/f)
131
amazon s3 buckets in all other regions (other than us standard) provide read after write consistency for PUTS of new objects (t/f)
false, amazon s3 buckets in all other regions (other than us standard) do NOT provide read after write consistency for PUTS of new objects (t/f)
132
to retrieve instance metadata of userdata you will need to use the following ip address
http://169.254.169.254
133
you have an ec2 instance which needs to find out both its private ip address and its public ip address
retrieve instance metadata from http://169.254.169.254/latest/metadata/
134
it is possible to transfer a reserved instasnce from one availability zone to another
true, it is possible to transfer a reserved instasnce from one availability zone to another
135
when you create new subnets within a custom virtual private cloud (vpc), by default, they can communicate with each other, across availability zone
true, every subnet created is automatically associated with the VPCs default network ACL
136
You can have 1 subnet attached across multiple availability zones (t/f)
False, You can have more than 1 subnet attached across multiple availability zones
137
In identity access management (IAM), using security access markup language (SAML) 2.0, you can give federated users single sing on (SSO) access to the aws console. (t/f)
True, In identity access management (IAM), using security access markup language (SAML) 2.0, you can give federated users single sing on (SSO) access to the aws console.
138
Amazon S3 buckets in the US standard region do NOT provide eventual consistency
False, Amazon S3 buckets in the US standard region do provide eventual consistency
139
In the shared responsibility model, what is AWS's responsibility?
Restricting access to datacenters
Proper destruction of decommisioned disks
Patching of firmware for the hardware on which your AWS resources reside
140
Amazon RDS stands for?
Amazon Relational Database Services (RDS)
141
You are required to patch the operating system (OS) and application in Amazon Relational Database Service (RDS)?
False, You are NOT required to patch the operating system (OS) and application in Amazon Relational Database Service (RDS)
142
Network ACL stands for?
Network Access Control List
143
A VPC can have 3 internet gateways attached to it?
False, A VPC can only have one internet gateway attached to it
144
How many internet gateways (IG) can be attached to a custom VPC?
1
145
How many virtual private clouds (VPCs) can be had in each AWS region by default?
5
146
The default number of VPCs allowed in an AWS region is 4?
false, 5 is the default number of VPCs allowed in each AWS region
147
You may only have 1 internet gateway per virtual private cloud (VPC)
False, you may have more than one internet gateway (IG) per Virtual Private Cloud (VPC)
148
It is possible to have private subnets in VPC?
True, it is possible to have private subnets in VPC
149
An instance does NOT retain its private IP address in Amazon Virtual Private Cloud (VPC)?
False, it retains its IP address (weird question)
150
A subnet can only be associated with one Access Cotnrol List (ACL)
True, You can associate a network ACL with multiple subnets; however, a subnet can be associated with only one network ACL at a time. When you associate a network ACL with a subnet, the previous association is removed.
151
A subnet can only be associated with MULTIPLE Access Cotnrol List (ACL)
False, a subnet can be associated with only one network ACL at a time.
152
Security groups act like a firewall at the instance level where as ________ are an additional layer of security that act at the subnet level
Access Conrtol List (ACL)
153
Network ACLs are an additional layer of security that act at the subnet level?
True, Network ACLs are an additional layer of security that act at the subnet level?
154
Security groups act like a firewall at the instance level?
True, Security groups act like a firewall at the instance level
155
VPC Stands for?
Virtual Private Cloud
156
Unlike Cloud formation, Elastic Beanstalk itself is not free AND you must pay for the resource it provisions?
False, both Elastic Beanstalk and Cloud Formation are free, but you must pay for the underlying resources.
157
What languages and development stacks are not supported by the AWS elastic beanstalk?
Jetty for JBoss application (weird question)

AWS Elastic Beanstalk supports Java, .NET, PHP, Node.js, Python, Ruby, Go, and Docker web applications.
158
Elastic beanstalk is object based storage?
False.

An application version points to an Amazon Simple Storage Service (Amazon S3) object that contains the deployable code such as a Java WAR file.
159
What language are cloud formation templates written in?
JSON
160
You are creating a virtual data center using cloud formation and you need to output the DNS name of your load balancer. What command would you use to achieve this?
FN::GetAtt
161
Fn::GetAZs returns a list of regions? (t/f)
False, The intrinsic function Fn::GetAZs returns an array that lists Availability Zones for a specified region. Because customers have access to different Availability Zones, the intrinsic function Fn::GetAZs enables template authors to write templates that adapt to the calling user's access. That way you don't have to hard-code a full list of Availability Zones for a specified region.
162
What happens if cloud formation encounters and error by default?
It will terminate and rollback all resources created on failure.
163
Cloud formation is free; however, the resources it provisioned will be charged at the usual rates
True, Cloud formation is free; however, the resources it provisioned will be charged at the usual rates
164
THe default scripting language for cloud formation is?
JSON
165
In Amazon Simple Workflow Services (SWF), what is a decider?
The decider is a program that controls the coordination of tasks, i.e. their ordering, concurrency, and scheduling according to the application logic.
166
In amazon Simple Workflow Service (SWF), what is a worker?
Workers are programs that interact with amazon SWF to get tasks, process received tasks, and return the results.
167
Amazon Simple Workflow Service (SWF) is sueful for automating workflows that include long running human tasks (e.g. approvals, reviews, investigations, etc). Amazon SWF reliably tracks the status of processing steps that run up to several days or months.
True
168
Maintaining your applications execution state (e.g. which steps have completed, which ones are running) is a perfect use case for SWF?
True
169
SWF consists of a domain, worker, and decider?
True
170
Messages CAN be customized for each protocol used in SNS?
True, Messages CAN be customized for each protocol used in SNS.
171
SNS is push based?
True, SNS is push based.
172
You can use SNS in conjunction iwth SQS to fan a single message out to multiple SQS Queries?
True, You can use SNS in conjunction iwth SQS to fan a single message out to multiple SQS Queries
173
You have a list of subscribers email addresses that you need to push emails out to on a periodic basis. What do you subscribe them to?
A topic.
174
Messages can NOT be customized for each protocol used in SNS?
False, Messages can NOT be customized for each protocol used in SNS.
175
Name a protocol not supported by SNS.
FPS.

SNS supported protocols are: Amazon SQS, HTTP/S, email, SMS, Lambda
176
Which protocols are supported by SNS?
Amazon SQS, HTTP/S, email, SMS, Lambda
177
SNS is PULL based rather than PUSH based?
False, SNS is PUSH based.
178
Amazon Simple Queue Service (SQS) was the 3rd service on AWS (t/f) ?
False, SQS was the first.
179
What does S3's consistency model guarantee today?
Since December 2020, Amazon S3 provides strong read‑after‑write consistency for PUT, overwrite, and DELETE of objects in all regions; new reads reflect successful writes immediately.
180
When do you use S3 Object Lambda?
When you must transform or filter S3 object data on the fly for a requesting application (e.g., PII redaction, format transformation) without modifying the object at rest.
181
CloudFront Functions vs Lambda@Edge—key difference
CloudFront Functions run lightweight JavaScript at viewer requestesponse for ultra‑low latency; Lambda@Edge supports full runtimes, origin events, and richer logic but with higher latency and cold starts.
182
What do S3 Multi‑Region Access Points provide?
A single global endpoint that routes to the nearest bucket replica, accelerating cross‑region access and providing automatic failover policies.
183
When should you use Amazon RDS Proxy with Lambda?
When many short‑lived Lambda invocations would otherwise exhaust database connections; RDS Proxy pools and reuses connections, improving scalability and resilience.
184
DynamoDB capacity modes—when to pick each?
Provisioned (predictable traffic, control cost via auto scaling) vs On‑Demand (spikynknown traffic, pay‑per‑request); switch based on traffic patterns and cost control.
185
What's DynamoDB DAX used for?
In‑memory, microsecond‑latency caching for DynamoDB reads; it offloads read traffic and reduces latency without code changes beyond using the DAX client.
186
How do DynamoDB transactions behave?
They provide ACID semantics across multiple items and tables via TransactWriteItems/TransactGetItems; operations succeed or fail atomically, often with conditional checks.
187
Kinesis Data Streams vs SQS—when to choose which?
Choose Kinesis for ordered, high‑throughput streaming with multiple consumers and replay; choose SQS for at‑least‑once, pull‑based work queues to decouple producers/consumers.
188
What is Kinesis Enhanced Fan‑Out?
A per‑consumer dedicated 2 MB/s/shard push stream that bypasses shared polling limits, lowering latency for each consumer application.
189
EventBridge vs SNS—key difference
SNS is topic‑based pub/sub fan‑out; EventBridge is rule‑based event bus with content‑based filtering, schema registry, and routing to many AWS/SaaS targets.
190
What are EventBridge Pipes?
Managed point‑to‑point links from a source (e.g., SQS, Kinesis) to a target (e.g., Lambda, Step Functions) with built‑in filtering, enrichment, and batching.
191
When to use Step Functions over simple Lambda chaining?
Use Step Functions for long‑running, stateful, or human‑in‑the‑loop workflows, complex branching, retries, and service integrations without custom orchestration code.
192
Common Step Functions state types
Task, Choice, Parallel, Map (including Distributed Map), Wait, Succeed, Fail, Pass.
193
How do you mitigate Lambda cold starts?
Use Provisioned Concurrency, minimize init code, keep packages slim, choose faster runtimes, and keep connections warm (e.g., via RDS Proxy).
194
What is the maximum AWS Lambda function timeout?
15 minutes (900 seconds) per invocation.
195
How does Lambda memory setting affect performance?
More memory proportionally increases vCPU; higher memory often reduces duration (at a higher per‑ms cost).
196
How can a Lambda in a VPC reach the internet?
Place it in private subnets with a NAT Gateway route for 0.0.0.0/0 (or use VPC endpoints to reach AWS services privately).
197
How can a Lambda persist or share large files?
Mount Amazon EFS via an access point; /tmp is ephemeral and not shared across concurrent invocations.
198
Principle of least privilege
Grant only the minimum permissions required to perform a task—no more.
199
How should applications access AWS without static keys?
Use IAM roles (instance profiles for EC2, execution roles for Lambda) to obtain temporary credentials via STS.
200
Where should application secrets be stored?
Use AWS Secrets Manager (or SSM Parameter Store) and retrieve at runtime; avoid embedding secrets in code or AMIs.
201
KMS key rotation defaults
Customer‑managed symmetric KMS keys can auto‑rotate annually; AWS‑managed keys rotate approximately every 3 years (service‑managed).
202
How do you secure API Gateway with Cognito?
Use a Cognito User Pool authorizer to validate JWTs per request; optionally combine with scopes/claims‑based authorization.
203
HTTP API vs REST API (API Gateway)
HTTP API offers lower latency and cost for most use cases; REST API provides advanced features like usage plans, API keys, and request validation.
204
What is AWS AppSync?
A managed GraphQL service with real‑time subscriptions and resolvers for DynamoDB, Lambda, HTTP, and more.
205
How do you fan out an event to many consumers?
Publish to SNS (or EventBridge) with multiple subscriptions/targets; use filter policies or rules to route selectively.
206
How do SNS filter policies help?
Subscribers receive only messages whose message attributes match their filter policy, reducing unnecessary processing.
207
When should you use SQS vs Kinesis?
SQS for decoupling with at‑least‑once delivery per consumer; Kinesis for ordered, high‑throughput streams with replay across consumers.
208
DynamoDB: Query vs Scan
QUERY uses key conditions and indexes and is efficient; SCAN reads every item and is expensive—avoid in hot paths.
209
DynamoDB secondary indexes
LSI (same partition key, different sort key; define at table creation) vs GSI (different partition/sort keys; can add anytime).
210
How many GSIs and LSIs can a table have?
Up to 20 GSIs and 5 LSIs per table (limits may evolve; check current docs).
211
What is DynamoDB DAX?
A fully managed, in‑memory cache that reduces read latency from milliseconds to microseconds for DynamoDB workloads.
212
DynamoDB capacity modes
Choose On‑Demand for unpredictable/spiky workloads; choose Provisioned with auto scaling for predictable workloads and tight cost control.
213
Name common S3 storage classes
Standard, Standard‑IA, One Zone‑IA, Glacier Instant Retrieval, Glacier Flexible Retrieval, Glacier Deep Archive.
214
How to enforce S3 encryption at rest?
Enable default encryption and add a bucket policy that denies unencrypted PUTs or requires a specific KMS key.
215
How does CloudFront reduce latency?
By caching content at edge locations near users; it supports TLS, WAF, custom headers, and origin failover.
216
Common application caching strategies
Read‑through, write‑through, lazy loading, and TTLs; use ElastiCache (Redis/Memcached) or DynamoDB DAX as appropriate.
217
Which AWS services compose a CI/CD pipeline?
CodeCommit (source), CodeBuild (build/test), CodeDeploy (deploy), CodePipeline (orchestration).
218
How do Lambda canary deployments work?
Use Lambda aliases with CodeDeploy to shift a small percentage of traffic to a new version, monitor, then increase if healthy.
219
What does a CodeBuild buildspec define?
Phases (install, pre_build, build, post_build), commands, environment variables, artifacts, and caching.
220
What is AWS SAM?
Serverless Application Model—an IaC framework built on CloudFormation that simplifies defining and deploying serverless apps.
221
What is the AWS CDK?
Infrastructure as Code framework to define resources in TypeScript/Python/Java/C#/Go; it synthesizes to CloudFormation.
222
How can you preview CloudFormation changes?
Create a Change Set to see addspdates/deletes before executing the stack.
223
What is CloudWatch Logs Insights?
A query engine for CloudWatch Logs to search, filter, and aggregate logs using a SQL‑like syntax.
224
What does AWS X‑Ray provide?
Distributed tracing with service maps, segment/subsegment timelines, and per‑request latency/error analysis.
225
What is the CloudWatch Embedded Metric Format (EMF)?
A structured log format that CloudWatch automatically turns into metrics for dashboards and alarms.
226
How many Internet Gateways can a VPC have?
One IGW attached per VPC (you can detach/attach, but only one at a time).
227
What is an Interface VPC Endpoint (PrivateLink)?
An ENI in your subnets that privately connects to supported AWS services without internet/NAT.
228
What is a Gateway VPC Endpoint?
A route table target for S3/DynamoDB that keeps traffic on the AWS network without using an IGW/NAT.
229
How do you protect web apps against common exploits on AWS?
Attach AWS WAF to CloudFront/ALB/API Gateway and use managed rule groups (e.g., SQLi/XSS) plus custom rules.
230
Cognito User Pools vs Identity Pools
User Pools handle user sign‑up/sign‑in and issue JWTs; Identity Pools exchange identities for temporary AWS credentials via IAM roles.
231
What is AWS AppConfig used for?
Safely rolling out application configuration/feature flags with validation, monitoring, and automatic rollback.
232
What is SQS long polling?
A receive operation that waits up to a configured time for messages to arrive (reduces empty responses and cost).
233
What is the maximum SQS long‑poll timeout?
20 seconds (WaitTimeSeconds).
234
What is the default SQS visibility timeout?
30 seconds (the message is hidden from other consumers during this period).
235
How do you extend time to process a specific SQS message?
Call ChangeMessageVisibility for that message to increase the visibility timeout.
236
How do you prioritize workloads with SQS?
Use separate queues (e.g., premium vs standard) and poll the priority queue first; or use priority metadata with multiple consumers.
237
Can SQS deliver duplicate messages?
Yes for Standard queues (at‑least‑once). Build idempotent consumers or use FIFO queues for exactly‑once processing and ordering within a group.
238
What is the default SQS message retention period?
4 days (configurable up to 14 days).
239
What is the SQS message size limit?
256 KB; use the SQS Extended Client Library to store large payloads in S3 and send pointers.
240
What is an SQS dead‑letter queue (DLQ)?
A queue for messages that fail processing repeatedly; attach via a redrive policy with maxReceiveCount.
241
DynamoDB—what is one Read Capacity Unit (RCU)?
One strongly consistent read per second for an item up to 4 KB; eventually consistent reads count as half (two reads per RCU).
242
DynamoDB—what is one Write Capacity Unit (WCU)?
One write per second for an item up to 1 KB.
243
ProvisionedThroughputExceededException—what does it mean?
Your DynamoDB request rate or item size exceeded provisioned capacity; implement backoff, optimize access patterns, or use On‑Demand/auto scaling.
244
How do you calculate DynamoDB read capacity in general?
Compute items/sec × ceil(itemSize/4 KB) RCUs; if using eventual consistency, divide by 2.
245
How do you calculate DynamoDB write capacity in general?
Compute items/sec × ceil(itemSize/1 KB) WCUs.
246
What is the maximum S3 object size?
5 TB.
247
When must you use S3 multipart upload?
Required for single uploads larger than 5 GB; recommended for anything over ~100 MB for reliability/performance.
248
What is CORS in S3?
Cross‑Origin Resource Sharing—allowing a browser from one origin to access resources in another bucket/origin per configured rules.
249
What is an S3 static website endpoint format?
http://<bucket>.s3-website-<region>.amazonaws.com (or regional equivalent).
250
Are new S3 buckets public by default?
No—buckets are private by default; use Block Public Access and bucket policies to control access.
251
Which server‑side encryption options does S3 support?
SSE‑S3 (AES‑256), SSE‑KMS (with KMS keys and auditability), and SSE‑C (customer‑provided keys).
252
What HTTP status is returned for a successful S3 PUT?
HTTP 200 OK (or 204 in some SDKs for specific operations).
253
Where is the EC2 instance metadata service (IMDS)?
http://169.254.169.254/latest/meta-data/ (use IMDSv2 where possible).
254
NAT instance vs NAT Gateway guidance
If you still use a NAT instance, disable source/destination checks; best practice is to use a managed NAT Gateway for availability and scale.
255
What do instances in a public subnet need for internet access?
A public IP (or Elastic IP), a default route to an IGW, and security group rules permitting outbound traffic.
256
Network ACLs vs Security Groups
NACLs are stateless, evaluated on both inbound and outbound; Security Groups are stateful and evaluated only on the relevant direction.
257
How many NACLs per subnet?
Each subnet can be associated with only one NACL at a time (though a NACL can associate with multiple subnets).
258
EBS vs Instance Store persistence
EBS volumes persist across instance stops; Instance Store is ephemeral and data is lost on stop/terminate.
259
Does making an AMI public replicate it globally?
No—AMIs are regional; copy the AMI to other regions to make it available there.
260
Route 53—why "53"?
DNS uses port 53.
261
What is Amazon QuickSight?
AWS's serverless BI service for interactive dashboards and visual analysis.
262
What is Amazon CloudWatch for?
Metrics, logs, alarms, and dashboards for AWS services and custom apps; use Logs Insights and metrics filters for analysis.
263
Kinesis family—three main services
Kinesis Data Streams (streaming), Kinesis Data Firehose (delivery/ETL), Kinesis Data Analytics (SQL/Flink processing).
264
What is Amazon EMR used for?
Managed Hadoop/Spark clusters for large‑scale batch and iterative analytics.
265
AWS Region vs Availability Zone—difference
A Region is a geographic area containing multiple AZs; an AZ is one or more discrete data centers within a Region.
266
Are subnets regional or zonal?
Subnets are scoped to a single Availability Zone.
267
Which languages have official AWS SDKs?
Java, JavaScript/TypeScript (Node.js and browser), Python (boto3), .NET, Go, PHP, Ruby, Kotlin; region/credentials are provided via configuration and the default provider chain.
268
How do I enable EBS encryption at rest?
Specify encryption at volume or snapshot creation (or set accountegion defaults); encryption uses KMS keys.
269
What do 2xx, 4xx, and 5xx HTTP codes indicate?
2xx: success; 4xx: client error (e.g., 404 Not Found); 5xx: server error.
270
Is Amazon SNS push‑ or pull‑based?
Push‑based; it can fan out to SQS, HTTP/S endpoints, email/SMS, and Lambda.
271
How do I fan out to multiple SQS queues?
Publish messages to an SNS topic and subscribe multiple SQS queues to that topic.
272
How does an EC2 instance use an IAM role?
Through the IAM instance profile; the instance retrieves temporary credentials from IMDS and the SDKs automatically refresh and use them.
273
CloudFormation template languages
JSON and YAML are both supported; YAML is often preferred for readability and comments.
274
What does Fn::GetAtt do in CloudFormation?
Returns the value of an attribute from a resource in the same template (e.g., LoadBalancer DNSName).
275
What does Fn::GetAZs return?
An array of Availability Zones for the specified region (not regions); helps avoid hard‑coding AZ names.
276
What happens on CloudFormation failure by default?
The stack rolls back and deletes resources created so far unless rollback is disabled.
277
Elastic Beanstalk pricing model
Elastic Beanstalk is free; you pay for the underlying resources it provisions (EC2, RDS, etc.).
278
Elastic Beanstalk supported platforms
Java, .NET, Node.js, Python, Ruby, Go, PHP, and Docker.
279
SWF—decider vs worker
The decider controls task coordination (ordering/concurrency/scheduling); workers poll SWF for tasks, process them, and return results. Step Functions is now preferred for most new workflows.
280
S3 pre‑signed URLs—use case
Grant time‑limited access to private S3 objects without making the bucket public or sharing long‑term credentials.
281
S3 bucket policies to require encryption
Use a bucket policy that denies s3:PutObject unless x‑amz‑server‑side‑encryption is present (or requires a specific KMS key).
282
S3 access points—why use them?
Simplify managing access for shared datasets with distinct network and policy controls per consumer/application.
283
VPC endpoints—why prefer them to NAT for AWS services?
Keep traffic private on the AWS network, reduce NAT data processing cost, and remove internet dependencies for S3/DynamoDB/API endpoints that support endpoints.
284
API Gateway usage plans vs auth
Usage plans and API keys are for throttling/quota and identifying callers—not authentication/authorization (use Cognito or IAM authorizers for auth).
285
What is an **event-driven architecture**?
An architecture where components communicate via events. Instead of direct calls, one component emits events (e.g., messages) that others consume, allowing loose coupling and asynchronous processing.
286
How do **microservices** differ from a monolithic architecture?
Microservices break an application into small, independent services that communicate over APIs, whereas a monolithic architecture is a single, unified codebase. Microservices offer better modularity and scalability, while monoliths can be simpler but less flexible.
287
What is the difference between **orchestration** and **choreography** in microservices?
Orchestration uses a central coordinator (like a workflow engine) to manage service interactions, whereas choreography has each service react to events and coordinate through decentralized event exchanges. Orchestration centralizes control; choreography is more distributed and decoupled.
288
What does the **fanout pattern** refer to in messaging systems?
Fanout is a messaging pattern where a single message is sent to multiple receivers. In AWS, this can be achieved by publishing to an SNS topic that delivers the message to multiple subscribers (such as SQS queues or Lambda functions), thereby 'fanning out' one event to many destinations.
289
What is **idempotency** and why is it important in cloud applications?
Idempotency is the property of an operation that can be applied multiple times without changing the result beyond the initial application. It's important for fault-tolerant applications, ensuring that retrying a failed request (due to timeouts or errors) doesn't cause unintended side effects (like duplicate processing).
290
What is the difference between a **stateful** and a **stateless** application?
A stateful application maintains data (state) across sessions or requests (often in memory or local storage), whereas a stateless application does not retain data between requests. Stateless applications treat each request independently, which makes them easier to scale horizontally and recover from failures.
291
What does it mean for components to be **tightly coupled** versus **loosely coupled**?
Tightly coupled components depend directly on each other's implementations or availability, so a change or failure in one often impacts the other. Loosely coupled components interact through well-defined interfaces or messaging, minimizing dependencies. Looser coupling leads to more resilient and flexible architectures, as components can be changed or replaced with minimal impact.
292
Give an example of designing for **loose coupling** in an AWS application.
Using an event queue or topic between services promotes loose coupling. For example, an order processing service can place messages onto an Amazon SQS queue or an SNS topic, and downstream services consume those messages. This way, services don't call each other directly and can operate independently.
293
What are **retries with exponential backoff and jitter**?
They are a fault tolerance strategy for calling services. If a request fails, the client retries it, waiting for increasingly longer intervals (exponential backoff) between retries, and adding a random delay (jitter) to avoid synchronized retries. This reduces load on the service and increases the chance of a successful retry.
294
What is a **dead-letter queue (DLQ)** and how is it used?
A dead-letter queue is a secondary queue to which messages are sent if they cannot be processed successfully by the primary consumer. For example, an AWS Lambda function subscribed to an SQS queue can send failed messages to an Amazon SQS DLQ after exceeding retry attempts, allowing developers to inspect or reprocess them later.
295
What is the difference between **synchronous** and **asynchronous** processing?
In synchronous processing, a caller waits for an operation to complete and typically receives a response immediately. In asynchronous processing, the caller initiates an operation and continues without waiting; the result is delivered later, e.g., via a callback or message. In AWS, a synchronous example is an API call that returns a result, whereas an asynchronous example is sending a message to a queue to be processed later.
296
Give an AWS example of a **synchronous** versus an **asynchronous** interaction.
Synchronous example: A client calls an API Gateway endpoint which invokes a Lambda function and returns the result immediately in the HTTP response. Asynchronous example: A client sends a message to an Amazon SQS queue; a Lambda function processes it sometime later, and the client is not blocked waiting for the result.
297
What is **AWS Lambda**?
AWS Lambda is a serverless compute service that lets you run code without provisioning or managing servers. You write your function code and Lambda executes it on-demand in response to events, scaling automatically and charging only for the compute time consumed.
298
What are the typical triggers (event sources) that can invoke an AWS Lambda function?
Many AWS services can trigger Lambda. Common triggers include Amazon API Gateway (HTTP requests), S3 (object uploads), DynamoDB (table updates via streams), Amazon SQS & SNS (messages), Amazon EventBridge (scheduled or event rules), and more. These event sources either push events to Lambda or are polled by Lambda via event source mappings.
299
What is an **event source mapping** in the context of AWS Lambda?
An event source mapping is a configuration that tells Lambda to poll a specific source (such as an SQS queue, Kinesis stream, or DynamoDB stream) and feed events to a Lambda function. It continuously reads new events from the source and invokes the Lambda with those events automatically.
300
How can AWS Lambda functions access resources in a private VPC (like a database)?
By configuring the Lambda function to connect to the VPC. You assign the Lambda to specific VPC subnets and security groups. Lambda then creates elastic network interfaces (ENIs) in that VPC. This allows it to communicate with resources in private subnets (e.g., RDS databases), though you may need a NAT gateway or VPC endpoints for the function to reach the internet or other AWS services.

161 more cards in OutLearn. Open the full deck

Study all 461 cards for free