AWS DevOps DevOps Monitoring, Testing & Deployment Strategies 3 — Questions and Answers
Question 1: Which strategy involves routing a small percentage of real production traffic to the new version while the rest uses the old version, then gradually increasing the percentage?
- Linear deployment (Correct answer)
- Blue/green deployment
- In-place rolling deployment
- Immutable deployment
Correct answer: Linear deployment
Linear deployment gradually shifts traffic in equal increments over time, such as 10% every 10 minutes until 100%.
Question 2: Which AWS service provides a managed Grafana environment that can pull metrics from CloudWatch, Prometheus, and other data sources without self-hosting?
- Amazon Managed Grafana (Correct answer)
- Amazon Managed Prometheus
- AWS CloudWatch Dashboards
- AWS IoT SiteWise Monitor
Correct answer: Amazon Managed Grafana
Amazon Managed Grafana is a fully managed service for Grafana that natively integrates with AWS data sources including CloudWatch.
Question 3: When load testing an application deployed on AWS, which service can simulate millions of requests per second to measure auto-scaling and performance limits?
- AWS Distributed Load Testing solution using Fargate (Correct answer)
- AWS CodeBuild performance test action
- AWS Fault Injection Simulator
- AWS Device Farm web app tests
Correct answer: AWS Distributed Load Testing solution using Fargate
The AWS Distributed Load Testing solution deploys JMeter containers on Fargate to generate high-volume traffic for performance testing.
Question 4: A CodeDeploy in-place deployment fails midway through updating instances. What is the default behavior if automatic rollback is configured?
- CodeDeploy redeploys the last known successful revision to all failed instances (Correct answer)
- The pipeline stops and waits for manual approval before rolling back
- AWS CloudFormation drift detection triggers a stack rollback
- The instances are terminated and replaced with new ones
Correct answer: CodeDeploy redeploys the last known successful revision to all failed instances
With automatic rollback enabled, CodeDeploy reruns the previous successful application revision on instances that received the failed deployment.
Question 5: Which CloudWatch Logs feature lets you run SQL-like queries across multiple log groups to find errors and build visualizations?
- CloudWatch Logs Insights (Correct answer)
- CloudWatch Metric Filters
- CloudWatch Log Subscriptions
- CloudWatch Synthetics
Correct answer: CloudWatch Logs Insights
CloudWatch Logs Insights provides an interactive query language to search and analyze log data across groups with visualization support.
Question 6: In a CI/CD pipeline, what is the primary purpose of a 'smoke test' immediately after deployment?
- Verify the application's critical paths are functional before running full regression tests (Correct answer)
- Check infrastructure cost impact of the deployment
- Validate that all unit tests still pass in the new environment
- Confirm that database schema migrations completed successfully
Correct answer: Verify the application's critical paths are functional before running full regression tests
Smoke tests quickly validate that the most critical functionality works after deployment, acting as a gate before deeper testing.
Question 7: Which AWS CodeDeploy hook runs AFTER traffic is shifted to the new deployment but BEFORE the old instances are deregistered in a blue/green deployment?
- AfterAllowTraffic (Correct answer)
- BeforeAllowTraffic
- AfterInstall
- ApplicationStop
Correct answer: AfterAllowTraffic
AfterAllowTraffic fires after the new instances receive production traffic, allowing validation tests before decommissioning the original fleet.
Which strategy involves routing a small percentage of real production traffic to the new version while the rest uses the old version, then gradually increasing the percentage?