Which AWS service runs code without provisioning servers?
Lambda is a serverless compute service that runs code in response to events. EC2 and RDS require server management, and CodeCommit is a git repository service.
ข้อ 2
Which AWS service provides object storage?
S3 is object storage for files, images, backups, and static content. EBS is block storage for EC2, RDS is relational, and ElastiCache is in-memory caching.
ข้อ 3
Which AWS service is a NoSQL key-value and document database?
DynamoDB is a managed NoSQL database with single-digit millisecond performance. RDS, Aurora, and Redshift are relational or warehouse services.
ข้อ 4
Which AWS service provides a managed relational database?
RDS manages relational databases such as MySQL, PostgreSQL, and SQL Server. S3 is object storage, DynamoDB is NoSQL, and SQS is a queue.
ข้อ 5
What is an EC2 instance?
An EC2 instance is a virtual machine with configurable CPU, memory, and storage. Lambda is serverless, DynamoDB is a database, and SQS is a queue.
ข้อ 6
Which AWS service creates and manages APIs for applications?
API Gateway creates REST and HTTP APIs, often fronting Lambda. S3 stores objects, CodeBuild builds code, and Route 53 provides DNS.
ข้อ 7
Which AWS service provides message queuing?
SQS is a message queue for decoupling components. SNS is pub/sub, CloudFront is a CDN, and Step Functions orchestrates workflows.
ข้อ 8
Which AWS service provides publish/subscribe messaging?
SNS publishes messages to subscribers, supporting fan-out. SQS is a queue, DynamoDB is a database, and Lambda is compute.
ข้อ 9
Which AWS service is a content delivery network?
CloudFront caches content at edge locations. Route 53 is DNS, S3 is storage, and WAF is a web firewall.
ข้อ 10
What is a Lambda layer?
Lambda layers package libraries and dependencies that can be shared across functions. Triggers invoke functions, reserved concurrency controls capacity, and alarms monitor metrics.
ข้อ 11
Which Lambda setting can reduce cold starts?
Provisioned concurrency pre-initializes environments so invocations avoid cold starts. Timeouts and memory do not directly prevent cold starts, and triggers cause them.
ข้อ 12
What does API Gateway do with Lambda?
API Gateway creates HTTP endpoints that integrate with Lambda functions. It does not store logs, compile code, or replace Lambda.
ข้อ 13
Which API Gateway type is simpler and less expensive for basic APIs?
HTTP APIs are simpler and cheaper than REST APIs for most use cases. REST APIs offer more features, WebSocket APIs handle persistent connections, and private APIs are VPC-only.
ข้อ 14
What does DynamoDB TTL do?
TTL deletes expired items automatically, which is useful for sessions and logs. It is not encryption, backup, or indexing.
ข้อ 15
What is an event source mapping for Lambda?
Event source mappings poll sources such as DynamoDB Streams, Kinesis, or SQS and invoke Lambda with records. They are not dashboards, VPC settings, or deployment policies.
ข้อ 16
Which AWS service orchestrates multi-step workflows?
Step Functions coordinates steps in a workflow with state machines. SQS queues messages, SNS publishes, and API Gateway exposes APIs.
ข้อ 17
What is provisioned concurrency?
Provisioned concurrency initializes environments ahead of time to reduce latency. It is not an invocation limit, timeout, or log level.
ข้อ 18
Which AWS service provides managed git repositories?
CodeBuild builds and tests source code. CodeCommit stores source, CodePipeline automates release steps, and ECR stores container images.
ข้อ 20
Which AWS service deploys applications to EC2, Lambda, and on-premises?
CodeDeploy automates application deployments. CodeBuild builds, CodeCommit stores code, and CloudFront is a CDN.
ข้อ 21
Which AWS service automates a release pipeline?
CodePipeline orchestrates build, test, and deploy stages. CodeCommit and CodeBuild are individual services, and X-Ray traces requests.
ข้อ 22
What is a buildspec file?
A buildspec defines phases such as install, pre_build, build, and post_build for CodeBuild. Deployment configs and templates are different artifacts.
ข้อ 23
What is an appspec file?
An appspec defines how CodeDeploy handles deployment, hooks, and file locations. It is not a repository, layer, or log.
ข้อ 24
What is a blue/green deployment?
Blue/green runs two environments and shifts traffic, enabling quick rollback. Rolling replaces instances gradually, and all-at-once replaces everything at once.
ข้อ 25
What is a rolling deployment?
Rolling deployment updates instances in batches to reduce risk. Blue/green switches environments, and canary routes a small percentage to the new version.
ข้อ 26
What is a canary deployment?
A canary releases a small percentage of traffic to the new version and increases it over time. All-at-once replaces everything, and blue/green switches environments.
ข้อ 27
Which AWS service provides a PaaS platform for web applications?
Elastic Beanstalk deploys and manages web apps without managing infrastructure. EC2 is IaaS, Lambda is serverless, and S3 is storage.
ข้อ 28
Which AWS service manages infrastructure as code?
CloudFormation provisions infrastructure from templates. CodePipeline automates releases, CloudWatch monitors, and X-Ray traces.
ข้อ 29
What does IAM stand for?
IAM is Identity and Access Management, controlling users, roles, and permissions. The other expansions are not official.
ข้อ 30
What is an IAM role?
An IAM role grants permissions through temporary credentials, often used by services and applications. It is not a password, key, or security group.
ข้อ 31
What is an IAM policy?
An IAM policy is a JSON document that allows or denies actions. It is not a table, layer, or build file.
ข้อ 32
What is least privilege?
Least privilege grants the minimum permissions required. It reduces security risk compared with broad access.
ข้อ 33
Which AWS service manages encryption keys?
KMS creates and manages encryption keys. WAF filters web traffic, Cognito handles identity, and Shield provides DDoS protection.
ข้อ 34
Which AWS service stores secrets such as database passwords?
Secrets Manager securely stores and rotates secrets. S3 is object storage, CodeCommit is git, and DynamoDB is a database.
ข้อ 35
Which AWS service provides user sign-up and sign-in for applications?
Cognito provides authentication for app users. IAM is for AWS identities, KMS is keys, and CloudFront is a CDN.
ข้อ 36
Which AWS service protects web applications from common attacks?
WAF filters web traffic for attacks such as SQL injection. KMS manages keys, SQS queues messages, and CodeBuild builds code.
ข้อ 37
What is a presigned URL?
A presigned URL grants time-limited access to S3 objects or other resources. It is not permanent, DNS, or firewall.
ข้อ 38
What is encryption at rest?
Encryption at rest protects stored data. Encryption in transit protects data during transfer, which is a separate control.
ข้อ 39
What is a resource-based policy?
Resource-based policies such as S3 bucket policies grant access to a resource. They are not passwords, security rules, or alarms.
ข้อ 40
What does an S3 lifecycle policy do?
Lifecycle policies move objects between tiers or delete them over time. Encryption, versioning, and replication are separate features.
ข้อ 41
What is S3 versioning?
Versioning preserves previous versions of objects, protecting against overwrites and deletes. Replication, encryption, and caching are separate.
ข้อ 42
What is a DynamoDB secondary index?
Secondary indexes provide alternate query patterns. Backups, streams, and partitions are different features.
ข้อ 43
What is a DynamoDB stream?
DynamoDB Streams captures item-level changes and can trigger Lambda. It is not a backup, index, or global table.
ข้อ 44
Which AWS service provides in-memory caching?
ElastiCache provides Redis or Memcached caching. S3 is object storage, RDS is relational, and DynamoDB is NoSQL.
ข้อ 45
What is an RDS read replica?
Read replicas offload read traffic from the primary database. Backups restore data, Multi-AZ provides failover, and migrations move data.
ข้อ 46
What is Amazon Aurora?
Aurora is a relational database compatible with MySQL and PostgreSQL. DynamoDB is NoSQL, S3 is object storage, and Redshift is a warehouse.
ข้อ 47
Which S3 feature creates time-limited access URLs?
Presigned URLs provide temporary access. Lifecycle policies manage tiers, versioning keeps versions, and transfer acceleration speeds uploads.
ข้อ 48
Which AWS storage class is for long-term archives?
Glacier is for low-cost archival storage. Standard is hot storage, Intelligent-Tiering moves data automatically, and One Zone-IA is infrequent single-zone storage.
ข้อ 49
Which AWS service provides shared file storage for EC2 instances?
EFS is a shared NFS file system. EBS is block storage attached to one instance, S3 is object storage, and Glacier is archive.
ข้อ 50
What is an SNS topic?
An SNS topic is a pub/sub channel. SQS is a queue, Lambda is compute, and CloudWatch alarms trigger notifications.
ข้อ 51
Which AWS service collects metrics and logs from applications?
CloudWatch collects metrics, logs, and alarms. X-Ray traces requests, CloudTrail records API activity, and Config tracks configuration.
ข้อ 52
Which AWS service stores application logs?
CloudWatch Logs stores and queries log data. SQS queues, DynamoDB stores NoSQL data, and CodeBuild builds code.
ข้อ 53
What do CloudWatch alarms do?
CloudWatch alarms monitor metrics and trigger notifications or actions. They do not compile code, store git, or route DNS.
ข้อ 54
Which AWS service traces requests through applications?
X-Ray analyzes and traces requests across services. CloudWatch monitors metrics, CloudTrail audits API calls, and Trusted Advisor gives best-practice checks.
ข้อ 55
Which AWS service records API activity for auditing?
CloudTrail records API calls for auditing. X-Ray traces, CloudWatch monitors, and WAF filters traffic.
ข้อ 56
Which AWS service provides best-practice recommendations?
Trusted Advisor reviews accounts and recommends improvements for cost, security, and reliability. CloudTrail audits, CloudWatch monitors, and CodePipeline deploys.
ข้อ 57
Which of the following are serverless AWS services? Select all that apply.
Lambda, API Gateway, DynamoDB, and S3 are all serverless services because they do not require server management.
ข้อ 58
Which of the following are deployment strategies? Select all that apply.
Blue/green, rolling, canary, and all-at-once are deployment strategies. Each balances risk and speed differently.
ข้อ 59
Lambda functions always need to run inside a VPC.
Lambda runs outside a VPC by default. You can configure VPC access when functions need private resources, but it is not required.
ข้อ 60
Match each AWS service to its purpose.
SQS queues messages, SNS publishes notifications, CloudWatch monitors metrics and logs, and X-Ray traces requests.