1. What is the primary characteristic of serverless computing?
A) You manage virtual machines
B) No servers exist
C) Cloud provider manages infrastructure automatically
D) It only works with containers
Answer: C
2. Which service is an example of serverless?
A) Amazon EC2
B) AWS Lambda
C) Docker
D) Kubernetes
Answer: B
3. Containers package:
A) Only application code
B) Code + runtime + dependencies
C) Only OS
D) Only configuration files
Answer: B
4. Which tool is most commonly used to create containers?
A) Docker
B) Terraform
C) Ansible
D) Jenkins
Answer: A
5. Serverless pricing is typically based on:
A) VM uptime
B) Reserved capacity
C) Execution time and requests
D) Fixed monthly fee
Answer: C
6. Containers typically run on:
A) Managed functions
B) Virtual machines or orchestration platforms
C) Only physical servers
D) CDN networks
Answer: B
7. Which service is a container orchestration platform?
A) Kubernetes
B) AWS Lambda
C) Azure Functions
D) Google Cloud Functions
Answer: A
8. What is a common limitation of serverless?
A) Manual scaling
B) Cold start latency
C) Requires hardware setup
D) No monitoring tools
Answer: B
9. Containers are best suited for:
A) Long-running applications
B) Extremely short event-driven tasks only
C) Static HTML hosting
D) DNS management
Answer: A
10. Serverless functions are typically:
A) Event-driven
B) Always running
C) Stateful by default
D) Managed manually
Answer: A
11. Which requires patching and OS maintenance?
A) Serverless
B) Containers on self-managed VMs
C) CDN
D) DNS
Answer: B
12. Which model offers greater infrastructure control?
A) Serverless
B) Containers
C) Both equal
D) Neither
Answer: B
13. Which is ideal for microservices architecture?
A) Only serverless
B) Only containers
C) Both can support microservices
D) Neither
Answer: C
14. Serverless automatically scales:
A) Manually
B) Based on traffic/events
C) Only vertically
D) Once per day
Answer: B
15. Containers scale using:
A) Function triggers
B) Orchestration platforms
C) Manual scripts only
D) CDN
Answer: B
16. Which cloud provider offers Azure Functions?
A) Amazon Web Services
B) Microsoft
C) Google
D) IBM
Answer: B
17. Which is better for predictable steady workloads?
A) Serverless
B) Containers
C) CDN
D) DNS
Answer: B
18. Which is often more cost-effective for sporadic workloads?
A) Containers
B) Serverless
C) Dedicated servers
D) Colocation
Answer: B
19. What does FaaS stand for?
A) Function as a Service
B) File as a Service
C) Framework as a Service
D) Firewall as a Service
Answer: A
20. Containers use which isolation method?
A) Hypervisor only
B) OS-level virtualization
C) Physical isolation
D) CDN-based
Answer: B
21. Serverless architecture reduces:
A) Vendor dependency
B) Infrastructure management overhead
C) Code complexity
D) API calls
Answer: B
22. Which tool is commonly used to manage container clusters?
A) Kubernetes
B) Git
C) Nginx
D) MySQL
Answer: A
23. Serverless functions are usually:
A) Stateless
B) Stateful
C) Persistent
D) Hardware-bound
Answer: A
24. Which option gives faster startup for always-running apps?
A) Serverless (cold start)
B) Containers
C) DNS
D) CDN
Answer: B
25. Which architecture provides maximum abstraction from servers?
A) Bare metal
B) Virtual machines
C) Containers
D) Serverless
Answer: D
Conclusion
Both Serverless and Containers play major roles in modern DevOps and cloud-native architectures.
- Choose Serverless for event-driven, unpredictable workloads, and minimal infrastructure management.
- Choose Containers for long-running services, greater control, and complex microservices systems.
- Many organizations use both together in hybrid architectures.



