{
  "Module 28: Cloud Security": [
    {
      "question": "1. In the cloud service models, which one provides the least amount of built-in security controls from the provider and leaves most security responsibilities to the customer?",
      "options": [
        "A. SaaS",
        "B. PaaS",
        "C. IaaS",
        "D. All of the mentioned"
      ],
      "num_answers": 1,
      "answer": "C. IaaS",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ In IaaS, the provider mainly secures the physical infra and basic virtualization; the customer handles OS, apps, configs, and most controls.",
        "A": "❌ In SaaS, the provider handles almost everything, including app stack and many security controls.",
        "B": "❌ In PaaS, the provider manages platform/runtime; customer focuses mainly on app and data.",
        "D": "❌ They do not all provide the least security; IaaS clearly exposes the most responsibility to the customer."
      }
    },
    {
      "question": "2. Which of the following statements about cloud security is MOST accurate?",
      "options": [
        "A. Different cloud service models provide different levels of built-in security services.",
        "B. Moving on-premises systems to cloud requires mapping needed security mechanisms to the provider’s available controls.",
        "C. Data in the cloud should be transferred and stored in encrypted form for security.",
        "D. All of the mentioned"
      ],
      "num_answers": 1,
      "answer": "D. All of the mentioned",
      "answer_keys": ["D"],
      "explanations": {
        "D": "✅ All three statements describe correct cloud security principles, so 'All of the mentioned' is correct.",
        "A": "☑️ Correct but not the MOST complete on its own.",
        "B": "☑️ Correct but incomplete by itself.",
        "C": "☑️ Also correct but focused only on encryption, not the full picture."
      }
    },
    {
      "question": "3. Which of the following services typically need to be clearly defined and negotiated in a cloud Service Level Agreement (SLA)?",
      "options": [
        "A. Logging",
        "B. Auditing",
        "C. Regulatory compliance responsibilities",
        "D. All of the mentioned"
      ],
      "num_answers": 1,
      "answer": "D. All of the mentioned",
      "answer_keys": ["D"],
      "explanations": {
        "D": "✅ Logging, auditing, and regulatory compliance should all be addressed in SLAs so responsibilities are clear.",
        "A": "❌ Logging alone is not sufficient; other aspects must also be defined.",
        "B": "❌ Auditing is important but not the only SLA concern.",
        "C": "❌ Compliance must be defined together with logging and auditing expectations."
      }
    },
    {
      "question": "4. In the shared responsibility model for cloud security, which of the following is typically the customer’s responsibility?",
      "options": [
        "A. Physical security of data center",
        "B. Security of the hypervisor",
        "C. Configuration of security groups and access controls",
        "D. Redundancy of power and cooling"
      ],
      "num_answers": 1,
      "answer": "C. Configuration of security groups and access controls",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ Customers must securely configure security groups, IAM, and access controls for their resources.",
        "A": "❌ Physical data center security is handled by the cloud provider.",
        "B": "❌ The provider manages the hypervisor layer.",
        "D": "❌ Power and cooling redundancy is also provider responsibility."
      }
    },
    {
      "question": "5. Which cloud service model delivers complete applications to end users over the Internet, with the provider managing the full stack?",
      "options": [
        "A. IaaS",
        "B. PaaS",
        "C. SaaS",
        "D. FaaS"
      ],
      "num_answers": 1,
      "answer": "C. SaaS",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ SaaS delivers fully managed applications (e.g., email, CRM) where the provider manages infra, platform, and app.",
        "A": "❌ IaaS delivers virtual machines, storage, and networking, not full applications.",
        "B": "❌ PaaS provides a platform/runtime for deploying customer apps.",
        "D": "❌ FaaS (serverless) focuses on functions, not full SaaS applications."
      }
    },
    {
      "question": "6. In which cloud model is the customer MOST likely responsible for patching the guest operating system?",
      "options": [
        "A. SaaS",
        "B. PaaS",
        "C. IaaS",
        "D. All cloud models"
      ],
      "num_answers": 1,
      "answer": "C. IaaS",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ In IaaS, the customer controls the VM’s OS and must patch and harden it.",
        "A": "❌ In SaaS, OS patching is handled by the provider.",
        "B": "❌ In PaaS, the provider patches the platform/OS; customer secures the app and data.",
        "D": "❌ Responsibility varies by model; it is not the same in all."
      }
    },
    {
      "question": "7. What does multi-tenancy in cloud computing refer to?",
      "options": [
        "A. Having multiple internet connections for redundancy",
        "B. Multiple customers sharing the same underlying physical resources",
        "C. One customer using multiple providers at once",
        "D. Using multiple factors for user authentication"
      ],
      "num_answers": 1,
      "answer": "B. Multiple customers sharing the same underlying physical resources",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Multi-tenancy means several customers share the same physical infra while being logically isolated.",
        "A": "❌ That describes network redundancy, not multi-tenancy.",
        "C": "❌ That’s multi-cloud, not multi-tenancy.",
        "D": "❌ That describes multi-factor authentication, unrelated to tenancy."
      }
    },
    {
      "question": "8. Which of the following BEST mitigates data exposure when using public cloud storage buckets?",
      "options": [
        "A. Using weak access keys",
        "B. Enabling public read access for convenience",
        "C. Applying least-privilege access policies and disabling public access by default",
        "D. Allowing anonymous access from any IP"
      ],
      "num_answers": 1,
      "answer": "C. Applying least-privilege access policies and disabling public access by default",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ Least privilege and blocking public access reduce accidental data exposure.",
        "A": "❌ Weak keys increase risk of compromise.",
        "B": "❌ Public read access is a common cause of data leaks.",
        "D": "❌ Anonymous any-IP access is extremely insecure."
      }
    },
    {
      "question": "9. Which security control specifically protects cloud data IN TRANSIT between client and server?",
      "options": [
        "A. Disk encryption",
        "B. TLS/HTTPS",
        "C. Database TDE",
        "D. Full-disk encryption on backup tapes"
      ],
      "num_answers": 1,
      "answer": "B. TLS/HTTPS",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ TLS/HTTPS encrypts data in transit over the network.",
        "A": "❌ Disk encryption protects data at rest, not in transit.",
        "C": "❌ TDE (Transparent Data Encryption) focuses on data at rest in databases.",
        "D": "❌ Tape encryption protects backup media at rest, not live traffic."
      }
    },
    {
      "question": "10. Before migrating a critical application to the cloud, which step should an information security manager take FIRST?",
      "options": [
        "A. Disable all on-premises firewalls",
        "B. Perform data classification and risk assessment",
        "C. Remove all audit logs for privacy",
        "D. Disable encryption to improve performance"
      ],
      "num_answers": 1,
      "answer": "B. Perform data classification and risk assessment",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Understanding data sensitivity and associated risks guides secure cloud design.",
        "A": "❌ Firewalls should not be disabled; they need to be integrated with cloud controls.",
        "C": "❌ Deleting logs reduces visibility and may violate compliance.",
        "D": "❌ Disabling encryption increases risk and is rarely justified."
      }
    },
    {
      "question": "11. In the shared responsibility model for SaaS, which layer is MOST likely the customer’s responsibility?",
      "options": [
        "A. Physical security of servers",
        "B. Security of the application code base",
        "C. User access management and data classification",
        "D. Hypervisor hardening"
      ],
      "num_answers": 1,
      "answer": "C. User access management and data classification",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ In SaaS, the customer still owns user management, roles, and how data is used/classified.",
        "A": "❌ Physical security is provider-managed.",
        "B": "❌ The vendor manages the SaaS application code.",
        "D": "❌ Hypervisor security is a provider task."
      }
    },
    {
      "question": "12. What is the primary purpose of a Cloud Access Security Broker (CASB)?",
      "options": [
        "A. Provide physical access control to data centers",
        "B. Bridge on-premises and cloud security by enforcing policies across cloud services",
        "C. Replace the identity provider in all cloud services",
        "D. Perform only network-layer packet filtering"
      ],
      "num_answers": 1,
      "answer": "B. Bridge on-premises and cloud security by enforcing policies across cloud services",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ CASB enforces security policies (DLP, access control, monitoring) between users and cloud apps.",
        "A": "❌ Physical access controls are separate.",
        "C": "❌ CASB typically integrates with, not replaces, identity providers.",
        "D": "❌ CASB is broader than simple packet filtering."
      }
    },
    {
      "question": "13. In a public cloud IaaS environment, which of the following is typically the BEST defense against VM-to-VM attacks?",
      "options": [
        "A. Disabling hypervisor logging",
        "B. Using network segmentation and security groups between instances",
        "C. Allowing all intra-VPC traffic by default",
        "D. Turning off host-based firewalls"
      ],
      "num_answers": 1,
      "answer": "B. Using network segmentation and security groups between instances",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Security groups and segmentation restrict lateral movement between VMs.",
        "A": "❌ Disabling logs reduces detection capability.",
        "C": "❌ Permissive default rules increase attack surface.",
        "D": "❌ Host-based firewalls add an important defense layer."
      }
    },
    {
      "question": "14. Which of the following cloud risks is MOST related to the theft of long-lived API keys or access tokens?",
      "options": [
        "A. Account hijacking",
        "B. VM escape",
        "C. Insecure hypervisor",
        "D. Physical theft of servers"
      ],
      "num_answers": 1,
      "answer": "A. Account hijacking",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Stolen keys/tokens let attackers impersonate legitimate accounts and access resources.",
        "B": "❌ VM escape is about breaking isolation at the hypervisor level.",
        "C": "❌ Insecure hypervisor is a separate infrastructure risk.",
        "D": "❌ Physical theft is serious, but not specifically about keys/tokens."
      }
    },
    {
      "question": "15. Which practice BEST reduces the impact if a cloud provider suffers a regional outage?",
      "options": [
        "A. Storing all workloads in a single availability zone",
        "B. Designing for multi-AZ or multi-region deployments",
        "C. Disabling backups to reduce cost",
        "D. Relying only on local VM snapshots"
      ],
      "num_answers": 1,
      "answer": "B. Designing for multi-AZ or multi-region deployments",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Using multiple zones/regions provides resilience against local outages.",
        "A": "❌ Single-AZ designs are vulnerable to that AZ failing.",
        "C": "❌ No backups mean higher risk of data loss.",
        "D": "❌ Local snapshots may be lost if the entire region is unavailable."
      }
    },
    {
      "question": "16. In a PaaS environment, which of the following is MOST likely the customer’s responsibility?",
      "options": [
        "A. Securing the underlying hypervisor",
        "B. Physical network segmentation",
        "C. Securing custom application code and input validation",
        "D. Maintaining the database engine binaries"
      ],
      "num_answers": 1,
      "answer": "C. Securing custom application code and input validation",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ In PaaS, the platform is managed by the provider; the customer is responsible for secure coding and data handling.",
        "A": "❌ Hypervisor security is provider-managed.",
        "B": "❌ Physical segmentation is not the customer’s role.",
        "D": "❌ In many PaaS offerings, the provider manages the DB engine."
      }
    },
    {
      "question": "17. Why is key management critical for cloud data encryption?",
      "options": [
        "A. Encryption is unnecessary if keys are long enough",
        "B. Losing encryption keys can render cloud data permanently inaccessible",
        "C. Keys can safely be shared in plaintext over email",
        "D. Keys do not need rotation in cloud environments"
      ],
      "num_answers": 1,
      "answer": "B. Losing encryption keys can render cloud data permanently inaccessible",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Poor key management can cause permanent data loss or unauthorized access.",
        "A": "❌ Even strong keys require secure management and rotation.",
        "C": "❌ Sending keys in plaintext is a serious security risk.",
        "D": "❌ Key rotation is a best practice for limiting exposure."
      }
    },
    {
      "question": "18. Which of the following BEST helps prevent accidental public exposure of cloud storage (e.g., buckets/containers)?",
      "options": [
        "A. Using hard-coded credentials in code",
        "B. Enforcing organization-wide policies that block public access by default",
        "C. Allowing developers to manually set public access at their discretion",
        "D. Disabling logging on storage services"
      ],
      "num_answers": 1,
      "answer": "B. Enforcing organization-wide policies that block public access by default",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Central policies preventing public access by default significantly reduce misconfigurations.",
        "A": "❌ Hard-coding credentials increases the chance of leaks.",
        "C": "❌ Manual, ad-hoc settings often lead to mistakes.",
        "D": "❌ Disabling logs harms visibility and detection."
      }
    },
    {
      "question": "19. When designing identity and access management (IAM) in a multi-cloud environment, which practice is MOST aligned with Zero Trust?",
      "options": [
        "A. Using a single shared admin account across all providers",
        "B. Granting broad, long-lived admin roles to simplify operations",
        "C. Implementing role-based access with least privilege and short-lived credentials",
        "D. Trusting all traffic from the internal corporate IP range"
      ],
      "num_answers": 1,
      "answer": "C. Implementing role-based access with least privilege and short-lived credentials",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ Zero Trust favors least privilege, granular roles, and short-lived tokens/keys.",
        "A": "❌ Shared admin accounts are risky and hard to audit.",
        "B": "❌ Broad, long-lived roles contradict least-privilege principles.",
        "D": "❌ Zero Trust does not automatically trust internal networks."
      }
    },
    {
      "question": "20. In a cloud logging strategy, which option provides the BEST support for incident detection and forensics?",
      "options": [
        "A. Disable logs to save storage costs",
        "B. Enable logs only on internet-facing services",
        "C. Centralize logs from cloud services into a SIEM with time synchronization",
        "D. Rely solely on application debug logs stored on local VMs"
      ],
      "num_answers": 1,
      "answer": "C. Centralize logs from cloud services into a SIEM with time synchronization",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ Centralized, time-synced logs give visibility across services and support correlation.",
        "A": "❌ No logs = no visibility.",
        "B": "❌ Internal events can also be critical; not just internet-facing.",
        "D": "❌ Local logs may be lost if instances are terminated and are hard to correlate."
      }
    },
    {
      "question": "21. Which threat is MOST specific to virtualization in cloud environments compared to traditional single-tenant physical servers?",
      "options": [
        "A. Phishing attacks",
        "B. VM escape attacks",
        "C. SQL injection",
        "D. Password reuse"
      ],
      "num_answers": 1,
      "answer": "B. VM escape attacks",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ VM escape involves breaking isolation to access the hypervisor or other VMs—specific to virtualized environments.",
        "A": "❌ Phishing occurs in any environment.",
        "C": "❌ SQL injection targets apps/databases everywhere, not just cloud.",
        "D": "❌ Password reuse is a general user behavior risk."
      }
    },
    {
      "question": "22. A side-channel attack where an attacker’s VM measures cache timings to infer data from a co-resident VM is BEST described as:",
      "options": [
        "A. Network replay attack",
        "B. Hypervisor patching",
        "C. Cross-VM side-channel attack",
        "D. SQL injection"
      ],
      "num_answers": 1,
      "answer": "C. Cross-VM side-channel attack",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ It’s a side-channel attack exploiting shared resources (e.g., CPU cache) between VMs.",
        "A": "❌ Replay concerns captured traffic, not side channels.",
        "B": "❌ Patching is a defense, not an attack.",
        "D": "❌ SQL injection targets databases, not VM side channels."
      }
    },
    {
      "question": "23. Which strategy BEST reduces vendor lock-in risk when adopting cloud services?",
      "options": [
        "A. Using provider-specific APIs for all components",
        "B. Designing apps with open standards and portable architectures (e.g., containers, Kubernetes)",
        "C. Storing all configuration in proprietary managed services only",
        "D. Avoiding documentation so migration is harder"
      ],
      "num_answers": 1,
      "answer": "B. Designing apps with open standards and portable architectures (e.g., containers, Kubernetes)",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Portable architectures and open standards make it easier to move between providers.",
        "A": "❌ Provider-specific APIs often increase lock-in.",
        "C": "❌ Heavy use of proprietary services can trap you with one provider.",
        "D": "❌ Lack of documentation only harms your own organization."
      }
    },
    {
      "question": "24. Which is the MOST secure approach for an application to access cloud APIs?",
      "options": [
        "A. Storing long-term access keys in source code",
        "B. Using short-lived tokens obtained via OAuth2 or IAM roles",
        "C. Hard-coding credentials in configuration files on all servers",
        "D. Sharing a single root account key among all apps"
      ],
      "num_answers": 1,
      "answer": "B. Using short-lived tokens obtained via OAuth2 or IAM roles",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Short-lived tokens and IAM roles limit exposure if a token is compromised.",
        "A": "❌ Keys in code are easily leaked (e.g., via repos).",
        "C": "❌ Hard-coded static creds are difficult to rotate and secure.",
        "D": "❌ Root keys should never be shared or used by apps."
      }
    },
    {
      "question": "25. When planning a penetration test against assets hosted in a public cloud provider, what should the tester do FIRST?",
      "options": [
        "A. Start scanning all IPs in the provider’s IP range",
        "B. Obtain written authorization from both the tenant organization and, where required, the cloud provider",
        "C. Exploit any misconfigurations found in other customers’ environments",
        "D. Use stolen API keys to speed up testing"
      ],
      "num_answers": 1,
      "answer": "B. Obtain written authorization from both the tenant organization and, where required, the cloud provider",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Cloud pentests require explicit written permission from the customer and alignment with provider policies.",
        "A": "❌ Scanning all provider IPs is unauthorized and illegal.",
        "C": "❌ Attacking other tenants violates ethics and law.",
        "D": "❌ Using stolen keys is unethical and criminal, not part of legitimate testing."
      }
    }
  ]
}
