A company wants to implement a deployment strategy that routes a small percentage of production traffic to a new application version before fully rolling it out. Which deployment strategy should the DevOps engineer use?
Sdlc Automation
Question · Easy
A DevOps engineer needs to automatically trigger a build when code is pushed to an AWS CodeCommit repository. Which service should be used to detect the push event and start the pipeline?
Chapter 1: CI/CD Pipeline Architecture & Source Integration
1.1 Multi-Stage & Multi-Account CodePipeline Design
Study guide
An application team uses AWS CodePipeline with a manual approval action before deploying to production. The team wants to automatically reject the approval if no action is taken within 2 hours. How should this be configured?
Question · Medium
Tech Exam Prep Podcast
Listen on Spotify
Podcast
A DevOps engineer is configuring AWS CodeBuild to run unit tests. The build specification needs to install dependencies, run tests, and generate a coverage report. In which section of the buildspec.yml should the test commands be placed?
A company wants to ensure that all CodePipeline deployments to production use a specific, tested artifact version from a previous staging environment. Which CodePipeline feature ensures artifact consistency across stages?
A team is migrating from Jenkins to AWS CodePipeline. They need to continue using their existing Jenkins build jobs during the transition. How can they integrate Jenkins with CodePipeline?
1.2 CodeBuild Projects, Build Environments & Pipeline Secrets
A DevOps engineer wants to implement a blue/green deployment for an application running on Amazon ECS with Fargate. Which AWS service orchestrates the traffic shifting between the blue and green target groups?
A company requires all CodeBuild projects to use VPC networking to access internal resources. The build environment must also pull dependencies from the internet. What must be configured to enable both internal and internet access?
A DevOps engineer needs to create a multi-stage CodePipeline that deploys to development, staging, and production environments in sequence. Each environment uses different CloudFormation parameter values. What is the recommended way to manage environment-specific parameters?
A company has a CodePipeline that deploys Lambda functions. They want to automatically roll back if the new function version has more than 1% error rate in the first 10 minutes. Which combination of services enables this?
Question · Hard
1.3 Source Control Workflows, Webhooks & Branching Models
A DevOps engineer needs to ensure that an AWS CodePipeline source action detects changes in a specific branch of an AWS CodeCommit repository. What should be configured?
A DevOps engineer is managing infrastructure using AWS CloudFormation. A stack update fails midway through, leaving some resources updated and others in the previous state. What is the default CloudFormation behavior when a stack update fails?
Configuration Management Iac
A company uses AWS CloudFormation and needs to detect when manually made changes cause configuration drift from the template-defined state. Which CloudFormation feature should the engineer use?
A DevOps team wants to manage shared infrastructure resources (VPC, subnets, security groups) in one CloudFormation stack and reference them from application stacks. Which CloudFormation feature enables cross-stack resource sharing?
Chapter 2: Automated Testing, Test Gates & Quality Verification
2.1 Automated Unit, Integration & Acceptance Testing in Pipelines
A DevOps engineer needs to provision a CloudFormation resource that is not natively supported. Which CloudFormation feature allows extending the template to manage custom resources?
A team uses AWS CDK to define infrastructure. They need to synthesize the CDK app into a CloudFormation template without deploying it. Which CDK CLI command should they use?
A DevOps engineer needs to apply operating system patches to a fleet of EC2 instances across multiple AWS accounts. Patches should be applied during a specific maintenance window. Which AWS service combination is most appropriate?
A DevOps engineer is using AWS Systems Manager Parameter Store to manage configuration values. The application needs to retrieve a database password securely. Which parameter type should be used?
2.2 Load Testing, Performance Benchmarking & Synthetic Canaries
A company needs to deploy the same CloudFormation stack across 50 AWS accounts in an organization. The DevOps engineer wants to manage all deployments from a single administrator account. Which feature should be used?
A DevOps engineer is using CloudFormation and needs to run a configuration script on an EC2 instance during stack creation. The script must signal CloudFormation when it completes successfully. Which helper script should be used to send the signal?
A company requires that their production environment can recover from a complete regional outage within 15 minutes. The application uses Amazon RDS with critical data. Which disaster recovery strategy meets this RTO requirement?
Resilient Cloud Solutions
An application uses an Auto Scaling group behind an Application Load Balancer. During peak traffic, new instances take 5 minutes to become healthy. Users experience errors during scale-out events. How can the engineer reduce errors during scaling?
2.3 Security Scanning, SAST/DAST & Approval Gates
A DevOps engineer needs to ensure that an EC2 Auto Scaling group replaces instances that fail health checks from the Application Load Balancer. What must be configured on the Auto Scaling group?
A company runs a stateless application across two Availability Zones. They want to ensure the application remains available even if one AZ has a complete outage. The current Auto Scaling group has a minimum of 4 instances. What is the minimum number of instances that should be running across both AZs to maintain full capacity during a single AZ failure?
An application uses Amazon DynamoDB as its primary database. The DevOps engineer needs to implement a disaster recovery solution that provides near-zero RPO across AWS Regions. Which DynamoDB feature should be used?
A DevOps engineer needs to configure an Auto Scaling group to handle a sudden spike in traffic. The scaling policy should add capacity as quickly as possible when CPU utilization exceeds 70%. Which scaling policy type is most appropriate?
Chapter 3: Artifact Management & Multi-Platform Deployment Strategies
3.1 Artifact Lifecycle Management with CodeArtifact, ECR & S3
A company uses Amazon Route 53 with a failover routing policy. The primary endpoint is in us-east-1 and the secondary is in us-west-2. What does Route 53 use to determine when to route traffic to the secondary endpoint?
A DevOps engineer wants to create a centralized logging solution that aggregates CloudWatch Logs from multiple AWS accounts into a single account. Which approach should be used?
Monitoring And Logging
A DevOps engineer needs to set up an alarm that triggers only when both CPU utilization exceeds 80% AND the number of healthy hosts drops below 2. Which CloudWatch feature enables this multi-condition alarm?
A DevOps engineer needs to trace requests across a microservices application to identify latency bottlenecks. The application runs on a mix of Lambda functions and ECS containers. Which AWS service provides distributed tracing across these compute types?
3.2 Automated Image Baking with EC2 Image Builder
A company wants to monitor API Gateway latency and receive an alert when the p99 latency exceeds 3 seconds over a 5-minute period. Which CloudWatch configuration achieves this?
A DevOps engineer needs to query CloudWatch Logs to find the top 10 most expensive Lambda function invocations by billed duration in the last 24 hours. Which tool should be used?
A DevOps engineer configures a CloudWatch alarm but notices it stays in INSUFFICIENT_DATA state. The metric is published by an EC2 instance. What is the most likely cause?
A DevOps engineer needs to retain CloudWatch Logs for compliance purposes for 7 years. The logs are frequently queried in the first 30 days but rarely accessed afterward. What is the most cost-effective approach?
3.3 In-Place, Rolling & Immutable Deployments on EC2
A DevOps engineer needs to automatically remediate non-compliant EC2 instances that have public IP addresses. The remediation should stop the instance and notify the security team. Which AWS service combination should be used?
Incident And Event Response
A company wants to automatically create a Jira ticket when an Amazon EC2 instance enters the 'stopped' state unexpectedly. Which event-driven approach requires the least custom code?
A DevOps engineer receives an AWS Health event indicating that an EC2 instance's underlying hardware is scheduled for retirement. The engineer wants to automate the replacement of affected instances. Which approach is recommended?
An application processes messages from an SQS queue. Some messages consistently fail processing and return to the queue. The DevOps engineer wants to isolate these failing messages to prevent them from blocking other messages. What should be configured?
Loading more…