AAmit’s LibraryLEARN · PRACTISE · REFLECT

BCA

DevOps and dependable business delivery

Study map: Original foundation and applied lesson; editorially linked to the named subject

DevOps concerns the cooperation and practices needed to change and operate software dependably. It is broader than one automation product. Development creates and modifies the program; operation observes its behaviour in the environment where people rely on it. The two must share a definition of success, a way to detect failures and a method for recovering. A script that runs on its author's laptop is only one piece of that evidence.

Foundation: keep development and operation connected

DevOps concerns the cooperation and practices needed to change and operate software dependably. It is broader than one automation product. Development creates and modifies the program; operation observes its behaviour in the environment where people rely on it. The two must share a definition of success, a way to detect failures and a method for recovering. A script that runs on its author's laptop is only one piece of that evidence.

Version control records changes to code and explanation. Automated checks can test a candidate change before release. A release makes a selected version available to its intended users. Monitoring then asks whether it behaves acceptably in use. These stages are related but distinct: a successful test run does not prove that deployment used the tested files, and a successful upload does not prove that the new workflow improves the business.

Begin with a small release contract: which version, which checks, which expected outputs, which environment and who may approve. Include a recovery path. For the order workshop, the release contains the script, fixture, tests and learning explanation together. The process must not silently mix a new rule with an old expected output.

Undergraduate: design a meaningful local check pipeline

A simple local sequence is to run unit tests, run the demonstration, compare its output with hand-calculated expectations and inspect changed files. Each stage should have an explicit failure condition. Tests exercise normal input, duplicates, conflicts and rejection. The demonstration makes behaviour visible to a learner. Neither stage should perform a real payment or production update.

Continuous integration normally runs checks when changes are proposed or combined. A workflow definition names events, jobs and steps, but installing a workflow is not the same as demonstrating that it ran successfully. This release supplies a local command sequence; it does not create a hosted CI service or claim a remote run. A learner can later translate the same checks into a chosen platform after reviewing its access and cost conditions.

Keep reproducibility practical. State the Python version used for verification, use standard-library dependencies where possible and package the fixture. Unexpected dependency changes can alter behaviour. Record the results that justify a release rather than merely reporting that there were no visible errors. A test failure should block the relevant release until understood.

Postgraduate: balance throughput, reliability and authority

Apply a change–check–release–observe–recover framework. Link a change to its requirement, check technical and business consequences, release an identifiable package, observe failures and recover when needed. A rollback can restore code while leaving records created under the new version. Decide separately how those records are reconciled; do not assume that reverting a file reverses every effect.

Coordination matters across departments. A change to rejection rules may reduce incorrect orders while increasing support contacts. Explain the rule to sales and customer service before rollout, provide examples and designate an exception owner. Measure error escape, correction burden and service completion together. Improving release frequency at the expense of confusion is not automatically progress.

Separate approval from execution when appropriate. The person preparing a change may be unable to approve a sensitive business rule alone. Document consultation, accountability and escalation without creating an unnecessary approval maze for every harmless edit. Match controls to the consequence of failure and preserve an audit trail that a human can interpret.

Research: test the mechanism rather than the label

A study might ask whether hand-calculated regression fixtures reduce erroneous reporting releases. Define an error, the comparison period and how errors are detected. Increased detection after adding tests can initially raise recorded defects. Distinguish newly discovered problems from newly introduced ones.

Compare like workloads and changes. Larger releases, staffing differences and improved support reporting can affect outcomes independently of automation. Interviews may explain why a check was bypassed or why an alert was ignored. Logs provide useful evidence but cannot establish organisational trust or user understanding by themselves.

Submit a release checklist, test report, version note and recovery plan. Include what the tests do not cover: concurrent writers, real network calls, infrastructure failure and production identity. Explain who can stop a release and how a customer-impacting error is escalated. The objective is understandable dependable change, not accumulating badges for tools whose behaviour the learner cannot explain.

Study questions and answers

Why are upload success and service success different?

Upload confirms a deployment operation completed; service success requires correct behaviour and useful outcomes. Identify the version, test actual behaviour and observe exceptions. Indicative marking: Correct concept or result 3; explanation 3; relevant case application 2; boundary or limitation 2.

Outline the local release check sequence.

Run tests, run the demonstration, compare with independent expected counts and values, inspect changed files, and record the candidate version. Stop on unexplained failure. Indicative marking: Correct concept or result 3; explanation 3; relevant case application 2; boundary or limitation 2.

Does reverting code reverse records already created?

No. Code rollback and data reconciliation are separate. Preserve traceability and define how records produced by the new version are corrected or retained. Indicative marking: Correct concept or result 3; explanation 3; relevant case application 2; boundary or limitation 2.

Why might recorded defects rise after adding tests?

Detection can expose pre-existing defects. Separate newly discovered from newly introduced problems and compare consistent workloads and detection conditions. Indicative marking: Correct concept or result 3; explanation 3; relevant case application 2; boundary or limitation 2.

Extended practice questions

Why are upload success and service success different?

Upload confirms a deployment operation completed; service success requires correct behaviour and useful outcomes. Identify the version, test actual behaviour and observe exceptions.

Marking guide: Correct concept or result 3; explanation 3; relevant case application 2; boundary or limitation 2.

Marks: 10

Outline the local release check sequence.

Run tests, run the demonstration, compare with independent expected counts and values, inspect changed files, and record the candidate version. Stop on unexplained failure.

Marking guide: Correct concept or result 3; explanation 3; relevant case application 2; boundary or limitation 2.

Marks: 10

Does reverting code reverse records already created?

No. Code rollback and data reconciliation are separate. Preserve traceability and define how records produced by the new version are corrected or retained.

Marking guide: Correct concept or result 3; explanation 3; relevant case application 2; boundary or limitation 2.

Marks: 10

Why might recorded defects rise after adding tests?

Detection can expose pre-existing defects. Separate newly discovered from newly introduced problems and compare consistent workloads and detection conditions.

Marking guide: Correct concept or result 3; explanation 3; relevant case application 2; boundary or limitation 2.

Marks: 10

A team deploys quickly but operations cannot identify which version caused a service error. What should dependable delivery add?

Link the deployed artefact to its source version, configuration and release record. Preserve the deployment time, responsible role and observed outcome. Agree how operations reports incidents and how developers investigate or revert a change. Speed without traceability can make recovery harder. Automate suitable checks, but keep explicit release authority and a tested recovery route for the intended service. A deployment tool records steps; it does not decide whether the customer impact is acceptable. Review failed and uneventful releases so that learning improves both delivery and operation rather than rewarding frequency alone.

Marking guide: Artefact/source/config trace; incident/recovery cooperation; authority; customer impact; balanced learning. Indicative allocation: reasoning 4; application or workings 3; assumptions and limits 3.

Marks: 10

Compare continuous integration with deployment to a live service.

Continuous integration combines changes frequently and runs defined checks to expose conflicts or defects early. Deployment places an artefact into a specified environment; a live-service deployment also creates operational commitments. A passing integration workflow does not prove that every live condition or business risk has been tested. Define environments, secrets handling, approvals and rollback or recovery procedures. Developers and operations share useful evidence, while the authorised owner decides release conditions. Automation supports repeatability, but an automated workflow can repeat a mistake quickly if its checks or configuration are incomplete.

Marking guide: Integration/checks versus environment change; live commitments; approvals/secrets/recovery; test limits. Indicative allocation: reasoning 4; application or workings 3; assumptions and limits 3.

Marks: 10

Forty synthetic deployments include six classified as failed changes; four of those are rolled back. Calculate failed-change share and rollback share among failures.

Failed-change share is 6/40 = 15%. Rollback among failed changes is 4/6, approximately 66.67%. Rollback over all deployments is 4/40 = 10%, a different measure. State the definition and observation period for a failed change. A rollback may restore one component while leaving a data correction or customer follow-up outstanding. These counts do not describe severity, recovery time or whether failures were detected completely. Management should review customer effects and technical evidence, not equate deployment frequency or a low reported failure percentage with trustworthy service.

Marking guide: 15%/66.67%/10%; classification period; rollback versus full recovery; severity/detection. Indicative allocation: reasoning 4; application or workings 3; assumptions and limits 3.

Marks: 10

Design a release rehearsal for a small business application.

Use a test environment and synthetic records. Record the source version, artefact and configuration assumptions, then run the agreed checks. Rehearse a failed release, a service-health investigation and the recovery procedure. Verify relevant data state after recovery rather than relying only on a successful command message. Keep secret values out of logs and document who may approve each step. Compare the rehearsal with actual live dependencies and state what was not tested. A bounded rehearsal makes responsibilities and evidence clearer; it is not a guarantee that every future release will be safe.

Marking guide: Test environment/version/config; failure and recovery; post-recovery state; secrets/authority; live gaps. Indicative allocation: reasoning 4; application or workings 3; assumptions and limits 3.

Marks: 10

Revision cards

Why link a deployment to a build identity?

The team needs to know which reviewed artifact reached the operating environment. Link tests, configuration and approval to it. A deployment date alone may not distinguish different builds or later configuration changes.

A team deploys quickly but operations cannot identify which version caused a service error. What should dependable delivery add?

Connect deployed artefacts to source, configuration and outcome, with release and recovery owners. Deployment speed alone does not establish dependable service.

Compare continuous integration with deployment to a live service.

Integration checks combined changes; deployment changes an environment. Passing CI is bounded evidence, not proof that every production condition is safe.

Forty synthetic deployments include six classified as failed changes; four of those are rolled back. Calculate failed-change share and rollback share among failures.

Failed changes 15%; rollback among failures about 66.67%, or 10% of all deployments. Rollback does not automatically complete data or customer recovery.

Design a release rehearsal for a small business application.

Rehearse release, failure and recovery with synthetic records, then verify data state. Record artefacts, configuration, authority and untested live dependencies.

What should a release pause trigger contain?

Define the observed condition, measurement boundary, responsible decision owner and fallback action. Use meaningful service failures and inspect uncertainty. A threshold without ownership cannot reliably protect the operating process.

Why can code rollback be insufficient after a faulty release?

Data changes, messages and customer commitments may remain. Identify reversible effects and a separate correction or reconciliation plan. Restoring old code does not automatically restore every business outcome.

Why distinguish deployment frequency from delivery value?

Frequency measures how often versions are deployed; value depends on useful outcomes and costs under the workflow. Many small releases can still create defects or confusion. Evaluate reliability, recovery and customer consequences alongside delivery activity.

What should a release artifact identify?

Record the built version, relevant inputs and configuration assumptions so the deployed object can be traced. Keep secrets appropriately separate. A source-code branch name alone may not identify the exact artifact users received.

How should a rollback plan handle data written by a newer version?

Check compatibility and identify corrections or migration needs separately from replacing application code. Earlier software may misinterpret newer records. A successful code rollback does not guarantee that information or customer commitments returned to their prior state.

Practice task

Complete computing-workshop.html: predict category counts and totals, run the script and tests, then submit the six portfolio deliverables.

Sources and further reading

Open interactive reading and progress tools