A CloudOps engineer is creating two AWS CloudFormation templates. The first template will create a VPC with associated resources, such as subnets, route tables, and an internet gateway. The second template will deploy application resources within the VPC that was created by the first template. The second template should refer to the resources created by the first template.
How can this be accomplished with the LEAST amount of administrative effort?
Answer : A
CloudFormation cross-stack references are the correct low-effort method for sharing resource values between related stacks. The first template can define stack outputs and mark them with an Export name. The second template can use Fn::ImportValue to reference those exported values, such as VPC ID, subnet IDs, route table IDs, or security group IDs. AWS documentation states that you use the Export output field and Fn::ImportValue intrinsic function to create cross-stack references. A custom resource is unnecessary and adds code, permissions, and maintenance. Mappings are static lookup tables, not a way to retrieve live resources from another stack. Passing values manually as parameters works, but it increases administrative effort and error risk. Therefore, exports and imports are correct.
A company runs a website on Amazon EC2 instances. Users can upload images to an Amazon S3 bucket and publish the images to the website. The company wants to deploy a serverless image-processing application that uses an AWS Lambda function to resize the uploaded images.
The company's development team has created the Lambda function. A CloudOps engineer must implement a solution to invoke the Lambda function when users upload new images to the S3 bucket.
Which solution will meet this requirement?
Answer : C
Comprehensive and Detailed Explanation From Exact Extract of AWS CloudOps Doocuments:
Use Amazon S3 Event Notifications with AWS Lambda to trigger image processing on object creation. S3 natively supports invoking Lambda for events such as s3:ObjectCreated:*, providing a serverless, low-latency pipeline without managing additional services. AWS operational guidance states that ''Amazon S3 can directly invoke a Lambda function in response to object-created events,'' allowing you to pass event metadata (bucket/key) to the function for resizing and writing results back to S3. This approach minimizes operational overhead, scales automatically with upload volume, and integrates with standard retry semantics. SNS or SQS can be added for fan-out or buffering patterns, but they are not required when the requirement is simply ''invoke the Lambda function on upload.'' CloudWatch alarms do not detect individual S3 object uploads and cannot directly satisfy per-object triggers. Therefore, configuring S3 Lambda event notifications meets the requirement most directly and aligns with CloudOps best practices for event-driven, serverless automation.
A company runs a business application on more than 300 Linux-based instances. Each instance has the AWS Systems Manager Agent (SSM Agent) installed. The company expects the number of instances to grow in the future. All business application instances have the same user-defined tag.
A CloudOps engineer wants to run a command on all the business application instances to download and install a package from a private repository. To avoid overwhelming the repository, the CloudOps engineer wants to ensure that no more than 30 downloads occur at one time.
Which solution will meet this requirement in the MOST operationally efficient way?
Answer : C
AWS Systems Manager Run Command includes a built-in rate control feature that allows administrators to control the maximum number of concurrent executions across target instances. This directly addresses the requirement to limit downloads to 30 at a time without custom orchestration or additional services.
By targeting instances using tags, the solution automatically scales as new instances are added, which aligns with future growth expectations. Rate control ensures controlled concurrency and protects the private repository from overload.
Option A is manual and does not scale operationally. Option B introduces unnecessary complexity with Lambda and concurrency management that does not map cleanly to instance execution concurrency. Option D significantly increases architectural complexity without added value.
Run Command with rate control is the simplest, most native, and most scalable solution.
A logistics company wants to run containerized applications on Amazon ECS behind an Application Load Balancer. The company wants to use a phased release method to test new application versions and gradually increase traffic shift. The company wants to start with 10% of the traffic to the new version, with 10% increments every 3 minutes until the traffic is fully shifted.
Which deployment strategy will meet these requirements?
Answer : D
The traffic pattern described is a linear deployment: shift a fixed percentage of traffic at fixed time intervals until the new version receives 100% of traffic. AWS CodeDeploy for Amazon ECS includes a predefined deployment configuration named CodeDeployDefault.ECSLinear10PercentEvery3Minutes, which shifts 10% of traffic every 3 minutes until all traffic is shifted. A canary deployment sends an initial small percentage to the new version and then shifts the remaining traffic after a bake period, not in equal repeated increments. A rolling deployment replaces tasks in batches but does not express ALB traffic shifting percentages in this way. Blue/green is the broader deployment model used by CodeDeploy, but the specific release strategy requested is linear. Therefore, option D is correct.
A company has a production application that runs on large compute optimized Amazon EC2 instances behind an Application Load Balancer (ALB). The instances are in an Amazon EC2 Auto Scaling group. The Auto Scaling group has a desired capacity of 2, a maximum capacity of 2, and a minimum capacity of 1.
The application is CPU-bound. The EC2 instances show consistent CPU utilization of 90% or greater during peak usage periods. These peak usage periods are unpredictable and cause performance issues and latency issues.
Which solution will automate the resolution of these issues?
Answer : C
The Auto Scaling group cannot scale out because its maximum capacity is already set to 2, the same as the current desired capacity. To automate the resolution, the CloudOps engineer must raise the maximum capacity and configure a scaling policy that adds instances when CPU utilization exceeds the threshold. Since the workload is CPU-bound and peak periods are unpredictable, metric-based scaling is appropriate. Option A adds unmanaged capacity outside the Auto Scaling group, which defeats automated fleet management. Option B correctly increases maximum capacity but incorrectly changes to burstable instances; burstable instances are a poor choice for sustained CPU-heavy workloads. Option D is incomplete because increasing desired capacity alone does not guarantee future automated scale-out unless the maximum capacity also permits it. Therefore, option C is correct.
A company is preparing for a marketing campaign that will increase traffic to a new web application. The application uses Amazon API Gateway and AWS Lambda for the application logic. The application stores relevant user data in an Amazon Aurora MySQL DB cluster that has one Aurora Replica. Database queries for the application are 5% write and 95% read.
What should a CloudOps engineer do to scale the database when traffic increases?
Answer : A
Because the application workload is 95% reads, the best database scaling approach is to add or remove Aurora Replicas. Aurora Auto Scaling can automatically adjust the number of Aurora Replicas in a DB cluster based on metrics such as average CPU utilization or average connections across replicas. This allows the read tier to scale as campaign traffic increases while the primary writer continues to handle the smaller write workload. Option B is incorrect because Aurora Auto Scaling scales the number of replicas; it does not vertically resize existing replicas. Options C and D are worded around generic AWS Auto Scaling rather than Aurora Auto Scaling and use less appropriate metric relationships. Scaling based on replica CPU utilization directly addresses read pressure. Therefore, configure Aurora Auto Scaling for Aurora Replicas.
A company has a web application that is experiencing performance problems many times each night. A root cause analysis reveals sudden increases in CPU utilization that last 5 minutes on an Amazon EC2 Linux instance. A CloudOps engineer must find the process ID (PID) of the service or process that is consuming more CPU.
What should the CloudOps engineer do to collect the process utilization information with the LEAST amount of effort?
Answer : A
The CloudWatch agent procstat plugin is specifically designed to collect per-process metrics such as CPU usage by process ID. It allows continuous, automated monitoring without manual intervention and integrates directly with CloudWatch.
Default CloudWatch metrics provide only instance-level CPU utilization and do not expose process-level details. Manual logins and Lambda-based polling introduce unnecessary operational overhead and are not scalable.
Therefore, configuring the procstat plugin is the most efficient solution.