AWS MCQ questions
Take a short practice test with instant feedback, then revise every question with its answer and the reason behind it.
- Questions
- 53
- From lessons
- 33
- Your last test
- —
Practice test
What does an Auto Scaling group do?
All questions with answers
Which service provides resizable virtual servers?
Show answer
Answer: B. EC2
Elastic Compute Cloud.
Which service stores objects in buckets?
Show answer
Answer: B. S3
Simple Storage Service.
Which service manages users, roles and permissions?
Show answer
Answer: B. IAM
Identity and Access Management.
Which account should not be used for daily work?
Show answer
Answer: B. The root user
Protect root with MFA and use it only for account-level tasks.
Which service runs code without servers, billed per invocation?
Show answer
Answer: B. Lambda
Lambda scales automatically per request.
What is Lambda’s maximum execution time?
Show answer
Answer: B. 15 minutes
Longer work belongs in ECS, Batch or Step Functions.
Which managed NoSQL database offers single-digit millisecond latency?
Show answer
Answer: B. DynamoDB
DynamoDB is a key–value and document database.
Which service is AWS’s DNS?
Show answer
Answer: B. Route 53
Route 53 also does health checks and routing policies.
Which acts as a stateful firewall for EC2 instances?
Show answer
Answer: B. Security group
Security groups are stateful; NACLs are stateless and apply to subnets.
What gives instances in a private subnet outbound internet access?
Show answer
Answer: B. A NAT gateway
The NAT gateway sits in a public subnet.
Which load balancer routes by URL path and host?
Show answer
Answer: B. Application Load Balancer
ALB works at layer 7 with HTTP rules.
What does an Auto Scaling group do?
Show answer
Answer: B. Keeps a desired number of EC2 instances and scales on policies
It replaces unhealthy instances and scales with demand.
Which service stores Docker images?
Show answer
Answer: B. ECR
Elastic Container Registry.
Which service builds code and runs tests from buildspec.yml?
Show answer
Answer: B. CodeBuild
CodePipeline orchestrates stages; CodeBuild does the building.
Which service provisions infrastructure from templates?
Show answer
Answer: A. CloudFormation
CloudFormation creates stacks from YAML or JSON templates.
Which service records API calls made in your account?
Show answer
Answer: B. CloudTrail
CloudTrail is an audit log of who did what.
What is wrong with this bucket policy?
JSON Illustrative { "Effect": "Allow", "Principal": "*", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::shop-uploads/*" }Show answer
Answer: B. It makes every object in the bucket publicly readable
Keep buckets private and serve through CloudFront with origin access control.
Which pricing option gives the biggest discount for interruptible workloads?
Show answer
Answer: C. Spot Instances
Spot can be reclaimed with two minutes’ notice.
Which tool shows and forecasts your AWS spending?
Show answer
Answer: A. Cost Explorer
Combine it with AWS Budgets for alerts.
Which feature lets CloudFront read from a private S3 bucket?
Show answer
Answer: B. Origin Access Control
OAC signs requests from CloudFront to S3.
Which command shows the identity your CLI is using?
Show answer
Answer: B. aws sts get-caller-identity
STS GetCallerIdentity returns the account, user/role and ARN.
From the lesson: Introduction to AWSYou should use the root user for everyday work.
Show answer
Answer: B. False
Root should be protected with MFA and used only for a few account-level tasks.
From the lesson: Introduction to AWSWhat is an Availability Zone?
Show answer
Answer: B. An isolated data centre location within a Region
AZs are isolated locations inside a Region.
From the lesson: AWS Global InfrastructureIf one policy allows s3:DeleteObject and another explicitly denies it, what happens?
Show answer
How should a Lambda function get permission to call S3?
Show answer
Answer: B. An execution role
Lambda assumes its execution role and receives temporary credentials.
From the lesson: IAM