Cloud & Virtualization Security MCQs for the NSCT

By the NSCT Exam Editorial Team · Updated 2026-11-24 · Facts checked against official sources on 2026-11-24

Cloud and virtualisation security covers who protects what when your systems run on someone else's hardware: the shared responsibility model, identity and access management (IAM) policies, and the risks that come with hypervisors and containers. It is topic 11 of the 16 in the Cyber Security area, which carries 5% of the NSCT according to HEC's Areas of Competencies. Candidates averaged 47.2% accuracy in this area in 2026, per the HEC NSCT report and APP.

The definitions here follow NIST SP 800-145 and Stallings (Computer Security: Principles and Practice). The IAM examples use AWS policy syntax because it is the most widely documented; Azure and Google Cloud follow the same deny-wins idea with different names.

Shared responsibility

NIST SP 800-145 defines cloud computing by five characteristics (on-demand self-service, broad network access, resource pooling, rapid elasticity and measured service), three service models (IaaS, PaaS, SaaS) and four deployment models (private, community, public, hybrid). The shared responsibility model says the provider secures the layers it runs, and the customer secures everything it deploys or configures. The split moves with the service model.

Layer IaaS PaaS SaaS
Physical data centre, hardware, hypervisor Provider Provider Provider
Guest OS and patching Customer Provider Provider
Application code Customer Customer Provider
Data, user accounts, access rights Customer Customer Customer

The last row never changes: the customer always owns its data and its identities. A public storage bucket or a phished admin without MFA is a customer failure in every model.

Exam angle: "who patches the guest OS on an IaaS VM?" is the customer. "Who patches the SaaS application?" is the provider.

IAM

Identity and access management decides who is authenticated and what they are authorised to do on which resources. Policies are made of statements with an Effect (Allow or Deny), Actions, Resources and optional Conditions. Evaluation follows three rules:

  1. By default every request is implicitly denied.
  2. A matching Allow permits the request…
  3. …unless any matching explicit Deny exists. Deny always wins, whatever the statement order.
Policy A: Allow  s3:Get*, s3:List*  on *
Policy B: Deny   s3:*               on arn:aws:s3:::payroll/*
Request Result Why
GetObject on payroll/jan.csv Denied Explicit Deny in B beats the Allow in A
GetObject on reports/q1.csv Allowed Only A matches
PutObject on reports/q1.csv Denied Nothing allows Put, so implicit deny

We checked these results with a small Python evaluator. Guardrails such as AWS service control policies (SCPs) grant nothing. They cap what identity policies can allow, so the effective permission is the intersection of the two. Good IAM practice: least privilege, MFA (especially for the root account), roles with short-lived credentials instead of long-lived access keys, and regular access reviews.

Exam angle: read every statement that matches, and if any of them is a Deny, the answer is denied.

Hypervisor risks

Virtualisation runs many virtual machines (VMs) on one host. A Type 1 (bare-metal) hypervisor such as ESXi, Xen or Hyper-V runs directly on the hardware. A Type 2 (hosted) hypervisor such as VirtualBox runs on a host OS.

Risk What happens Mitigation
VM escape Guest code breaks out to the hypervisor or host (for example, VENOM in 2015) Patch the hypervisor, minimise emulated devices
Hyperjacking A rogue hypervisor is installed under the OS Secure and measured boot
Co-residency side channels Tenants sharing CPU caches leak information Dedicated hosts for sensitive work
VM sprawl Forgotten, unpatched VMs pile up Inventory, tagging, lifecycle rules
Snapshot exposure Snapshots carry memory, keys and old vulnerabilities Encrypt and restrict snapshots
Inter-VM blind spot East-west traffic never reaches the physical IDS Virtual switch monitoring

Containers share the host kernel, so a kernel exploit in one container can reach the others. VMs give stronger isolation.

Exam angle: "breaks out of the guest" is VM escape; "malicious layer beneath the OS" is hyperjacking.

Common traps

Worked examples

1. Understanding. In PaaS, who secures the runtime and the OS underneath the customer's app? Answer: the provider. The customer still owns the application code, its data and its users' access.

2. Application. A group policy allows * on *. A user in the group also has a policy that denies ec2:TerminateInstances. Can she stop an instance (ec2:StopInstances) and terminate one? Answer: she can stop it, because only the Allow matches, but she cannot terminate it, because the explicit Deny matches and beats the group's Allow.

3. Analysis. A web app on a cloud VM has an SSRF bug. The VM's role has full S3 access. What is the worst case, and which two changes help most? Answer: an attacker makes the server request the metadata service at 169.254.169.254 and steals the role's temporary credentials, which open every S3 bucket. Require token-based metadata access (IMDSv2) and cut the role down to least privilege.

Practise

The quiz below has 100 questions on cloud and virtualisation security, filterable by tier and difficulty.

Practise: 100 questions

Interactive quiz loading. The first 10 questions are shown below.

  1. Which of these is one of the five essential characteristics of cloud computing in NIST SP 800-145?

    1. Fixed capacity
    2. Resource pooling
    3. On-premises hardware ownership
    4. Single tenancy
    Show answer

    Answer: B. Resource pooling

    NIST SP 800-145 lists on-demand self-service, broad network access, resource pooling, rapid elasticity and measured service. Resource pooling means the provider serves many customers (tenants) from shared physical resources, which is also the root of several cloud security risks.

  2. What does the shared responsibility model in cloud computing describe?

    1. How two providers share a customer's data for backup
    2. How security duties are divided between the cloud provider and the customer, depending on the service model
    3. How costs are split between two customers who share a server
    4. How a hypervisor shares CPU time between virtual machines
    Show answer

    Answer: B. How security duties are divided between the cloud provider and the customer, depending on the service model

    The provider secures the parts it controls, and the customer secures what it deploys and configures. The line moves with the service model: the customer does the most in IaaS and the least in SaaS. AWS sums it up as the provider securing 'of' the cloud and the customer securing 'in' it.

  3. What is a Type 1 hypervisor?

    1. A firewall that filters traffic between virtual machines
    2. A container runtime that shares the host kernel
    3. A hypervisor that runs as an application on top of a host operating system
    4. A hypervisor that runs directly on the physical hardware, such as VMware ESXi, Xen or Hyper-V
    Show answer

    Answer: D. A hypervisor that runs directly on the physical hardware, such as VMware ESXi, Xen or Hyper-V

    A Type 1 (bare-metal) hypervisor sits directly on the hardware and is used in data centres and clouds. A Type 2 (hosted) hypervisor, such as VirtualBox or VMware Workstation, runs on a host OS, which adds that OS to the attack surface.

  4. What is a VM escape attack?

    1. Code in a guest VM breaks out of isolation and interacts with the hypervisor or host
    2. A VM's snapshot is deleted to free storage
    3. A VM is moved to another physical host without downtime
    4. A user logs out of a virtual desktop without saving
    Show answer

    Answer: A. Code in a guest VM breaks out of isolation and interacts with the hypervisor or host

    VM escape exploits a flaw in the hypervisor or its emulated devices, as the 2015 VENOM floppy-controller bug did, to run code outside the guest. It is the most serious virtualisation risk because one compromised tenant could reach every VM on the host. Live migration is a normal feature, not an attack.

  5. Under the shared responsibility model, which duties stay with the customer in IaaS, PaaS and SaaS alike?

    1. Physical security of the data centre
    2. Protecting its data and managing its users' identities and access
    3. Maintaining the provider's network hardware
    4. Patching the hypervisor
    Show answer

    Answer: B. Protecting its data and managing its users' identities and access

    However much the provider manages, the customer always owns its data (classification, who can see it) and its accounts and access rights. The hypervisor, hardware and physical facility are always the provider's job.

  6. What is the job of Identity and Access Management (IAM) in a cloud account?

    1. Balancing traffic between web servers
    2. Controlling who is authenticated and what actions they are authorised to perform on which resources
    3. Assigning public IP addresses to virtual machines
    4. Encrypting the provider's physical disks
    Show answer

    Answer: B. Controlling who is authenticated and what actions they are authorised to perform on which resources

    IAM covers authentication (proving who a user, role or service is) and authorisation (policies that allow or deny actions on resources). Policies, roles, groups and MFA are its main tools, and misconfigured IAM is one of the most common causes of cloud breaches.

  7. In AWS IAM, what is the decision when no statement in any applicable policy matches a request?

    1. Allow for read-only actions
    2. Implicit deny
    3. Implicit allow
    4. Allow if the user is in a group
    Show answer

    Answer: B. Implicit deny

    Everything starts as denied. A request is allowed only if some policy explicitly allows it, and any explicit Deny overrides every Allow. With no matching statement, the default implicit deny applies.

  8. What does 'VM sprawl' refer to?

    1. Spreading one VM's disk across several data centres
    2. Uncontrolled growth of virtual machines that are forgotten, unpatched or unmonitored
    3. Malware that copies itself from VM to VM
    4. A VM that uses more CPU than it was allocated
    Show answer

    Answer: B. Uncontrolled growth of virtual machines that are forgotten, unpatched or unmonitored

    Because VMs are cheap and quick to create, organisations end up with many that no one owns. Dormant or forgotten VMs miss patches and monitoring and become easy entry points. Inventory, tagging and lifecycle policies control sprawl.

  9. What is hyperjacking?

    1. Installing a malicious hypervisor beneath the operating system so that it controls the OS invisibly
    2. Overloading a hypervisor with too many VMs
    3. Stealing a user's cloud console session cookie
    4. Hijacking a domain name used by a cloud service
    Show answer

    Answer: A. Installing a malicious hypervisor beneath the operating system so that it controls the OS invisibly

    In hyperjacking, an attacker inserts a rogue thin hypervisor under the running OS, which then runs as a guest, as in the Blue Pill proof of concept. Because it sits below the OS, normal antivirus cannot see it. Secure and measured boot help defend against it.

  10. Which security risk comes directly from multi-tenancy in public clouds?

    1. Data leakage or side-channel attacks between tenants sharing the same physical hardware
    2. Higher electricity costs for the customer
    3. Mandatory use of a Type 2 hypervisor
    4. Inability to use encryption
    Show answer

    Answer: A. Data leakage or side-channel attacks between tenants sharing the same physical hardware

    Multi-tenancy means several customers' workloads share physical CPUs, memory and storage. Weak isolation, or side channels such as cache timing, can let one tenant learn about another. Providers rely on hypervisor isolation, and customers can choose dedicated hosts for sensitive workloads.

FAQs

What is the difference between IaaS, PaaS and SaaS for security?

In IaaS you rent VMs and secure everything from the guest OS upward. In PaaS the provider also runs the OS and runtime, so you secure your code, data and access. In SaaS you use finished software and mainly control data, users and settings. The less you manage, the less you secure, but never zero.

Why does an explicit deny override an allow?

It lets administrators set firm limits that no other policy can undo by accident. If a user collects Allow statements from groups and roles, one Deny still blocks the named action. That makes Deny the safe way to protect sensitive resources, such as a payroll bucket, across many overlapping policies.

Are containers less secure than virtual machines?

They isolate less strongly. Each VM has its own kernel behind a hypervisor, while containers are processes sharing the host kernel, so a kernel exploit can affect all of them. Containers are still safe for many uses when patched, run without root and limited with seccomp or AppArmor. Untrusted multi-tenant code is usually better in VMs.

How is this topic tested in the NSCT?

HEC's report groups questions into understanding, application and analysis tiers. For this topic, expect definitions (Type 1 hypervisor, CASB), responsibility questions (who patches what) and IAM policy scenarios where you work out allow or deny. The practice quiz covers all three tiers.

Next step

Continue to Digital Forensics MCQs, the next topic in the official order. Revisit the Cyber Security MCQs hub or test yourself in an NSCT mock test.