0
0
Terraformcloud~20 mins

Zero-downtime deployment pattern in Terraform - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Zero-Downtime Deployment Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Architecture
intermediate
2:00remaining
Identify the key component for zero-downtime deployment

In a zero-downtime deployment pattern using Terraform, which component is essential to ensure new versions of an application are deployed without interrupting user access?

AA load balancer that shifts traffic gradually between old and new instances
BA single server that is updated in place with the new version
CA database migration script that runs after deployment
DA manual switch to turn off the old version before starting the new one
Attempts:
2 left
💡 Hint

Think about how traffic can be managed to avoid downtime during deployment.

Configuration
intermediate
2:00remaining
Terraform resource for blue-green deployment

Which Terraform resource configuration best supports a blue-green deployment to achieve zero downtime?

ATwo separate sets of instances with a shared load balancer switching between them
BA single autoscaling group with rolling update enabled
COne instance updated directly with the new version
DA database resource with version control enabled
Attempts:
2 left
💡 Hint

Blue-green deployment involves running two environments simultaneously.

service_behavior
advanced
2:00remaining
Effect of deployment strategy on user requests

During a zero-downtime deployment using a canary release strategy, what happens to user requests?

AAll user requests are immediately routed to the new version
BA small percentage of user requests are routed to the new version while the rest go to the old version
CUser requests are queued until the deployment finishes
DUser requests are dropped during the deployment
Attempts:
2 left
💡 Hint

Canary releases test new versions with a subset of users first.

security
advanced
2:00remaining
Security consideration in zero-downtime deployments

What is a critical security consideration when implementing zero-downtime deployments with multiple active environments?

AUsing the same database credentials for both environments without rotation
BDisabling all firewalls during deployment to avoid blocking traffic
CAllowing unrestricted SSH access to all instances during deployment
DEnsuring both old and new environments have consistent security group rules and access controls
Attempts:
2 left
💡 Hint

Think about how security policies apply when two environments run simultaneously.

Best Practice
expert
2:00remaining
Terraform state management in zero-downtime deployments

Which Terraform state management practice is best to support zero-downtime deployments in a team environment?

AManually merge state files after each deployment
BStore state files locally on each developer's machine
CUse remote state storage with locking to prevent concurrent changes
DDisable state locking to speed up deployments
Attempts:
2 left
💡 Hint

Consider how to avoid conflicts when multiple people deploy infrastructure.