15. Data, AI and Emerging Cloud Deployment PracticesIntroduction and ContextCloud deployment has moved beyond hosting web applications and databases. Modern organisations increasingly deploy data pipelines, analytical platforms, machine-learning models, generative-AI services, and automated operational systems across public, private, hybrid, and edge environments. The deployment problem is therefore no longer simply how to make software available on a server. It is how to make data and intelligent services reliable, secure, explainable, economical, governable, and continuously improvable. This chapter extends the deployment principles introduced earlier in the programme—automation, infrastructure as code, observability, security, scalability, and continuous delivery—into data-intensive and AI-enabled systems. AWS, Microsoft Azure, and Google Cloud provide broadly similar capabilities, although their service names, integration patterns, and operating models differ. For example, a production solution may combine object storage, managed streaming, a warehouse or lakehouse, a feature store, a model registry, managed Kubernetes, serverless inference, and a policy-based deployment pipeline. The central argument is that AI deployment is a socio-technical discipline. A technically accurate model can still fail because its training data is stale, its predictions are not monitored, its costs are uncontrolled, or its use violates privacy and professional obligations. Successful cloud deployment therefore requires coordination among application engineers, data engineers, ML engineers, security specialists, domain experts, compliance teams, and business owners. Learning ObjectivesAfter studying this chapter, a learner should be able to: 1. Explain the architecture and deployment lifecycle of cloud data pipelines, analytical platforms, ML inference systems, and generative-AI services. 2. Distinguish MLOps, AIOps, platform engineering, GitOps, edge cloud, and confidential computing. 3. Select suitable deployment patterns by evaluating latency, accuracy, reliability, cost, privacy, portability, and governance. 4. Design responsible controls for data quality, model risk, access management, observability, and human oversight. 5. Analyse a production deployment case involving analytics, machine learning, generative AI, and emerging cloud practices. 6. Evaluate current trends and make defensible technical and managerial recommendations. From Cloud Applications to Intelligent SystemsA conventional cloud application receives a request, executes business logic, reads or writes data, and returns a response. A data and AI system introduces additional flows: events are collected, transformed, stored, labelled, analysed, used to train a model, and eventually consumed by an online or batch prediction service. These flows have different time scales. A fraud decision may require a response within milliseconds; a daily financial report may tolerate several hours; model retraining may occur weekly; and regulatory archiving may continue for years. A useful conceptual model separates four planes: - Data plane: operational databases, object storage, event streams, warehouses, lakehouses, feature stores, and vector indexes.
- Model plane: training jobs, experiment tracking, model registries, evaluation artefacts, prompt templates, and model versions.
- Serving plane: APIs, batch inference, real-time endpoints, retrieval-augmented generation (RAG), model gateways, and edge runtimes.
- Control plane: identity, policy, CI/CD, infrastructure as code, observability, cost management, lineage, approvals, and incident response.
The planes are connected but should not be confused. A model registry is not a data-quality system, and an API gateway is not a substitute for model monitoring. Treating all components as one undifferentiated application commonly produces weak ownership and unclear failure handling. Important terminologyA data pipeline moves and transforms data between sources and destinations. Ingestion may be batch-oriented or streaming. Extract, transform, load (ETL) transforms data before loading it, whereas extract, load, transform (ELT) loads relatively raw data first and transforms it within the analytical platform. A data lake stores diverse data at comparatively low cost, while a data warehouse generally provides highly structured, governed analytical storage. A lakehouse attempts to combine the flexibility of a lake with warehouse-style transactions, governance, and performance. A data contract is an explicit agreement between a data producer and consumer about schema, semantics, quality, ownership, and change management. Data lineage records where data originated, how it was transformed, and where it is used. Data drift refers to changes in input distributions, while concept drift occurs when the relationship between inputs and the target outcome changes. A feature is an input variable used by a model. A feature store manages reusable features for training and inference, reducing inconsistency between these environments. Inference is the use of a trained model to produce a prediction or generated response. Online inference serves requests interactively; batch inference processes a collection of records on a schedule. Model serving is the operational delivery of inference through an endpoint, job, or embedded runtime. A foundation model is a large model trained on broad data and adapted to many tasks. Fine-tuning changes model parameters using task-specific data. Prompt engineering designs instructions and context without changing the model parameters. Retrieval-augmented generation retrieves relevant organisational information and supplies it to a generative model at request time. A vector embedding represents content numerically so that semantically similar items can be retrieved. Deploying Data Pipelines and Analytical PlatformsA dependable pipeline begins with source analysis rather than tool selection. Architects identify data owners, sensitivity classifications, expected volume, arrival patterns, acceptable delay, retention requirements, and downstream consumers. A streaming design may be appropriate for telemetry or fraud detection, whereas a scheduled batch design may be simpler and more economical for payroll reporting. A typical cloud pipeline contains source connectors, an ingestion layer, durable storage, transformation and validation jobs, a serving layer, and governance controls. Events may enter a managed message or streaming service, be written to object storage, and then be processed by serverless functions, distributed data engines, or managed orchestration services. Curated data can be exposed through a warehouse, lakehouse tables, dashboards, APIs, or feature-serving infrastructure. The raw zone should generally preserve source data with controlled access and retention. A refined zone applies schema validation, deduplication, standardisation, and quality rules. A curated zone presents business-ready data with documented semantics. This layered design supports reprocessing when transformation logic changes, but it also creates storage and governance obligations. Raw data must not become an unmanaged dumping ground. Data quality should be measured rather than assumed. Useful dimensions include completeness, validity, uniqueness, consistency, timeliness, and accuracy. Quality checks can be implemented as pipeline tests and may stop a release, quarantine a partition, or create an alert. A failed quality check should have an explicit operational response; merely displaying a red dashboard is insufficient. Analytical architecture also requires workload separation. Transactional workloads optimise for frequent small updates, whereas analytical workloads optimise for scans, aggregation, and concurrency. A warehouse, lakehouse, or federated query layer should be selected according to data formats, governance needs, query patterns, team expertise, and expected growth. Cost controls include partitioning, compression, lifecycle policies, workload quotas, caching, and shutting down temporary compute. MLOps: Making Models OperableMLOps applies software engineering and operations discipline to the ML lifecycle. Its scope is broader than model deployment because it includes data, experiments, training, validation, release, monitoring, retraining, and retirement. A practical MLOps lifecycle is: 1. Define the business decision and success measures. 2. Collect, govern, label, and validate data. 3. Build reproducible training and evaluation workflows. 4. Track code, data references, parameters, dependencies, and artefacts. 5. Register candidate models and apply approval criteria. 6. Deploy progressively to an endpoint, batch job, or edge device. 7. Monitor service, data, model, and business metrics. 8. Retrain, roll back, or retire the model when conditions require it. A model registry provides versioning and promotion states such as development, staging, approved, and production. Approval should consider more than predictive accuracy. It may include calibration, subgroup performance, robustness, explainability, latency, cost, security, and legal constraints. Reproducibility requires immutable or addressable references to training data, code, configuration, and runtime dependencies. Model deployment patterns include shadow deployment, in which a new model receives production traffic but does not influence decisions; canary deployment, in which a small percentage of decisions use the new model; blue-green deployment, in which two complete environments are switched; and champion-challenger deployment, in which an established model is compared with a candidate. These patterns reduce the risk of replacing a model abruptly. Monitoring must cover four related but distinct areas. Service monitoring measures latency, availability, throughput, and resource use. Data monitoring detects missing fields, unusual distributions, and schema changes. Model monitoring measures accuracy or proxy signals when labels become available. Business monitoring checks outcomes such as fraud loss, conversion, service rejection, or customer complaints. A model can have excellent technical metrics and still damage business performance if the decision threshold or operating context is wrong. Generative-AI Deployment and Responsible InferenceGenerative-AI services introduce additional operational concerns. A production architecture may include a user interface, identity service, prompt and policy layer, retrieval service, vector database, model gateway, content filters, response validator, logging system, and human escalation path. The model itself is only one component. RAG is often preferable to placing frequently changing organisational facts directly into a model. Documents are classified, chunked, embedded, indexed, retrieved, and inserted into a prompt. The approach can improve factual grounding, but it does not guarantee truth. Retrieval quality, document permissions, prompt injection, outdated content, and model interpretation remain risks. Access control must apply to retrieved documents, not merely to the final application screen. Generative systems should be evaluated using task-specific test sets and adversarial cases. Evaluation may include factual groundedness, relevance, refusal behaviour, toxicity, leakage of confidential information, latency, token consumption, and user satisfaction. Automated evaluation is useful but should be supplemented by expert review for high-impact tasks. Prompt and model versions should be treated as release artefacts. A seemingly minor prompt change can alter behaviour, cost, or safety. Sensitive prompts and outputs require retention policies and careful redaction. Organisations should not send confidential or personal data to an external model provider without an approved legal, security, and contractual basis. A Comparative View of Emerging Deployment PracticesAIOps applies analytics, machine learning, and automation to IT operations. It can correlate alerts, identify anomalies, forecast capacity, and recommend or execute remediation. AIOps is operationally valuable when it reduces noise and accelerates diagnosis, but automated remediation requires bounded permissions, tested runbooks, audit trails, and a safe rollback path. AIOps should not be confused with MLOps: MLOps operates ML products, while AIOps improves the operation of technology estates. Platform engineering creates an internal developer platform with approved templates, deployment workflows, observability, security defaults, and self-service interfaces. Its objective is not to hide infrastructure completely, but to reduce cognitive load and provide a reliable “golden path.” A platform team must balance standardisation with escape routes for legitimate special cases. Measuring platform adoption, developer lead time, failure rates, and user satisfaction is more useful than measuring the number of platform features. GitOps treats a version-controlled repository as the declarative source of desired infrastructure and application state. An agent reconciles the desired state with the actual cluster or cloud environment. Git history supports review and audit, while reconciliation helps recover from configuration drift. GitOps is powerful for Kubernetes and infrastructure, but secrets, emergency changes, generated resources, and external dependencies require careful design. GitOps does not eliminate the need for testing or incident procedures. Confidential computing protects data while it is being processed through hardware-backed trusted execution environments. It can reduce exposure to cloud operators or other privileged infrastructure layers, particularly for sensitive analytics and inference. It introduces attestation, key-management, performance, debugging, and vendor-support considerations. Confidential computing complements, rather than replaces, encryption at rest, encryption in transit, identity controls, and application security. Edge cloud places computation near devices, users, or data sources. It is valuable where latency, connectivity, bandwidth, data sovereignty, or local autonomy matters. Edge deployments create a larger and more heterogeneous fleet, making patching, observability, identity, model distribution, and physical security difficult. A common pattern is hybrid inference: a compact model runs at the edge and complex or periodic processing occurs in a regional or central cloud. Autonomous operations aims to allow systems to detect, decide, and act with limited human intervention. It should be viewed as a spectrum rather than a binary state. Advisory automation, approval-based remediation, and fully automated remediation represent increasing autonomy and risk. Autonomy is appropriate only when objectives are clear, actions are reversible, permissions are restricted, and performance is continuously verified. A Decision Framework for Production SelectionTechnology selection should begin with constraints and failure consequences. The following questions provide a practical framework: - What is the required latency, availability, and recovery objective?
- Is the workload batch, streaming, online, edge, or mixed?
- What data is sensitive, regulated, proprietary, or subject to residency rules?
- How quickly do schemas, features, prompts, or models change?
- What evidence is required to explain and audit a decision?
- What is the expected cost at normal, peak, and failure volume?
- Which capabilities must remain portable across cloud providers?
- Can the team operate the selected service securely and reliably?
Managed services usually reduce undifferentiated operational work, but may introduce provider coupling, opaque pricing, regional limitations, or restricted customisation. Kubernetes can provide portability and a common control model, but it transfers substantial operational responsibility to the organisation. A sound decision compares total cost of ownership and operational capability rather than treating portability as free. Illustrative Case: NimbusCare’s Intelligent Appointment PlatformBackgroundNimbusCare, a fictional regional healthcare network, operates hospitals and outpatient clinics. It wants to reduce appointment no-shows, provide analysts with timely operational data, and offer staff a generative assistant that answers questions about approved internal procedures. Patient data is sensitive, and clinical decisions are explicitly outside the assistant’s scope. Situation and ProblemExisting systems export nightly files. Managers receive reports two days late, appointment reminders are based on simple rules, and staff search multiple document repositories. A proposal recommends a single cloud AI platform with unrestricted model access. The technology team must decide whether this proposal is appropriate and design a safer production architecture. AnalysisThe use cases have different requirements. Operational dashboards need frequent data refresh but not millisecond response. No-show prediction requires reliable historical labels and careful evaluation because errors may affect access to care. The staff assistant requires document-level authorisation, citations, refusal behaviour, and human escalation. Patient identifiers require strict minimisation, retention, and access controls. The organisation also needs an auditable deployment process and a credible recovery plan. Approach and StrategyNimbusCare adopts a layered hybrid architecture. Source systems publish approved events to a managed streaming service; raw and refined data are stored in encrypted object storage; curated datasets are served through a governed analytical warehouse. Data contracts specify required fields and change notification. Quality tests quarantine malformed events rather than silently accepting them. A feature pipeline creates appointment-related features without exposing unnecessary clinical detail. Training runs are reproducible and produce a registered model. The candidate model is evaluated for discrimination, calibration, subgroup performance, and operational impact. It is first shadowed, then released through a canary. Predictions support reminder prioritisation, but staff can override automated recommendations and patients are not denied care solely because of a prediction. For the assistant, documents are classified and indexed in a permission-aware vector store. Retrieval filters are applied using the user’s identity before context reaches the model. The assistant provides citations, refuses clinical diagnosis, masks sensitive output where appropriate, and routes uncertain or high-risk requests to staff. Prompt, retrieval, model, and policy changes pass through versioned review and regression tests. The internal developer platform provides templates for data jobs, model endpoints, logging, identity, and policy checks. GitOps manages declarative deployment to managed Kubernetes for selected services, while managed serverless components are used where they reduce operational burden. A central observability service combines pipeline failures, endpoint latency, model drift, and business indicators. Automated remediation is limited to low-risk actions such as restarting an unhealthy worker; changes affecting patient-facing decisions require approval. OutcomeIn this illustrative case, NimbusCare achieves more timely reporting and a controlled prediction service without treating AI as an autonomous clinical authority. The architecture costs more than a simple nightly export, but it provides stronger traceability, safer access controls, and clearer accountability. Its principal success is not the choice of a particular cloud vendor. It is the alignment of architecture, governance, operating procedures, and business risk. Learning PointsThe case demonstrates that one organisation may legitimately use several deployment patterns. Streaming and batch can coexist; managed services and Kubernetes can coexist; predictive models and generative models require different controls; and automation should be proportional to consequence. Most importantly, responsible deployment is designed before production release rather than added after an incident. Risks, Governance, and Professional ResponsibilityData and AI systems amplify ordinary cloud risks. Misconfigured storage can expose training data; excessive permissions can allow unauthorised retrieval; insecure dependencies can compromise inference services; and poorly designed logging can reproduce sensitive information. Threat modelling should include data poisoning, model theft, prompt injection, indirect prompt injection through documents, insecure tool use, denial of service, and supply-chain compromise. Governance should identify an accountable owner for each dataset, model, service, and decision. Policies should define acceptable use, retention, access, human review, incident notification, model retirement, and change approval. Privacy principles such as purpose limitation, data minimisation, accuracy, retention control, and subject rights should be reflected in architecture and workflows. Regulatory obligations vary by jurisdiction and sector; professional teams must obtain appropriate legal and compliance advice rather than assuming that a cloud provider’s certification transfers organisational responsibility. Fairness cannot be reduced to one universal metric. Different measures may conflict, and a technically balanced model may still produce unfair outcomes because the target, workflow, or access to appeal is unjust. Teams should involve domain experts and affected stakeholders, document limitations, test relevant subgroups, and provide correction or appeal mechanisms where appropriate. Common mistakes include deploying a model without a rollback plan, treating a dashboard as monitoring, logging raw prompts indefinitely, assuming RAG eliminates hallucination, allowing platform teams to become bottlenecks, and selecting services solely because they are fashionable. Another frequent error is confusing a successful demonstration with a production capability. Production readiness requires evidence of security, reliability, cost behaviour, governance, and operational ownership. Current Developments and Best PracticesCloud providers increasingly offer managed vector search, model gateways, evaluation services, confidential workloads, accelerator infrastructure, and integrated data governance. Smaller specialised models, quantisation, distillation, and edge inference are improving the economics of local processing. Event-driven architectures and real-time feature computation are becoming more common, although they increase consistency and observability challenges. A mature organisation should adopt the following practices: 1. Begin with a measurable business decision and a defined risk classification. 2. Make data ownership, contracts, lineage, and quality tests explicit. 3. Version code, configuration, prompts, models, schemas, and evaluation data. 4. Separate development, test, and production identities and environments. 5. Use least privilege, encryption, secret management, network controls, and supply-chain scanning. 6. Monitor technical, data, model, business, security, and cost indicators together. 7. Release progressively and maintain tested rollback or model-reversion procedures. 8. Apply human oversight to high-impact or difficult-to-reverse decisions. 9. Design an internal platform around reusable, secure golden paths rather than a collection of tools. 10. Review whether automation remains appropriate as data, models, regulations, and organisational objectives change. Chapter SummaryData and AI cloud deployment combines pipelines, analytical storage, model operations, inference services, and governance. Data pipelines require contracts, quality controls, lineage, and workload-appropriate storage. MLOps makes model development reproducible and operational through registries, progressive delivery, monitoring, and retraining. Generative-AI systems require permission-aware retrieval, evaluation, prompt governance, output controls, and human escalation. AIOps improves IT operations, whereas MLOps operates ML products. Platform engineering supplies secure self-service paths; GitOps reconciles declarative desired state; confidential computing protects data during processing; edge cloud places computation near data or users; and autonomous operations increase automation subject to bounded risk. Production decisions should weigh latency, reliability, privacy, governance, cost, portability, and team capability. The NimbusCare case illustrates that responsible deployment depends on architecture and institutional accountability together. Key TermsData contract: An agreement defining a dataset’s schema, meaning, quality, ownership, and change rules. Data lineage: A record of data origins, transformations, and downstream uses. Lakehouse: A data platform combining lake-style flexibility with warehouse-style governance and analytical capabilities. Feature store: A system for managing, serving, and reusing ML features consistently. Inference: The process of using a trained model to produce a prediction or generated response. Model registry: A controlled repository containing model versions, metadata, evaluation results, and promotion status. MLOps: Practices that operationalise the development, deployment, monitoring, and governance of ML systems. Data drift: A change in the statistical distribution of model inputs. Concept drift: A change in the relationship between inputs and the outcome a model predicts. AIOps: The use of analytics, ML, and automation to improve IT operations. RAG: Retrieval-augmented generation, in which retrieved information supplies context to a generative model. Embedding: A numerical representation designed to capture semantic or other meaningful relationships. Prompt injection: An attempt to manipulate an AI system through instructions in user input or retrieved content. Platform engineering: The creation of internal platforms that provide developers with standardised self-service capabilities. GitOps: A declarative operating model in which version-controlled repositories represent desired system state. Confidential computing: Protection of data during processing using hardware-backed trusted execution environments. Edge cloud: Cloud-connected computation located near users, devices, or data sources. Canary deployment: A release method that directs a small portion of traffic to a new version before wider rollout. Model drift: A decline or change in model behaviour caused by changing data, relationships, or operating conditions. Autonomous operations: Operational processes in which systems detect conditions and take actions with limited human intervention. Review QuestionsShort Answer Questions1. How do ETL and ELT differ, and why might an organisation choose one over the other? 2. What is the purpose of a model registry in an MLOps lifecycle? 3. Distinguish data drift from concept drift. 4. Why must access control be applied before documents are supplied to a RAG system? 5. What problem does GitOps attempt to solve? Long Answer Questions1. Explain the four-plane architecture for cloud data and AI systems and show how the planes interact. 2. Describe a complete MLOps lifecycle, including release strategies and monitoring requirements. 3. Compare platform engineering, GitOps, and managed cloud services as approaches to operational standardisation. 4. Discuss the security, privacy, and governance requirements for deploying generative-AI services. 5. Evaluate the advantages and limitations of confidential computing and edge cloud in enterprise deployments. Analytical / Application Questions1. A bank wants sub-second fraud decisions, daily regulatory reporting, and monthly model retraining. Design a deployment approach that combines streaming, batch, model serving, and governance controls. 2. An AI assistant retrieves documents that users are not authorised to read. Analyse the likely architectural failure and propose corrective controls. 3. A new model improves accuracy but increases latency, cost, and disparity for one customer subgroup. Recommend a production decision and justify it using the evaluation framework in this chapter. 22. Multiple Choice Questions with AnswersQuestion 1Which component primarily belongs to the control plane of a cloud AI system? A. A vector embedding index B. A model’s prediction endpoint C. Identity, policy, and deployment automation D. A curated analytical table Correct Answer: C. Identity, policy, and deployment automation Question 2A team wants to detect malformed events before they affect analytical reports. Which practice is most appropriate? A. Disable schema validation to preserve availability B. Use data contracts and quarantine failed records C. Move all data directly into a dashboard D. Retrain the model more frequently Correct Answer: B. Use data contracts and quarantine failed records Question 3What is the principal distinction between MLOps and AIOps? A. MLOps operates ML products, while AIOps improves IT operations B. MLOps is only for networking, while AIOps is only for databases C. MLOps replaces governance, while AIOps replaces security D. MLOps is batch-only, while AIOps is always real-time Correct Answer: A. MLOps operates ML products, while AIOps improves IT operations Question 4Which deployment pattern sends production traffic to a new model without allowing it to influence decisions? A. Blue-green deployment B. Shadow deployment C. Full replacement deployment D. Edge deployment Correct Answer: B. Shadow deployment Question 5Why does RAG not guarantee that a generative-AI response is correct? A. Retrieval, document quality, permissions, and model interpretation can still fail B. RAG prevents the use of organisational documents C. RAG can only operate on numerical data D. RAG always removes model evaluation requirements Correct Answer: A. Retrieval, document quality, permissions, and model interpretation can still fail Question 6Which feature is most characteristic of GitOps? A. Manual changes made directly in production B. A version-controlled declarative desired state reconciled by an agent C. Training a model without recording its data D. Encrypting only data stored on laptops Correct Answer: B. A version-controlled declarative desired state reconciled by an agent Question 7An edge deployment is most strongly justified when an application requires which combination? A. High latency and continuous central connectivity B. Local responsiveness, limited connectivity, or data-locality controls C. Unlimited centralised storage with no device interaction D. Removal of all patching and monitoring responsibilities Correct Answer: B. Local responsiveness, limited connectivity, or data-locality controls Question 8What is a key governance requirement for a high-impact predictive model? A. Optimising only aggregate accuracy B. Allowing the model to make irreversible decisions without review C. Documenting accountability, limitations, monitoring, and appeal or override processes D. Deleting all evaluation records after deployment Correct Answer: C. Documenting accountability, limitations, monitoring, and appeal or override processes Question 9Which statement best describes confidential computing? A. It protects data during processing through trusted execution environments B. It eliminates the need for identity and access management C. It applies only to archived data at rest D. It guarantees that an AI model cannot be biased Correct Answer: A. It protects data during processing through trusted execution environments Question 10A model’s accuracy remains stable, but business outcomes worsen after customer behaviour changes. What should the team investigate first? A. Concept drift and business-level monitoring B. Only the model container’s image size C. Whether Git is installed on developer laptops D. Whether object storage supports compression Correct Answer: A. Concept drift and business-level monitoring
|