Module 2 Quiz :DevOps and AI on AWS: CI/CD for Generative AI Applications (DevOps and AI on AWS Specialization) Answers 2025
1. Question 1 — (Select TWO)
Deployment strategies that minimize release risk
-
❌ Manual Deployment
-
✅ Canary Deployment
-
❌ In-Place Deployment
-
❌ All-at-Once Deployment
-
✅ Blue/Green Deployment
Correct answers: 2 & 5
Explanation:
-
Canary → releases to a small % first → low risk
-
Blue/Green → deploys to a new environment → instant rollback
Other strategies increase risk.
2. Question 2
Why is the AppSpec file important in CodeDeploy?
-
❌ Defines infra resources
-
✅ Provides deployment instructions & lifecycle hooks
-
❌ Configures permissions
-
❌ Stores env variables
Explanation:
AppSpec defines how to deploy, including BeforeInstall, AfterInstall, ApplicationStart, etc.
3. Question 3
Key advantage of AWS CDK
-
✅ Define infrastructure with familiar programming languages
-
❌ Monitors performance
-
❌ Deploys apps directly to EC2
-
❌ Automates AI model testing
Explanation:
CDK uses Python, TypeScript, Java, etc., to generate CloudFormation templates.
4. Question 4 — (Select TWO)
Tools to troubleshoot deployment issues
-
❌ AWS X-Ray (for distributed tracing, not deployment failures)
-
❌ Patch Manager
-
❌ S3 Buckets
-
✅ AWS CloudFormation Change Sets
-
✅ AWS CodeDeploy Deployment Logs
Correct answers: 4 & 5
Explanation:
-
Change Sets → preview infra modifications → detect potential issues
-
Deployment Logs → show lifecycle failures, script errors, rollback reasons
5. Question 5
Role of CloudFormation Rollback
-
❌ Preview changes
-
✅ Revert infrastructure to last stable state after failure
-
❌ Create new resources
-
❌ Monitor config changes
Explanation:
Rollback protects environments by undoing failed stack updates.
🧾 Summary Table
| Q# | Correct Answer | Key Concept |
|---|---|---|
| 1 | Canary, Blue/Green | Low-risk deployments |
| 2 | Deployment instructions + hooks | AppSpec purpose |
| 3 | Infra with programming languages | CDK advantage |
| 4 | Change Sets, Deployment Logs | Troubleshooting |
| 5 | Revert infra after failure | CloudFormation rollback |