AWS DevOps DevOps Monitoring, Testing & Deployment Strategies 2 — Questions and Answers
Question 1: Which AWS service allows you to define alarms that automatically roll back a CodeDeploy deployment when a CloudWatch metric breaches a threshold?
- CloudWatch Alarms with CodeDeploy rollback triggers (Correct answer)
- AWS Config rules with auto-remediation
- AWS Systems Manager OpsCenter
- AWS Health Dashboard notifications
Correct answer: CloudWatch Alarms with CodeDeploy rollback triggers
CodeDeploy supports automatic rollback when a CloudWatch Alarm you associate with the deployment group enters the ALARM state.
Question 2: In a canary deployment on AWS Lambda using CodeDeploy, what does the 'Canary10Percent5Minutes' configuration mean?
- 10% of traffic shifts immediately, remaining 90% shifts after 5 minutes (Correct answer)
- Traffic shifts over 5 increments of 10% each minute
- A canary test runs for 5 minutes before any traffic shifts
- 10 Lambda functions are updated every 5 minutes
Correct answer: 10% of traffic shifts immediately, remaining 90% shifts after 5 minutes
Canary10Percent5Minutes shifts 10% of traffic to the new version immediately, waits 5 minutes, then shifts the remaining 90%.
Question 3: Which X-Ray feature helps identify the slowest components in a distributed application by visualizing latency across service calls?
- Service map with latency histograms (Correct answer)
- CloudWatch Contributor Insights
- AWS Distro for OpenTelemetry traces
- CloudTrail data events
Correct answer: Service map with latency histograms
X-Ray service maps display response time distributions and highlight high-latency nodes across microservice calls.
Question 4: When running integration tests in CodePipeline, which action provider lets you invoke an AWS Lambda function as a test step?
- AWS Lambda invoke action (Correct answer)
- AWS CodeBuild action
- AWS CloudFormation action
- AWS Device Farm action
Correct answer: AWS Lambda invoke action
CodePipeline's Lambda invoke action lets you call a Lambda function directly as a pipeline action, returning success or failure to the pipeline.
Question 5: A team wants zero-downtime deployments for an ECS Fargate service. Which deployment controller type achieves this using weighted target groups?
- CODE_DEPLOY with blue/green (Correct answer)
- ECS rolling update
- EXTERNAL deployment controller
- ECS daemon scheduling
Correct answer: CODE_DEPLOY with blue/green
CODE_DEPLOY deployment controller for ECS uses two target groups with weighted routing to shift traffic with zero downtime.
Question 6: Which CloudWatch feature enables you to automatically detect anomalous patterns in metric data without manually setting static thresholds?
- CloudWatch Anomaly Detection (Correct answer)
- CloudWatch Composite Alarms
- CloudWatch Metric Math
- CloudWatch Embedded Metrics
Correct answer: CloudWatch Anomaly Detection
CloudWatch Anomaly Detection uses ML to model expected metric behavior and alerts when values deviate significantly.
Question 7: In AWS CodeBuild, which test report type natively integrates to display pass/fail results directly in the CodeBuild console?
- JUnit XML and Cucumber JSON test reports (Correct answer)
- HTML test result files
- PDF test summary documents
- CSV result exports
Correct answer: JUnit XML and Cucumber JSON test reports
CodeBuild Test Reports support JUnit XML and Cucumber JSON formats, rendering pass/fail breakdowns natively in the console.
Which AWS service allows you to define alarms that automatically roll back a CodeDeploy deployment when a CloudWatch metric breaches a threshold?