Question 1
A company's web application runs on EC2 instances in an Auto Scaling group with a target tracking policy on CPU. During a sudden spike, new instances are launched but take 8 minutes to install software from user data. Users see errors during this time. Which solution reduces the time for new instances to serve traffic?
- Increase the health check grace period of the Auto Scaling group to 10 minutes.
- Change the Auto Scaling group's termination policy to NewestInstance.
- Bake the software into a custom AMI and use a warm pool. — Correct
- Increase the target value of the policy from 50 percent to 80 percent CPU.
Correct answer
Bake the software into a custom AMI and use a warm pool.
Explanation
A pre-built AMI removes long installation, and a warm pool keeps instances ready. A higher target delays scaling. A longer grace period hides unhealthy instances but does not make them serve traffic sooner. Termination policies affect scale-in only.
Question 2
A company wants to keep a copy of an Amazon EFS file system in another Region for disaster recovery, with an RPO measured in minutes and the LEAST operational effort. What should the CloudOps engineer do?
- Use AWS Backup to take a daily backup of the file system and copy it across Regions.
- Enable EFS replication to a destination file system in the other Region. — Correct
- Create an AWS DataSync task that copies the file system to S3 every hour.
- Mount the file system on an EC2 instance and run rsync to the other Region every 5 minutes.
Correct answer
Enable EFS replication to a destination file system in the other Region.
Explanation
EFS replication is managed and keeps a read-only copy in another Region, typically within minutes. Hourly DataSync and daily backups have larger RPOs. rsync scripts require maintenance.
Question 3
An application team needs to restore a DynamoDB table to its exact state at 14:32:10 UTC yesterday after a faulty batch job. Point-in-time recovery is enabled. What will the restore produce?
- A new table with the data as it was at the chosen time. — Correct
- A new table that contains only the items that changed after the chosen time.
- An export of the table's data at the chosen time, written to S3 in DynamoDB JSON.
- The existing table, rewritten in place with the data as it was at the chosen time.
Correct answer
A new table with the data as it was at the chosen time.
Explanation
PITR always restores to a new table. It does not overwrite the source table, restore only changed items, or create an S3 export.
Question 4
A company runs an application across two Regions. The company wants Route 53 to send users to the primary Region and to switch to the secondary Region only if the primary fails its health check. Which routing policy should be used?
- Failover routing with a health check on the primary record. — Correct
- Geolocation routing with a default record for the secondary Region.
- Latency-based routing with health checks on both records.
- Weighted routing with 100 percent weight on the primary record.
Correct answer
Failover routing with a health check on the primary record.
Explanation
Failover routing sends traffic to the primary unless its health check fails. Latency routing sends users to whichever Region is fastest for them. Weighted routing with health checks could work but is not the intended active-passive pattern. Geolocation routes by user location.
Question 5
A company runs a critical Aurora PostgreSQL database in us-east-1. The business requires an RPO of about 1 second and an RTO of under 5 minutes if the entire Region fails. Which solution meets these requirements?
- Enable automated backups with a 35-day retention period, and copy the automated snapshots to another Region every hour with AWS Backup.
- Configure the Aurora cluster with three Aurora Replicas in different Availability Zones and enable fast failover with RDS Proxy.
- Create a cross-Region read replica of the cluster by using logical replication and promote it manually.
- Configure an Aurora global database with a secondary cluster in another Region and fail over to it if the primary Region fails. — Correct
Correct answer
Configure an Aurora global database with a secondary cluster in another Region and fail over to it if the primary Region fails.
Explanation
Aurora global databases replicate to other Regions with typical lag under a second and support fast cross-Region failover. Hourly snapshot copies give an RPO of up to an hour. Logical replication adds lag and manual work. Multi-AZ replicas protect only within one Region.
Question 6
A company uses AWS Backup to protect resources in 40 member accounts of an organization. Backups must be copied to a central backup account so that a compromise of a member account cannot delete them. Which solution meets this requirement?
- Export the recovery points from each member account to an S3 bucket owned by the central account every night.
- Give the central account read access to each member account's vault through an IAM role that the central account can assume in each member account.
- Enable cross-account backup in AWS Organizations and add a copy rule in each backup plan that targets a vault in the central account. — Correct
- Share each member account's backup vault with the central account by using AWS Resource Access Manager, and copy the recovery points from there.
Correct answer
Enable cross-account backup in AWS Organizations and add a copy rule in each backup plan that targets a vault in the central account.
Explanation
AWS Backup cross-account copy sends recovery points to a vault in another account in the organization. Vaults are not shared through RAM. Read access leaves the backups in the member account. Recovery points cannot be exported to S3 this way.
Question 7
An EC2 Auto Scaling group uses a target tracking policy on average CPU. New instances take about 5 minutes to finish booting, and during that time their low CPU makes the group launch more instances than needed. What should the CloudOps engineer configure?
- Set a default instance warmup of about 300 seconds on the Auto Scaling group. — Correct
- Disable scale-in on the target tracking policy for the Auto Scaling group.
- Set the health check grace period of the Auto Scaling group to 0 seconds.
- Change the termination policy of the group to OldestInstance.
Correct answer
Set a default instance warmup of about 300 seconds on the Auto Scaling group.
Explanation
Instance warmup excludes new instances from the aggregated metrics until they are ready, which prevents over-scaling. A zero grace period causes premature health replacements. Disabling scale-in does not stop over-launching. Termination policies affect scale-in only.
Question 8
A company has several Amazon EC2 instances that run a legacy application. Each instance must be backed up daily, and backups must be kept for 35 days with a copy in another Region. Which solution meets these requirements with the LEAST effort?
- Create an AMI of each instance daily with a Lambda function and delete old AMIs with a second function.
- Create a cron job on each instance that runs the AWS CLI to create EBS snapshots daily.
- Create an AWS Backup plan with a daily rule, 35-day retention, and a cross-Region copy action. — Correct
- Use Data Lifecycle Manager for snapshots and copy them manually to the other Region each week.
Correct answer
Create an AWS Backup plan with a daily rule, 35-day retention, and a cross-Region copy action.
Explanation
AWS Backup plans handle schedule, retention, and cross-Region copies in one place. Cron jobs and Lambda functions require custom code. Manual copies are error-prone.
Question 9
An Auto Scaling group spans three Availability Zones. After an AZ outage ends, most instances remain in the two healthy AZs. The team wants instances to be redistributed evenly again. What happens by default, and what should the CloudOps engineer do?
- Auto Scaling AZ rebalancing launches instances in the recovered AZ and terminates instances in others; ensure the AZRebalance process is not suspended. — Correct
- Auto Scaling never rebalances on its own after an outage; the engineer must terminate instances in the healthy AZs by hand to force new launches in the recovered AZ.
- Auto Scaling rebalances only when a scheduled action runs; create a scheduled action that sets the same desired capacity.
- Auto Scaling rebalances only after the group's maximum capacity is reached; increase the maximum capacity to trigger it.
Correct answer
Auto Scaling AZ rebalancing launches instances in the recovered AZ and terminates instances in others; ensure the AZRebalance process is not suspended.
Explanation
AZRebalance runs automatically and restores an even distribution unless the process is suspended. The other statements describe behavior that does not exist.
Question 10
An ECS service on Fargate runs a stateless API. The team wants the service to keep average CPU at 60 percent by adding and removing tasks automatically. What should the CloudOps engineer configure?
- An ECS capacity provider with managed scaling that targets 60 percent CPU for the Fargate tasks in the service.
- An EC2 Auto Scaling group with a target tracking policy on the Fargate instances that run the service's tasks.
- A CloudWatch alarm that invokes a Lambda function to update the task definition's CPU value when usage is high.
- An Application Auto Scaling target tracking policy on ECSServiceAverageCPUUtilization. — Correct
Correct answer
An Application Auto Scaling target tracking policy on ECSServiceAverageCPUUtilization.
Explanation
ECS service auto scaling uses Application Auto Scaling to change the desired task count. Fargate has no customer-managed instances. Changing task size does not add tasks. Capacity provider managed scaling applies to EC2 Auto Scaling groups, not Fargate.