wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AOS_TEMA3_EC3_2024

Total questions: 45

Worksheet time: 4hrs 45mins

Name
Class
Date
1.
A developer is building a microservices-based application using Amazon EC2 instances. The application uses multiple APIs and requires low-latency communication between the microservices hosted in different EC2 instances. Which option should the developer implement to optimize performance?
a)
Use an Application Load Balancer to route traffic between the services.
b)
Use AWS Lambda to replace EC2 instances for inter-service communication.
c)
Use an Auto Scaling group to ensure scalability of the services.
d)
Prioritize the scalability within the availability zone.
2.
An organization wants to host a legacy application on Amazon EC2 instance. The application requires persistent storage for its stateful components. The application needs high availability, data durability, and low-latency disk performance. What should the Solutions Architect recommend?
a)
Use Amazon EBS General Purpose SSD (gp3) volumes.
b)
Use Amazon EC2 instance store volumes.
c)
Use Amazon S3 for persistent storage.
d)
Use Amazon EFS for application data.
3.
A DevOps engineer is managing an EC2 Auto Scaling group hosting a CI/CD pipeline. The pipeline occasionally experiences delays because of inconsistent performance during scaling activities. How can the engineer improve the consistency of the environment during scale-in and scale-out events?
a)
Use Spot Instances in the Auto Scaling group for cost efficiency.
b)
Configure lifecycle hooks to run custom scripts during instance launch and termination.
c)
Use Reserved Instances for the Auto Scaling group to stabilize capacity.
d)
Enable instance refresh for the Auto Scaling group.
4.
A developer is managing a web application hosted on Amazon EC2 instances. The application experiences unpredictable traffic spikes. The developer needs to ensure the application can handle high traffic while minimizing costs. Which solution is most appropriate?
a)
Manually monitor traffic and launch new EC2 instances as needed.
b)
Use an Auto Scaling group to automatically adjust the number of EC2 instances based on demand.
c)
Deploy the application using Amazon S3 for hosting.
d)
Use Amazon EC2 Spot Instances for all traffic demands.
5.
A solutions architect is designing an application hosted on Amazon EC2 instances. The application must be highly available and resilient to regional failures. What design should the solutions architect implement?
a)
Deploy EC2 instances in a single Availability Zone and use an Application Load Balancer.
b)
Deploy EC2 instances across multiple Availability Zones within a single Region and use an Application Load Balancer.
c)
Deploy EC2 instances in multiple Regions without load balancing.
d)
Deploy EC2 instances in a single Region and use Amazon CloudFront to distribute traffic.
6.
A DevOps engineer is tasked with implementing a continuous deployment pipeline for a web application running on Amazon EC2 instances. The pipeline must ensure that infrastructure is immutable during deployments. What solution should the engineer use?
a)
Perform in-place updates on EC2 instances using AWS CodeDeploy.
b)
Use AWS CloudFormation to deploy new EC2 instances and terminate old instances.
c)
Deploy new application versions to the same EC2 instances using Amazon Elastic Beanstalk.
d)
Manually create and test new EC2 instances for every deployment.
7.
Which method should the developer use to provide secure access to the S3 bucket from the EC2 instances?
a)
Store the credentials in environment variables on the EC2 instances.
b)
Use IAM roles with appropriate permissions and attach them to the EC2 instances.
c)
Embed the credentials directly in the application code.
d)
Use AWS Secrets Manager to store and retrieve credentials.
8.
A solutions architect is designing a scalable web application that will run on Amazon EC2 instances behind an Elastic Load Balancer (ELB). The application must handle unpredictable traffic spikes and be High Available. Which architecture will best meet these requirements?
a)
Use a single large EC2 instance behind an ELB.
b)
Use multiple smaller EC2 instances behind an ELB with Auto Scaling with a minimum of 2 instances.
c)
Use a single large EC2 instance with Auto Scaling.
d)
Use multiple smaller EC2 instances without an ELB.
9.
A DevOps engineer needs to deploy a new version of an application running on Amazon EC2 instances with zero downtime. The application is behind an Application Load Balancer (ALB). Which deployment strategy should be used to achieve this?
a)
Blue/Green deployment using separate environments
b)
In-place update of all EC2 instances.
c)
Manual update of each instance one at a time.
d)
Rolling update without any load balancer.
10.
A DevOps engineer is tasked with implementing a CI/CD pipeline for an application running on Amazon EC2 instances. The pipeline should automatically deploy new application versions to the EC2 instances whenever changes are made to the code repository. Which combination of services should the engineer use to achieve this?
a)
AWS CodeCommit, AWS CodeBuild, and AWS CodeDeploy.
b)
AWS CodePipeline, AWS Lambda, and Amazon S3.
c)
AWS CodeBuild, AWS CodePipeline, and Amazon CloudWatch.
d)
AWS CodeDeploy, AWS CloudFormation, and Amazon EC2.
11.

A solutions architect is designing a multi-tier application hosted on Amazon EC2 instances. To ensure high availability, the application must automatically recover from failures in a single AZ. Which combination of services should the architect use?

a)
Auto Scaling groups with instances distributed across multiple AZs and an Application Load Balancer (ALB).
b)
Auto Scaling groups with instances distributed across multiple AZs and a Classic Load Balancer.
c)
EC2 instances with Elastic IPs and backups stored in Amazon S3.
d)
EC2 instances with Auto Scaling groups in a single AZ and an Elastic Load Balancer.
12.
An application running on Amazon EC2 instances requires high throughput and low-latency storage for temporary data processing. The data does not need to persist beyond the lifecycle of the instance. What is the best storage option?
a)
Amazon EBS
b)
Amazon S3
c)
Amazon EC2 instance store
d)
Amazon EFS
13.
A web application running on Amazon EC2 instances behind an Application Load Balancer has users reporting high latency from distant regions. Which service should be implemented to improve global performance?
a)
AWS Global Accelerator with the Application Load Balancer as a target.
b)
Amazon CloudFront with the ALB as the origin.
c)
Amazon Route 53 with a geolocation routing policy.
d)
Amazon S3 Transfer Acceleration to deliver content faster.
14.
You are configuring an application where Amazon CloudFront is used to deliver content from EC2 instances behind an Elastic Load Balancer. How can you restrict users from directly accessing the backend through the ELB?
a)
Configure signed URLs or signed cookies for the CloudFront distribution.
b)
Use AWS WAF to block direct requests to the ELB.
c)
Restrict the ELB security group to only allow traffic from CloudFront’s IP ranges.
d)
Implement a VPC endpoint for the ELB and restrict public access.
15.
A distributed database running on multiple Amazon EC2 instances requires low-latency block storage for replicated data. In case of an instance failure, the data should remain available without manual intervention. What storage solution should the architect choose?
a)
Amazon EBS with Multi-Attach enabled.
b)
Amazon EFS with standard throughput mode.
c)
Amazon EC2 instance store for high performance.
d)
Amazon S3 with versioning enabled.
16.
You have a critical application running on an EC2 instance that needs to be available 24/7 with minimal downtime. Which of the following strategies would ensure the highest availability?
a)
Deploy the application on a single EC2 instance with automatic backups every 12 hours.
b)
Deploy the application on EC2 instances in multiple Availability Zones with Auto Scaling and an Elastic Load Balancer.
c)
Use Amazon EC2 Spot Instances to save costs on high-availability workloads.
d)
Use EC2 instances in multiple regions without an Elastic Load Balancer for high availability.
17.
An e-commerce company is experiencing rapid growth and wants to deploy a highly available and fault-tolerant infrastructure for its web application using EC2. The company requires low latency access to its data, which is stored in Amazon RDS. What EC2 architecture design would meet these requirements?
a)
Deploy EC2 instances in multiple Availability Zones (AZs) with Auto Scaling and use Elastic Load Balancing (ELB) to distribute traffic.
b)
Deploy EC2 instances in a single Availability Zone and attach an Elastic IP address for fault tolerance.
c)
Deploy EC2 instances in a single Availability Zone with EC2 Auto Scaling and use a Network Load Balancer.
d)
Deploy EC2 instances in multiple Availability Zones with Auto Scaling and use Amazon CloudFront as the content delivery network (CDN).
18.
You are deploying an application on EC2 instances, and you want to limit the ability to connect to the instances to only a specific IP address range. Which security feature should you use?
a)
EC2 IAM Roles
b)
Security Groups
c)
Network ACLs
d)
Elastic IP Addresses
19.
You are developing an application that runs on Amazon EC2 instances in an Auto Scaling group behind an Application Load Balancer (ALB). The application uses Amazon RDS as its database. You need to ensure that when EC2 instances are terminated due to scaling down, the data in the RDS database is not corrupted, and that all application state is preserved. Which of the following solutions should you implement?
a)
Use EC2 instance lifecycle hooks to complete state-saving tasks before terminating the instances.
b)
Use Amazon CloudWatch to automatically trigger a snapshot of the database before terminating the EC2 instances.
c)
Use EC2 Auto Scaling to ensure instances are not terminated until the database is manually backed up.
d)
Configure RDS read replicas to ensure that data is not lost when instances are terminated.
20.
You need to design a solution to ensure that a set of EC2 instances running in private subnets in multiple Availability Zones can securely access a publicly accessible resource on the internet, such as an API. You also want to minimize costs and complexity while maintaining high availability. Which of the following is the most cost-effective and scalable solution?
a)
Create a VPC endpoint to route traffic directly to the internet.
b)
Set up a NAT Gateway in a public subnet to allow outbound internet access.
c)
Deploy a dedicated NAT instance in a public subnet to allow outbound internet access.
d)
Use a VPN gateway to route traffic from the private subnet to the internet.
21.
You are designing an application that requires high throughput and low latency between multiple EC2 instances running in different VPCs. These VPCs are in different AWS regions. Which of the following options provides the most cost-effective and secure way to achieve this?
a)
Use AWS Direct Connect to establish a dedicated network connection between the VPCs in different regions.
b)
Use VPC Peering between the VPCs and configure routing to allow communication between EC2 instances.
c)
Use an AWS Site-to-Site VPN connection between the VPCs in different regions.
d)
Use AWS Transit Gateway to establish inter-region VPC communication.
22.
You need to automate the process of deploying an application that consists of EC2 instances, a load balancer, and Amazon RDS databases. The infrastructure must be easily reproducible, and you must ensure that application deployments can be rolled back if something fails. Which of the following solutions provides the most appropriate approach to meet these requirements?
a)
Use AWS CloudFormation with a nested stack to define the infrastructure and use CodePipeline to automate deployments.
b)
Use AWS Elastic Beanstalk to deploy the application and automatically manage EC2 instances and load balancer configurations.
c)
Use Amazon EC2 Auto Scaling to automatically deploy and roll back EC2 instances based on performance metrics.
d)
Use AWS OpsWorks to manage application deployments and EC2 instance configurations.
23.
You are designing an application that requires high throughput and low latency between multiple EC2 instances running in different VPCs. These VPCs are in different AWS regions. Which of the following options provides the most cost-effective and secure way to achieve this?
a)
Use AWS Direct Connect to establish a dedicated network connection between the VPCs in different regions.
b)
Use VPC Peering between the VPCs and configure routing to allow communication between EC2 instances.
c)
Use an AWS Site-to-Site VPN connection between the VPCs in different regions.
d)
Use AWS Transit Gateway to establish inter-region VPC communication.
24.
You have an EC2 instance running a web application behind an Application Load Balancer (ALB). The instance needs to scale based on the number of incoming HTTP requests. What is the most efficient way to automatically scale the EC2 instance based on incoming traffic to the ALB?
a)
Use EC2 Auto Scaling with a metric of CPU utilization.
b)
Use EC2 Auto Scaling with a metric of incoming HTTP request count.
c)
Use an Elastic Load Balancer with scaling rules based on network traffic.
d)
Use an EC2 instance lifecycle hook to scale the instances based on application load.
25.
You need to configure your EC2 instances to automatically deploy a new version of your application from an S3 bucket every time a new version is uploaded. The solution must be scalable, reliable, and automated. Which of the following solutions provides the most effective approach?
a)
Use AWS Lambda to detect changes in the S3 bucket and trigger an EC2 Auto Scaling action to deploy the application.
b)
Use Amazon CloudWatch Events to trigger a Lambda function that downloads and deploys the new application version from S3.
c)
Use S3 bucket notifications to trigger a Jenkins pipeline that automates the EC2 deployment process.
d)
Use AWS CodeDeploy to automatically deploy the application from S3 to the EC2 instances.
26.
You have deployed an application that requires both a web server and a database to run on EC2 instances. The database must persist data, and the application must be highly available. What architecture would you design to meet these requirements with minimal operational overhead?
a)
Use EC2 instances with an Amazon RDS database in Multi-AZ deployment.
b)
Use EC2 instances with a MySQL database running on the same EC2 instance.
c)
Use EC2 instances with EBS volumes attached and a database on each instance.
d)
Use EC2 instances with Amazon DynamoDB as the backend.
27.
A developer needs to run a workload on Amazon EC2 instances. The workload has predictable traffic spikes during business hours and significantly less traffic outside these hours. How can the developer optimize costs while maintaining performance?
a)
Use Spot Instances with an Auto Scaling group to scale out during high traffic periods.
b)
Use an Auto Scaling group with scheduled scaling to launch instances during peak hours and terminate instances during low-traffic periods.
c)
Purchase Reserved Instances for the predicted peak capacity.
d)
Keep the EC2 instances running 24/7 to handle traffic at all times.
28.
A company runs batch processing jobs daily and wants to reduce EC2 costs. The workload can tolerate interruptions. What should the company do?
a)
Use Spot Instances with Amazon EC2 Auto Scaling to scale out batch jobs.
b)
Use On-Demand Instances for processing and terminate them after the jobs complete.
c)
Purchase Reserved Instances for dedicated capacity at a lower cost.
d)
Use Dedicated Hosts to maximize processing power for batch jobs.
29.
A company wants to ensure that only administrators can securely connect to EC2 instances. What is the most secure approach?
a)
Open port 22 on the Security Group for specific IP addresses.
b)
Use key pairs to SSH into the instances.
c)
Set up a VPN to access the private network and connect to the instances.
d)
Use IAM policies and Systems Manager Session Manager for secure and auditable access to EC2 instances.
30.
A stateless web application runs on Amazon EC2 instances behind an Application Load Balancer. How can a developer ensure seamless scaling during high traffic?
a)
Use Sticky Sessions with the ALB to direct users to specific EC2 instances.
b)
Manually add instances to the Auto Scaling group during high traffic.
c)
Use an Auto Scaling group with a health check policy and enable ELB health checks.
d)
Add multiple Application Load Balancers for redundancy.
31.
A developer needs an Auto Scaling group to automatically adjust the number of instances based on CPU utilization. What should they do?
a)
Use scheduled scaling based on expected usage patterns.
b)
Configure a dynamic scaling policy that adjusts based on CloudWatch metrics for CPU utilization.
c)
Launch Spot Instances to handle peak load and terminate them during low load.
d)
Enable ELB health checks to trigger scaling automatically.
32.
An application running on EC2 requires data to persist even after instances are terminated. What is the best storage solution?
a)
Store data in the instance store attached to the EC2 instances.
b)
Use EBS volumes attached to each EC2 instance and back them up regularly.
c)
Use Amazon EFS to store data and mount it on all EC2 instances.
d)
Store data in Amazon S3 Standard-IA and retrieve it when needed.
33.
How can a DevOps engineer monitor and collect detailed metrics for an EC2 application?
a)
Use Amazon CloudWatch with custom metrics and detailed monitoring enabled.
b)
Use AWS X-Ray to trace application requests and performance.
c)
Use AWS Config to monitor EC2 instance state changes.
d)
Use Amazon SNS to receive notifications about instance health.
34.
A company wants to containerize its EC2-based web application for better scalability and manageability. What is the best approach?
a)
Use Docker to containerize the application and continue running it on the same EC2 instances.
b)
Use EC2 Auto Scaling to handle load and deploy containers on demand.
c)
Use Docker to containerize the application and deploy it on Amazon ECS with Fargate.
d)
Deploy the application on an Amazon EKS cluster running on EC2 instances.
35.
A developer needs an EC2 instance type optimized for high-performance computing (HPC) workloads. Which instance type should they choose?
a)
T3 series instances with burstable performance.
b)
R5 series instances optimized for memory-intensive workloads.
c)
M5 series instances for balanced workloads.
d)
C6gn instances with Elastic Fabric Adapter (EFA).
36.
Tienes una aplicación web implementada en una instancia EC2 con Amazon Linux 2. Para manejar incrementos en el tráfico, configuraste un grupo de Auto Scaling y un Application Load Balancer (ALB). ¿Qué acción debes realizar para garantizar que las instancias EC2 nuevas se configuren automáticamente con el software necesario para ejecutar la aplicación? (2 respuestas correctas)
a)
1. Asegurarte de que el ALB tenga habilitado el balanceo de carga.
b)
2. Crear un script de configuración y agregarlo en los datos de usuario (user data) de la instancia
c)
3. Utilizar una AMI personalizada con la aplicación preconfigurada.
d)
4. Habilitar la conexión SSH en las nuevas instancias EC2.
37.
Tu aplicación web está alojada en instancias EC2 detrás de un ALB en la región us-east-1. Quieres garantizar alta disponibilidad y recuperación ante desastres. ¿Qué medidas deberías tomar? (Selecciona dos respuestas correctas).
a)
1. Configurar un Auto Scaling Group en múltiples zonas de disponibilidad dentro de la región us-east-1.
b)
2. Implementar un ALB en cada zona de disponibilidad y distribuir tráfico manualmente.
c)
3. Configurar copias de seguridad periódicas de las instancias EC2 utilizando Amazon EBS Snapshots.
d)
4. Configurar una arquitectura multirregional con Amazon Route 53 y ALB.
38.
Estás configurando AWS CodeDeploy para desplegar automáticamente actualizaciones de código en una flota de instancias EC2. Necesitas asegurarte de que la implementación falla si un script previo al despliegue no se ejecuta correctamente. ¿Qué configuración debes usar?(Selecciona dos respuestas correctas)
a)
1. Crear un archivo appspec.yml con una sección BeforeInstall que incluya el script.
b)
2. Configurar una política de IAM para CodeDeploy que permita ejecutar scripts
c)
3. Configurar el grupo de Auto Scaling para reiniciar instancias fallidas.
d)
4. Configurar el archivo appspec.yml para que el script en BeforeInstall detenga la implementación si falla.
39.
Una instancia EC2 necesita recibir tráfico HTTP desde cualquier lugar, pero solo permitir acceso SSH desde una IP específica. ¿Cómo configuras las reglas de seguridad?
a)
1. Configuras el grupo de seguridad de la instancia EC2 para permitir el puerto 22 desde cualquier lugar y el puerto 80 desde la IP específica
b)
2. Configuras el grupo de seguridad de la instancia EC2 para permitir el puerto 80 desde 0.0.0.0/0 y el puerto 22 desde la dirección IP específica.
c)
3. Configuras una ACL de red para permitir el puerto 80 desde cualquier lugar y el puerto 22 desde la dirección IP específica.
d)
4. Configuras ambas reglas en el grupo de seguridad y luego aplicas un WAF para restringir tráfico adicional.
40.
Estás utilizando AWS Elastic Beanstalk para implementar una aplicación en EC2. Necesitas definir variables de entorno específicas para cada entorno (producción y pruebas). ¿Cómo lo logras? (Selecciona dos respuestas correctas)
a)
1. Configuras las variables de entorno directamente en el archivo .ebextensions al implementar la aplicación.
b)
2. Agregas las variables de entorno al archivo appspec.yml y las importas al entorno.
c)
3. Usas la consola de Elastic Beanstalk para definir variables de entorno diferentes para cada entorno.
d)
4. Configuras las variables en el archivo de datos de usuario (user data) de la instancia EC2
41.
Está desarrollando una aplicación web alojada en instancias de Amazon EC2 detrás de un balanceador de carga de aplicaciones (ALB). Su aplicación procesa archivos cargados por el usuario y los almacena en Amazon S3. Recientemente, notó que sus instancias de EC2 a veces fallan al cargar archivos grandes debido a solicitudes de larga duración. ¿Qué puede hacer para garantizar que la aplicación siga respondiendo mientras carga correctamente archivos grandes?
a)
A. Utilice la carga multiparte de Amazon S3 para archivos grandes.
b)
B. Aumente el tamaño de instancia de sus instancias de EC2.
c)
C. Configure un tiempo de espera de inactividad más alto para el balanceador de carga de aplicaciones.
d)
D. Agregue más instancias de EC2 al grupo de escalado automático.
42.
Su empresa ejecuta una aplicación web sin estado en instancias de Amazon EC2 en un grupo de escalado automático. La aplicación requiere acceso frecuente a los datos de la sesión para las interacciones del usuario. Actualmente, los datos de la sesión se almacenan en la memoria de la instancia, pero el escalado horizontal hace que los usuarios pierdan su estado de sesión. ¿Cuál es la forma más rentable de resolver este problema?
a)
1. Habilitar sesiones persistentes en el balanceador de carga de aplicaciones.
b)
2. Almacenar los datos de la sesión en Amazon RDS.
c)
3. Usar Amazon ElastiCache para la administración de sesiones.
d)
4. Adjuntar un volumen EBS a cada instancia de EC2 para almacenar los datos de la sesión.
43.
Está administrando una canalización de CI/CD para implementar una aplicación en instancias de Amazon EC2. Durante las implementaciones, los usuarios experimentan tiempos de inactividad a medida que las instancias antiguas se reemplazan por otras nuevas. ¿Qué estrategia puede implementar para garantizar que no haya tiempos de inactividad durante las implementaciones?
a)
1. Utilice la estrategia de implementación "Todo a la vez" con AWS CodeDeploy.
b)
2. Implemente una implementación "Continua con lotes adicionales" con AWS CodeDeploy.
c)
3. Cambie a una implementación de Elastic Beanstalk con una política de actualización inmutable.
d)
4. Actualice manualmente las instancias una a la vez para garantizar la continuidad del servicio.
44.
Está diseñando una aplicación que se ejecutará en instancias de Amazon EC2 detrás de un balanceador de carga de aplicaciones. La aplicación requiere que las cargas de los usuarios se procesen y almacenen para acceder a ellas en el futuro. Las cargas pueden variar desde unos pocos megabytes hasta varios gigabytes. Para garantizar que la arquitectura sea escalable, rentable y resistente, ¿qué solución debería elegir?
a)
1.Utilice el almacenamiento de instancias en las instancias de EC2 para almacenar archivos temporalmente y procesarlos antes de cargarlos en Amazon S3.
b)
2.Cargue archivos directamente en Amazon S3 desde el lado del cliente mediante una URL firmada previamente y luego procese los archivos en las instancias de EC2.
c)
3.Utilice Amazon EFS para las cargas de archivos y procese los archivos desde el sistema de archivos compartido.
d)
4.Configure Amazon S3 Transfer Acceleration para las cargas y procese los archivos en las instancias de EC2.
45.
Está ejecutando una pequeña aplicación web en una única instancia de Amazon EC2. Para mejorar la tolerancia a fallas, decide iniciar otra instancia de EC2 en una zona de disponibilidad diferente. ¿Cuál es la forma más sencilla de distribuir el tráfico entrante entre ambas instancias?
a)
1. Configurar DNS Round Robin con Route 53.
b)
2. Asignar manualmente la mitad del tráfico a cada instancia con scripts personalizados.
c)
3. Usar un grupo de Auto Scaling con un tamaño mínimo de 2.
d)
4. Configurar un Elastic Load Balancer frente a las dos instancias.