wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

AWS & DevOps Quiz

Total questions: 40

Worksheet time: 30mins

Name
Class
Date
1.

A production application experiences sudden spikes in database connections during deployments, causing connection exhaustion. Which AWS service best mitigates this without changing application code?

a)

AWS DMS

b)

Amazon RDS Proxy

c)

Amazon Aurora Serverless

d)

Amazon ElastiCache

2.

A Kubernetes cluster must guarantee that at least 3 replicas of a critical service are always running during node failures or upgrades. Which feature enforces this?

a)

ReplicaSet

b)

HorizontalPodAutoscaler

c)

PodDisruptionBudget

d)

NodeAffinity

3.

Terraform plans show unexpected resource recreation during minor configuration updates. What is the MOST common cause?

a)

Provider version mismatch

b)

Remote backend failure

c)

Immutable resource attributes changed

d)

State file corruption

4.

A Lambda function triggered by SQS is processing messages too slowly and the queue backlog keeps growing. What is the BEST first action?

a)

Enable DLQ

b)

Increase Lambda reserved concurrency

c)

Increase SQS visibility timeout

d)

Increase Lambda timeout

5.

A company wants to restrict developers from creating public S3 buckets across all AWS accounts. Which control is the MOST effective?

a)

AWS Config rules

b)

IAM permission boundaries

c)

Service Control Policy (SCP)

d)

S3 bucket policies

6.

During a Kubernetes rolling deployment, old pods terminate before new pods are ready, causing downtime. Which Deployment setting prevents this?

a)

terminationGracePeriodSeconds

b)

revisionHistoryLimit

c)

maxSurge = 0

d)

maxUnavailable = 0

7.

A Docker image contains secrets that accidentally leaked into the image layers. What is the BEST remediation?

a)

Delete the image from the registry

b)

Squash the image layers

c)

Rotate the secrets and rebuild with multi-stage builds

d)

Add .dockerignore entries

8.

A multi-region application requires automatic failover with DNS routing based on health checks. Which Route 53 policy is most appropriate?

a)

Weighted routing

b)

Failover routing

c)

Geolocation routing

d)

Latency routing

9.

An EKS cluster shows nodes scaling correctly, but pods remain pending even after new nodes join. What is the MOST likely reason?

a)

Pod node affinity constraints

b)

CNI plugin failure

c)

Node security groups block traffic

d)

Cluster Autoscaler misconfiguration

10.

A Terraform team wants to prevent accidental deletion of critical resources. Which feature provides this protection?

a)

Backend locking

b)

Lifecycle ignore_changes

c)

prevent_destroy lifecycle rule

d)

State encryption

11.

A web application requires sub-second global failover for HTTP traffic. Which AWS solution provides the FASTEST failover?

a)

Route 53 health checks

b)

AWS Global Accelerator

c)

Application Load Balancer multi-AZ

d)

CloudFront origin failover

12.

A Jenkins pipeline occasionally deploys outdated artifacts due to race conditions between builds. What is the MOST effective fix?

a)

Increase pipeline timeout

b)

Run builds sequentially

c)

Use immutable artifact versioning

d)

Add build retries

13.

A Kubernetes service must expose HTTPS externally and route traffic to multiple backend services by path. Which resource is required?

a)

Ingress with Ingress Controller

b)

NetworkPolicy

c)

Service (LoadBalancer)

d)

EndpointSlice

14.

An application writes logs locally on EC2 instances and disks frequently fill up. What is the BEST long-term solution?

a)

Implement log rotation only

b)

Disable debug logging

c)

Increase EBS volume size

d)

Stream logs to CloudWatch Logs

15.

A company wants to enforce encryption for all newly created EBS volumes automatically. Which AWS mechanism ensures this at scale?

a)

CloudTrail monitoring

b)

AWS Config remediation

c)

IAM policy deny rules

d)

Account-level EBS encryption by default

16.

A containerized workload needs guaranteed CPU but flexible memory usage. Which Kubernetes configuration is appropriate?

a)

Set CPU requests and no memory limits

b)

Set both requests and limits equal

c)

Set CPU requests and memory limits

d)

Set only CPU limits

17.

A Step Functions workflow must retry a failed Lambda task with exponential backoff. Where is this behavior configured?

a)

Lambda function configuration

b)

Step Functions state definition

c)

EventBridge rule

d)

IAM retry policy

18.

An AWS account shows unexpected API calls creating EC2 instances at night. Which service should be checked FIRST?

a)

AWS CloudTrail

b)

GuardDuty

c)

AWS Config

d)

CloudWatch Logs

19.

A Kubernetes cluster needs to restrict pods from running as root users. Which feature enforces this?

a)

RBAC

b)

Pod Security Admission

c)

NetworkPolicy

d)

ResourceQuota

20.

A Terraform module must output a value for use by another root module. Which construct is required?

a)

local

b)

output

c)

data

d)

variable

21.

A CloudFront distribution must block traffic from specific countries. Which feature should be used?

a)

AWS Shield

b)

Security Groups

c)

Route 53 routing

d)

Geo restriction

22.

A Kubernetes pod frequently restarts without crashing. Logs show readiness probe failures. What is happening?

a)

Pod is being evicted

b)

Liveness probe is failing

c)

Traffic is removed but pod continues restarting

d)

Kubelet restarts container on readiness failure

23.

An Auto Scaling Group must replace unhealthy instances automatically. Which feature handles this?

a)

Health checks with ELB integration

b)

Instance refresh

c)

Capacity rebalance

d)

Scheduled scaling

24.

A company wants to encrypt all data in transit between microservices inside EKS. Which approach is MOST appropriate?

a)

Implement a service mesh with mTLS

b)

Use HTTPS at the application layer only

c)

Use Security Groups between pods

d)

Enable VPC Flow Logs

25.

A Lambda function occasionally times out when accessing RDS in a VPC. What is the MOST common root cause?

a)

Lambda memory too low

b)

Missing IAM permissions

c)

Exhausted RDS connections

d)

No NAT Gateway for outbound access

26.

A team wants all infrastructure changes reviewed before execution in Terraform. Which workflow enforces this?

a)

terraform import

b)

terraform plan + manual approval

c)

terraform fmt

d)

terraform refresh

27.

An application requires exactly-once message processing semantics. Which AWS service is BEST suited?

a)

SQS Standard

b)

EventBridge

c)

SNS

d)

SQS FIFO

28.

A Kubernetes node is under memory pressure and starts evicting pods. Which pods are evicted FIRST?

a)

Burstable pods

b)

System pods

c)

BestEffort pods

d)

Guaranteed QoS pods

29.

A CI/CD pipeline must deploy the same artifact to dev, staging, and prod. What is the BEST practice?

a)

Use environment-specific builds

b)

Promote the same immutable artifact

c)

Tag artifact differently per stage

d)

Rebuild artifact per environment

30.

A CloudFormation template must create resources only if a parameter is set to true. Which feature supports this?

a)

Outputs

b)

Conditions

c)

Mappings

d)

Transform

31.

A Kubernetes cluster needs to limit total CPU usage per namespace. Which resource enforces this?

a)

HPA

b)

ResourceQuota

c)

PodDisruptionBudget

d)

LimitRange

32.

An EC2 instance should never be terminated accidentally by automation. Which protection should be enabled?

a)

Stop protection

b)

Termination protection

c)

Instance lock

d)

Deletion lifecycle rule

33.

A Lambda function is throttled even though concurrency limits are high. What is the MOST likely cause?

a)

Downstream service throttling

b)

Memory exhaustion

c)

Reserved concurrency too low

d)

Timeout misconfiguration

34.

A container image must be signed and verified before deployment. Which tool or feature supports this?

a)

AWS Inspector

b)

Docker Content Trust / Notary

c)

Clair

d)

Trivy

35.

A Kubernetes service must route traffic only to healthy pods. Which mechanism ensures this?

a)

Readiness probes

b)

HPA

c)

ReplicaSet

d)

Liveness probes

36.

A company wants centralized logging across hundreds of AWS accounts. Which architecture is MOST scalable?

a)

Central logging account with cross-account log subscriptions

b)

Export logs manually

c)

Use CloudWatch per account only

d)

Each account stores logs locally

37.

A Terraform state file becomes corrupted. What is the SAFEST recovery method?

a)

Rebuild infrastructure manually

b)

Delete and re-apply

c)

Restore from remote backend versioning

d)

Import all resources again

38.

A Kubernetes Deployment must ensure new pods start before old ones stop. Which strategy achieves this?

a)

RollingUpdate with maxSurge > 0

b)

Canary

c)

Recreate

d)

Blue/Green

39.

An API experiences sudden traffic surges and must throttle abusive clients automatically. Which AWS solution is MOST appropriate?

a)

AWS Shield Advanced

b)

API Gateway usage plans and throttling

c)

CloudFront caching

d)

Application Load Balancer

40.

A DevOps team wants every infrastructure change recorded, auditable, and reversible. Which combination BEST satisfies this?

a)

Manual provisioning + CloudTrail

b)

CloudFormation only

c)

Terraform + Git version control

d)

Ansible playbooks only