IT Practice Exams

CV0-004 · Cloud Architecture · Updated July 26, 2026

AI in the Cloud: From Core Concepts to Generative AI Risks Like Hallucination

Artificial intelligence (AI) is the broad field of computer science devoted to building systems that perform tasks normally requiring human intelligence — recognizing images, understanding speech, translating language, making decisions. The cloud is where most AI actually runs, because training and serving models demands elastic access to specialized hardware that few organizations want to own. For the CV0-004 exam, you need the vocabulary hierarchy (AI vs machine learning vs deep learning vs generative AI) and a clear grasp of the operational risks generative AI introduces — above all hallucination, the failure mode that separates it from traditional rule-based automation.

The vocabulary hierarchy: AI, ML, deep learning, generative AI

These four terms nest inside each other, and the exam checks whether you can place each one at the right level.

Artificial intelligence is the umbrella term — the whole discipline of making machines exhibit intelligent behavior. Anything from a chess engine to a voice assistant qualifies. When a question asks for the term covering the entire field of human-like machine capability, AI is the answer, not one of its subfields.

Machine learning (ML) is the subset of AI in which systems learn patterns from data instead of following explicitly programmed rules. A spam filter that improves as it sees more labeled mail is ML: nobody wrote a rule for every spam variant; the model inferred the patterns from examples.

Deep learning is a subset of ML that uses multi-layered neural networks — computing structures loosely inspired by the brain — to learn very complex patterns. Deep learning is what made modern image recognition and speech-to-text practical, and it’s compute-hungry, which is a big part of why AI and cloud infrastructure are so entangled.

Generative AI is the newest layer: deep-learning systems that produce new content — text, images, code, audio — rather than only classifying or predicting. A large language model (LLM) is the flagship example: a model trained on massive text corpora that generates fluent responses to prompts. Chatbots that draft answers, tools that write code, and image generators all sit here.

Keep the nesting straight: every LLM is deep learning, every deep-learning system is ML, and every ML system is AI — but none of those statements reverses.

Why AI workloads live in the cloud

AI stresses infrastructure in ways that make the cloud’s core economics — elasticity and pay-as-you-go — especially attractive.

Training a model is a burst workload: it may need hundreds of graphics processing units (GPUs) or tensor processing units (TPUs) for days or weeks, then nothing. Buying that hardware for occasional use is brutal capital expenditure; renting it for the duration of the job is exactly what public cloud pay-as-you-go pricing is built for.

Inference — serving a trained model to users — is a steady-state workload with unpredictable spikes, which maps naturally onto autoscaling groups behind a load balancer, the same elasticity pattern as any web tier.

Providers also package AI at every service-model rung. At the infrastructure level you rent GPU instances and manage everything yourself. At the platform level, managed ML services handle the training pipelines, experiment tracking, and model hosting so your team supplies only data and code — the same “the platform manages the undifferentiated layers” bargain described in PaaS. At the software level, ready-made application programming interfaces (APIs) for transcription, translation, vision, or text generation let you consume AI with no model expertise at all. Exam scenarios often hinge on picking the right rung: a team with no ML engineers that needs speech-to-text should call a managed API, not build a model.

Data gravity matters too: models are trained where the data already sits, and AI pipelines inherit all the usual architecture concerns — regional placement, access control, and data sovereignty and compliance obligations on the training data.

Generative AI vs rule-based automation: the risk that changes

Traditional automation — scripts, workflow engines, chatbots built on decision trees — is deterministic. Given the same input, a rule-based system produces the same output every time, and every output traces to a rule a human wrote. Its failure modes are familiar: a wrong rule, a missing rule, an unhandled case. Annoying, but predictable and auditable.

Generative AI breaks that contract. An LLM doesn’t look answers up; it generates statistically plausible text. That’s what makes it flexible — and it’s also what produces hallucination: output that is fluent, confident, and factually wrong. A generative chatbot can invent a refund policy, cite a regulation that doesn’t exist, or fabricate an account detail, all in perfectly professional prose. No rule was violated, because there are no rules — the model simply produced plausible-sounding content that happens to be false.

Rule-based automationGenerative AI (LLM-based)
How output is producedFollows explicit human-written rulesGenerates new content from learned patterns
Same input → same output?Yes (deterministic)Not guaranteed (probabilistic)
Signature failure modeWrong or missing rule; unhandled caseHallucination — confident, plausible, false output
TraceabilityEvery output maps to a ruleOutput can’t be traced to an explicit rule
Typical safeguardFix or add the ruleHuman review, grounding in verified data, output filtering

This is why a scenario about deploying an LLM chatbot flags hallucination — not downtime, not licensing — as the risk specific to generative AI. A rule-based bot can be wrong, but it cannot invent; an LLM can. In regulated settings (finance, healthcare), a fabricated-but-confident answer is a compliance and liability problem, so mitigations belong in the design before production rollout: keep a human in the loop for consequential responses, ground the model in a curated knowledge base so answers cite verified sources, filter and monitor outputs, and constrain the bot’s scope.

Generative AI carries other operational risks worth knowing at exam depth: data leakage (sensitive data in prompts or training sets resurfacing in outputs), bias inherited from training data, and prompt injection (crafted user input that manipulates the model into ignoring its instructions). But when the comparison point is rule-based automation, hallucination is the discriminating answer, because it’s the one failure mode determinism makes impossible.

How the CV0-004 exam tests this

  • A definition item gives capabilities like image recognition, speech understanding, and decision-making, and asks for the term naming the broad field — the answer is artificial intelligence, with machine learning and deep learning as distractors testing whether you know the umbrella term from its subsets.
  • A scenario deploys a generative AI chatbot (often at a bank or insurer) and asks which risk is unique to generative AI versus traditional automation — hallucination beats generic distractors like downtime, cost overrun, or vendor lock-in.
  • A team-capability scenario asks which service tier fits: no ML staff plus a common task (transcription, translation) points to a managed AI API; a data-science team wanting custom models without managing servers points to a managed ML platform; full control over frameworks and drivers points to GPU infrastructure.
  • A governance scenario asks what must be addressed before an LLM handles customer data — expect answers combining human review, grounding in verified sources, and controls on what data enters prompts.

Most of these are recognition items — the vocabulary nesting and the hallucination discriminator become automatic after a few rounds of Cloud+ practice sets.

Quick reference

  • AI = the broad field of building systems that do tasks requiring human intelligence; ML, deep learning, and generative AI are successively narrower subsets.
  • ML learns patterns from data instead of following explicit rules; deep learning is ML with multi-layer neural networks; generative AI creates new content.
  • An LLM is a generative model trained on large text corpora — the engine behind AI chatbots and code assistants.
  • Cloud fits AI because training is a bursty GPU-heavy workload suited to pay-as-you-go, and inference scales like a web tier.
  • Managed AI APIs = consume AI with no ML expertise; managed ML platforms = build custom models without managing infrastructure; GPU instances = full control.
  • Hallucination = confident, plausible, false output; it is the risk specific to generative AI because deterministic rule-based systems cannot invent content.
  • Mitigations: human-in-the-loop review, grounding responses in verified data, output filtering, and limiting the model’s scope.
  • Related risks: data leakage via prompts or training data, inherited bias, and prompt injection.
Choose your exam → Lifetime access
from $59, once