0
0
AWScloud~20 mins

Serverless vs container decision in AWS - Practice Questions

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Serverless vs Container Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Choosing between serverless and containers for a bursty workload

You have a web application with unpredictable traffic spikes that last only a few minutes. Which deployment option is best to handle this efficiently?

AUse serverless functions that automatically scale with demand and charge per execution.
BUse containers on EC2 instances with fixed capacity to handle peak load.
CUse containers on a single large EC2 instance to simplify management.
DUse serverless functions but limit concurrency to avoid scaling.
Attempts:
2 left
💡 Hint

Think about cost and automatic scaling for short bursts.

Architecture
intermediate
2:00remaining
Designing a microservices app with mixed compute needs

You are designing a microservices app where some services need long-running processes and others are event-driven and short-lived. Which architecture fits best?

AUse containers for long-running services and serverless for short-lived event-driven ones.
BDeploy all services as containers to unify deployment.
CDeploy all services as serverless functions for simplicity.
DUse serverless for long-running services and containers for short-lived ones.
Attempts:
2 left
💡 Hint

Consider which compute model suits long-running versus short-lived tasks.

security
advanced
2:00remaining
Security considerations for serverless vs containers

Which security concern is more critical when using containers compared to serverless functions?

AHandling automatic scaling to prevent denial of service.
BEnsuring function execution time limits are not exceeded.
CManaging the underlying OS patching and vulnerabilities.
DConfiguring event triggers securely.
Attempts:
2 left
💡 Hint

Think about who manages the OS in each model.

service_behavior
advanced
2:00remaining
Cold start impact on serverless functions

What is the main impact of cold starts in serverless functions on user experience?

AFailure to execute the function on first request.
BLonger initial response time when a function is invoked after inactivity.
CPermanent downtime until function is redeployed.
DIncreased cost due to longer execution time.
Attempts:
2 left
💡 Hint

Consider what happens when a function is called after not being used for a while.

Best Practice
expert
2:00remaining
Optimizing cost and performance in hybrid serverless-container apps

You run a hybrid app with containers for core services and serverless for auxiliary tasks. Which practice best optimizes cost and performance?

AKeep containers running at full capacity 24/7 and use serverless only for peak loads.
BUse serverless for all tasks to avoid managing containers.
CConvert all container services to serverless to unify billing.
DScale containers dynamically based on load and use serverless for unpredictable, short tasks.
Attempts:
2 left
💡 Hint

Think about scaling and cost efficiency for different workload types.