Gains:
- Understanding risk-reducing release strategies (blue-green, canary, feature flag) and product verification discipline (health check, smoke test, golden signal monitoring)
- Ability to implement the habit of preparing a clear rollback plan before deployment and verifying critical business paths after deployment
- Ability to combine all the parts learned throughout the module in an end-to-end AI-supported workflow and apply the principle of 'AI produces, humans verify and vouch for' at every step
This entire module flowed towards one point: the safe delivery of code and infrastructure to production (the live environment used by real customers). Now we are at the most critical and stressful link in the chain: getting a change live and verifying that it actually works there. A mistake here is not abstract — it directly hits the customer, revenue, and reputation. That's why mature teams go to production not by "hoping" but with controlled release strategies and systematic verification.
In this final unit we combine two things: (1) release methods that reduce risk (canary, blue-green, feature flag) and the discipline of prod verification; (2) how every piece we learned throughout the module—CI/CD, IaC, container, monitoring, incident, cost, script, security—comes together into a single AI-powered end-to-end workflow. Let's repeat the initial quote one last time: AI generates and accelerates drafts at every step; But you are the one who presses the "I'm taking this live" button and vouches for the outcome.
Release strategies that reduce risk
Pushing a change to all users at the same time is the riskiest way. Mature methods:
- Blue-Green Deployment: Two identical environments are maintained — “blue” (live) and “green” (new version). The new version is prepared and tested in green, then the traffic is suddenly switched to green. If there is a problem, traffic immediately goes back to blue. Fast rollback is its biggest advantage.
- Canary Deployment: The new version is first released to a small percentage of users (e.g. 5%); If the metrics are good, gradually increase to 100%. An issue affects a small slice of the user, not the entire user.
- Feature Flag: The new feature enters the code but is blocked by a flag; It is opened to certain users when requested. There is a distinction between deployment and "release"; If there is a problem, the flag is turned off without rolling back the code.
Tip: The fastest safety net is to have a rollback ready before each deployment. “If something goes wrong, how can I revert to the old version in 60 seconds?” If there is no clear answer to the question, you are not ready to do that deployment.
Prod verification: work doesn't end when deployment ends
Just because a deployment looks "green" doesn't mean it's working. Systematic verification:
- Health checks: Is the service up, is /healthz responding?
- Smoke tests: Do the few most critical user paths (login, payment, search) actually work? Automatic and fast.
- Watch for golden signals: Post-deploy error rate, latency, is traffic normal? (Four signals on unit 6.)
- Expand gradually: Look at metrics at each step as you increase Canary percentage.
- Observation window: Monitor closely for a period of time (e.g. 30 min) after deployment; Insidious problems are not immediately visible.
Caution: The AI may produce a list of smoke tests or verifications, but it is your job to determine which user paths are "critical". AI gives a general list; Only you know that your payment flow, your most revenue-generating path, must be tested.
Release strategies comparison
Strategy
Main advantage
Cost/complexity
most suitable
Blue-Green
Instant rollback
Two environments = 2x resources
If fast retrieval is critical
canary
Limits impact to small slice
Traffic management required
Huge user base
FeatureFlag
Separates deploy from release
Flag management debt
Gradual/targeted opening
Rolling update
Simple, resource-friendly
slow rollback
Simple services
End-to-end AI-powered workflow
Now let's combine the entire module into a single flow. Let's say you're publishing a new microservice. AI produces drafts at each step; you verify at each step:
- Code & container (Unit 4): AI produces an optimized, secure Dockerfile; You verify the no-secret and the size.
- CI/CD (Unit 2): Writes the AI test-build-deploy pipeline; You narrow down the permissions and check the secret references.
- Infrastructure (Unit 3): Defines the required resources with AI Terraform; You read the plan output and do not look for unexpected deletions.
- Orchestration (Unit 5): AI produces Kubernetes manifests; you verify the resource limit, probe, and RBAC.
- Security (Unit 10): Prioritizes AI scan outputs; You grab the exploitable ones first.
- Monitoring (Unit 6): AI generates alarm rules and dashboard; You test the thresholds with your past data.
- Release & validation (this unit): Outlines the AI smoke test and rollback plan; you start canary, watch the metrics, press the button.
- If incident occurs (Unit 7): AI generates hypothesis and postmortem sketch; You verify and learn the lessons.
- Cost (Unit 8): AI monitors waste of new resources; You make the right-sizing decisions.
At every step, the common rule remains constant: AI produces and accelerates, human verifies and vouches. This is the essence of the module.
three mini cases
Case 1 — canary confined a disaster to 5%. A team gave the new version to 5% users with canary. The dashboard the AI produced immediately showed that the error rate jumped to 8% in this slice. The team took it back without increasing it to 100%; The issue only affected 5% of users, and that was for a few minutes. If there was a big-bang deployment, all customers would be affected.
Case 2 — smoke test caught the missing path. AI offered a smoke test set, but it didn't have a "payment" flow. The engineer added it, knowing that the most critical revenue stream was payment. The post-deploy test broke right at the checkout step — a third-party key had expired. Verification caught a silent loss of revenue within minutes.
Case 3 — ready rollback saved in 90 seconds. A team that installed blue-green took the new version to green; After 2 minutes the delay doubled. They turned the traffic into blue in 90 seconds with the rollback they prepared in advance. They found the root cause (a slow query in the new version) not under pressure, then calmly. The ready rollback path made the interruption almost invisible.
Four copyable templates
1) Release strategy selection:
I will prod the following service: [SERVICE/CONTEXT: number of users, outage tolerance, infrastructure]. Which one do you recommend between blue-green, canary and feature flags? Compare the advantages, costs and rollback speed of each in this context. Give a suggestion, but state that I will make the final decision.
2) Smoke test / verification list:
Produce a draft smoke test and verification list for [SERVICE] that I will run after deployment: health check, the most critical user paths, which metrics should I monitor for how many minutes? Assume that I will mark the most critical business paths and leave that field blank.
3) Rollback plan:
I use [DEPLOY METHOD]. Write me a clear rollback plan: with which command/step do I roll back to the old version, how long does it take, what are the risks of rollback itself (e.g. database migration cannot be rolled back), what should I check before rollback?
4) End-to-end release checklist:
Produce an end-to-end preparation checklist for release to a new [SERVICE] project: code/image security, pipeline, infrastructure plan, monitoring and alarming, security scanning, release strategy, rollback and verification. Check each item with the question "Am I ready?" Turn it into a question.
Weak prompt / Strong prompt
Weak: "How do I get this into prod?"
Result: no context; AI lists general deployment steps, it does not address your risk tolerance, user scale and rollback need.
Güçlü: "I will prod a payment service with 10 million users, my tolerance for downtime is very low. Do you recommend Canary or Blue-Green, why? Which critical paths should I test after deployment, which metrics should I monitor for how many minutes, and what should a 60-second rollback plan be like? I will make the final decision."
Difference: the second prompt gives the scale, tolerance and rollback expectation; It requires strategy + verification + undoing and leaves the decision up to the human.
Common mistakes
- Deploying without a rollback plan. If there is no way back, every deploy is a gamble.
- Big-bang deployment. Giving it to the entire user at once maximizes the risk.
- Assuming "green = working". The service that has passed the health check may be broken on the critical path.
- Thinking that you are leaving critical business paths to AI. You must mark the methods such as payment.
- Not monitoring after deployment. Insidious problems do not appear in the first minute; observation window is required.
- Thinking database migration is reversible. Some changes do not rollback; are planned separately.
In summary
Going to prod is the most critical link in the chain and is done not by "hoping" but with controlled strategies: blue-green provides immediate rollback, limiting the canary effect to a small slice, separating feature flag deployment from release. The work is not over when the deployment is finished; Systematic verification through health checks, smoke tests and golden signal monitoring is essential. AI generates and accelerates drafts at every step throughout the entire module — from Dockerfile to pipeline, from Terraform to alarm rule, from postmortem to cost analysis. But the competent person remains who verifies each step, pushes the go live button and vouches for the outcome. This is the golden rule of end-to-end AI-powered DevOps.
Application task
Choose a service (real or fictional) to publish on. (1) Choose a strategy that fits your context with the “Release strategy selection” template and write why. (2) Have a verification list generated with the "Smoke test / verification list" template and add the most critical business paths yourself. (3) Prepare a 60-second rollback plan with the "Rollback plan" template and check if there are any irreversible steps in it.
checklist
- [ ] I chose a release strategy (canary/blue-green/flag) that suits my context.
- [ ] I have a clear and fast rollback plan ready before deployment.
- [ ] I added the most critical business paths (e.g. payment) to my Smoke tests myself.
- [ ] Post-deploy, I monitor the golden signals through an observation window.
- [ ] I also planned irreversible steps (database migration, etc.).
- [ ] I verified the AI blueprint at every step; I made the decision to go live.
Module Exam
1. Which of the following is the best positioning for DevOps and AI in the cloud?
- A) Artificial intelligence is an assistant and decision support tool; People are responsible for critical decisions affecting the product ✔
- B) Artificial intelligence can finalize prod deployments and secret rotation without human approval
- C) Artificial intelligence is only useful for writing documentation, it has nothing to do with infrastructure
- D) Audit is unnecessary because artificial intelligence always produces more reliable commands than the engineer
Description: It is an assistant and decision support tool that accelerates text-intensive tasks such as artificial intelligence pipeline, configuration, script and log. Responsibility for decisions affecting downtime, money and security, such as production release, secret management and final application, remains with the competent engineer.
2. Which is the most accurate expression for the verification discipline before implementing a DevOps command or configuration produced by artificial intelligence?
- A) If the output looks smooth and confident it can be run directly in prod
- B) Output is safe only if there are no syntax errors, no further checks are required
- C) Connect the output to the source, plan/dry-run, and filter it with your system context; then apply ✔
- D) Making the first try directly in the prod and watching the result is the fastest verification
Explanation: Three-step verification is essential: connecting the output to the source (is the command/flag actually in the official docs), running it dry (seeing what happens with the plan/--dry-run), and passing it through the system filter (does it fit within its architectural and security context). Fluency does not mean accuracy.
3. What is the correct approach when asking artificial intelligence about an error or deployment issue with an .env file that contains a real database password?
- A) Mask real secrets with <PLACEHOLDER>; share only masked error and context ✔
- B) Pasting the entire .env file as is solves the problem faster
- C) Since the secrets are already base64, it is safe to paste plain
- D) Pasting the password is safe because artificial intelligence never stores it
Description: No real secrets are pasted into the AI prompt. Values such as passwords and tokens are masked with <PLACEHOLDER>; only the error message and necessary context are shared. If the Secret has already been leaked, it should be canceled and rotated immediately.
4. Which of the following is the correct management of secrets (password, token) in a CI/CD pipeline?
- A) It is kept in the platform's secret repository and called by reference (e.g. ${{ secrets.X }}), not written in plain text ✔
- B) Written in plaintext to pipeline YAML for convenience
- C) It is verified by pressing echo and log at the beginning of each job.
- D) If defined with the broadest permission (write-all), security increases
Explanation: Secrets are not written to YAML in plain text; It is kept in the platform's secret repository and called with references such as ${{ secrets.X }}. Additionally, with the principle of least authority, token permissions are narrowed and the secret log is not recorded.
5. In infrastructure management with Terraform, what is the most critical step to take before implementing a change live?
- A) Running 'terraform apply' directly; the plan is a waste of time
- B) Backing up the State file to a public repository
- C) Run 'terraform plan' and check the destroy/replace lines in the output, then apply ✔
- D) Uninstall the Provider version and ensure that the newest version comes automatically
Explanation: 'terraform plan' must be run before 'terraform apply'. The plan shows what to add, what to change, and especially what to delete (destroy), without doing anything. If an unexpected destroy or replace line is seen, apply should not be applied.
6. What does it mean and what should be done if the '-/+ replace' line for the production database appears in a Terraform plan output?
- A) The source will just be updated on-site, there is no risk
- B) The resource will be deleted and recreated; There is a risk of data loss, apply should be stopped if not expected ✔
- C) Adding a new resource, existing database is not affected
- D) This is just a warning, can be safely ignored
Explanation: '-/+ replace' means the resource will be deleted and recreated; For a database, this means data loss. If not expected, apply should be stopped, the change should be converted to a safe method, or the immutable field should be left untouched.
7. Which of the following is true for a Dockerfile to be production ready in terms of its security and size?
- A) For convenience, embedding the secret in the image with ENV and running it as root
- B) Always use the ':latest' tag and keep the base image as large as possible
- C) Single-stage build and leaving all build tools in the final image
- D) Not embedding the Secret, working with unauthorized USER, using small and stable base image and multi-stage build ✔
Description: A production-ready image: does not embed the secret (injects it at runtime), runs with an unauthorized USER instead of root, uses a small and versioned base image (slim/alpine, not :latest), and is scaled down with a multi-stage build. It is also scanned for vulnerabilities before publication.
8. What is the most important risk of not defining resource limits for a Deployment in Kubernetes?
- A) Pod never starts because limit is a required field
- B) Only a warning appears on the monitoring board, operation is not affected
- C) Kubernetes automatically enforces safe default limits, no risk
- D) The pod can grow unlimitedly and consume the resources of the node, thus crashing neighboring services ✔
Explanation: A Pod that has no resource limit can grow unlimitedly, consume all the resources of the node it is running on, and crash neighboring services, for example, with a memory leak. That's why defining requests/limits is the basis of robustness.
9. How to avoid 'alert fatigue' in monitoring and alarm setup?
- A) Set alarms on as many metrics as possible and generate alerts with every fluctuation.
- B) Set all alarms to the highest severity level
- C) Triggering alarms with instantaneous values without setting a time (for)
- D) Keeping alarms action-oriented and at the right urgency, testing thresholds with historical data, merging unnecessary ones ✔
Description: Each alarm must be actionable and of the right urgency; Information that does not require action is displayed on the board, it does not wake anyone up. Alarm thresholds are tested against the system's historical data and unnecessary/repetitive alarms are consolidated. This way the real alarm won't get lost in the noise.
10. What is the best priority order during a production incident?
- A) First find the exact root cause and reduce it only when the cause is clear.
- B) First write the postmortem report, then touch the service
- C) Reduce first (restore/restore service), leaving root cause analysis for later ✔
- D) First find the person responsible for the incident and report it
Explanation: The golden rule is 'reduce first, investigate later'. The goal is to first restore the service or roll it back to a known-good version (mitigate); Root cause analysis is done calmly after the pressure subsides. Waiting to find the exact root cause increases recovery time (MTTR).
11. What is the main purpose of blameless postmortem culture?
- A) Identifying the person who made the mistake and placing the responsibility on him/her
- B) Focusing on systems and processes and encouraging learning; ✔ Learning lessons that prevent repetition rather than blaming
- C) Never report the incident and ensure that it is forgotten
- D) Writing only technical details and not adding actionable items
Explanation: Blameless postmortem focuses on the question 'which system and process allowed this mistake', not 'who did it'. People share the mistake openly if they know they will not be punished; The hidden error is repeated. The report is not an accusation report, but a learning document full of action-oriented items.
12. In cloud cost optimization (FinOps), what is the most logical step to take before moving to committed discounts (Reserved/Savings Plan)?
- A) Take the longest possible commitment first, think about waste later
- B) First, clean up the waste (idle closure, right-sizing), then commit to committed use ✔
- C) Move all resources to Spot capacity immediately
- D) Deleting the most expensive item without reviewing the invoice data
Explanation: Waste must be cleaned up first (closing idle resources, reducing oversized resources). Otherwise, you will lock the wasted usage at a discounted price for 1-3 years. Right-sizing and idle cleaning require no commitment and are close to risk-free.
13. What is the most important security measure if an AI-suggested script has the 'rm -rf "$DIR"/' line?
- A) Running the script directly in prod without reading it will speed up
- B) Add set -euo pipefail and empty variable control and try with dry-run first ✔
- C) Shortening the variable name is sufficient
- D) Using rm -rf --force instead of rm solves the problem
Explanation: If $DIR is empty, this statement may attempt to delete the root directory. Stopping at the undefined variable with 'set -u' and checking that the variable is not empty before deleting it (e.g. [ -n "$DIR" ] || exit 1) avoids disaster. Additionally, destructive operations should be tried with dry-run first.
14. What is the first thing to do if a cloud access key accidentally leaks into a public repository?
- A) Immediately cancel and renew (rotate) the key; Deleting alone is not enough ✔
- B) Just delete the file from the storage and the key is safe
- C) Not doing anything because no one saw it
- D) Making the storage private eliminates the need to rotate the key
Explanation: The leaked secret must be canceled and rotated immediately. Just deleting the file is not enough because the secret remains in Git history and public repositories are scanned by bots within seconds. After cancellation/return, the impact is evaluated and a secret scanner is added to prevent recurrence.
15. Which of the following approach minimizes risk when releasing a new version of Prod?
- A) Giving the new version to all users at the same time (big-bang) and not preparing a rollback plan
- B) Considering the deployment finished as soon as it appears 'green', not performing additional verification
- C) Using a controlled strategy such as canary/blue-green/feature flag, ready-made rollback plan and smoke test + metric monitoring after deployment ✔
- D) Leaving the testing of critical business paths entirely to artificial intelligence and not determining them at all.
Explanation: Controlled release strategies (starting with a small percentage with canary, immediate rollback with blue-green, separating deployment from release with feature flag) limit risk. In addition, a clear rollback plan before deployment and golden signal monitoring with smoke testing after deployment are essential; 'looking green' doesn't mean it works.