0
0
Spring Bootframework~20 mins

Cloud deployment overview (AWS, Azure) in Spring Boot - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Cloud Deployment Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding AWS Elastic Beanstalk Deployment

You deploy a Spring Boot application using AWS Elastic Beanstalk. What happens when you upload a new version of your application?

AElastic Beanstalk only stores the new version but does not deploy it automatically.
BElastic Beanstalk creates a new environment and deletes the old one immediately.
CElastic Beanstalk requires manual server restarts after deployment to apply changes.
DElastic Beanstalk updates the existing environment by deploying the new version with zero downtime using rolling updates.
Attempts:
2 left
💡 Hint

Think about how Elastic Beanstalk manages application updates to avoid downtime.

Architecture
intermediate
2:00remaining
Azure App Service Deployment Architecture

You want to deploy a Spring Boot app on Azure App Service. Which architecture best describes how Azure manages your app?

AAzure App Service runs your app on dedicated virtual machines that you manage directly.
BAzure App Service runs your app in a managed platform with automatic scaling and patching, abstracting the underlying infrastructure.
CAzure App Service requires you to manually configure load balancers and virtual networks for your app.
DAzure App Service only supports containerized apps, so you must use Docker for deployment.
Attempts:
2 left
💡 Hint

Consider how Azure App Service simplifies app hosting by managing infrastructure for you.

security
advanced
2:00remaining
Securing Spring Boot App on AWS with IAM Roles

You deploy a Spring Boot app on AWS EC2 instances. You want the app to access S3 buckets securely without embedding credentials. Which is the best practice?

AStore AWS access keys in application.properties and encrypt the file.
BUse environment variables to store AWS credentials on each EC2 instance.
CAssign an IAM role to the EC2 instances with permissions to access the S3 buckets.
DHardcode AWS credentials in the Spring Boot source code.
Attempts:
2 left
💡 Hint

Think about AWS best practices for granting permissions to EC2 instances.

service_behavior
advanced
2:00remaining
Azure App Service Auto-Scaling Behavior

Your Spring Boot app is deployed on Azure App Service with auto-scaling enabled based on CPU usage. What happens when CPU usage exceeds the threshold?

AAzure App Service automatically adds more instances to handle the load.
BAzure App Service restarts the existing instances to reduce CPU usage.
CAzure App Service sends an alert but does not change the number of instances.
DAzure App Service shuts down the app to prevent overload.
Attempts:
2 left
💡 Hint

Consider how auto-scaling helps maintain app performance under load.

Best Practice
expert
3:00remaining
Choosing Deployment Strategy for Zero Downtime on AWS

You want to deploy a new version of your Spring Boot app on AWS with zero downtime and the ability to quickly roll back if needed. Which deployment strategy should you choose?

ABlue/Green deployment using Elastic Beanstalk environments.
BIn-place deployment by updating the existing instances directly.
CManual deployment by stopping the app, updating, then restarting.
DDeploy to a single instance and switch traffic manually.
Attempts:
2 left
💡 Hint

Think about strategies that allow running two environments simultaneously.