Cloud & Virtualization Security MCQs for the NSCT
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:
- By default every request is implicitly denied.
- A matching Allow permits the request…
- …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
- Believing SaaS moves all security to the vendor. Data, accounts and access settings stay with you.
- Thinking statement order matters in IAM. An explicit Deny wins wherever it appears.
- Confusing implicit deny (nothing matched) with explicit deny (a Deny statement matched).
- Assuming an SCP or permissions boundary grants access. It only limits it.
- Calling containers "lightweight VMs" with the same isolation. They share one kernel.
- Mixing up Type 1 (bare metal) and Type 2 (hosted) hypervisors.
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
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.