Courseiva

CCNA Cloud Platform and Infrastructure Security Questions

75 of 80 questions · Page 1/2 · Cloud Platform and Infrastructure Security · Answers revealed

1
MCQhard

A company has multiple VPCs in different cloud accounts that need to communicate with each other. They also need to enforce centralized security policies and simplify network management. Which cloud networking service should they use to create a hub-and-spoke topology?

A.Virtual network peering
B.Cloud transit gateway
C.Private link service
D.Virtual network endpoint
AnswerB

A transit gateway acts as a central hub to connect multiple virtual networks and on-premises networks, simplifying management and enabling centralized security policies.

Why this answer

A cloud transit gateway allows you to connect multiple VPCs and on-premises networks through a central hub, simplifying management and enabling centralized security policies. Virtual network peering is point-to-point and does not scale well for many VPCs.

2
MCQmedium

A cloud security engineer is concerned about VM escape attacks in a multi-tenant environment. Which of the following is the most effective mitigation strategy?

A.Regularly patching and updating the hypervisor
B.Using host-based intrusion detection on each VM
C.Implementing network segmentation between VMs
D.Enforcing strong passwords on guest OS accounts
AnswerA

Correct; patching hypervisor vulnerabilities is the primary defense against VM escape.

Why this answer

VM escape attacks exploit hypervisor vulnerabilities. The primary defense is to keep the hypervisor patched and hardened, as other controls like IDS/IPS or guest OS hardening do not directly prevent escape.

3
Multi-Selectmedium

A company is deploying a multi-tier application on AWS. They need to protect the application layer from common web attacks and also restrict traffic between tiers. Which TWO network security controls should they use?

Select 2 answers
A.PrivateLink for database access
B.AWS WAF integrated with Application Load Balancer
C.Security groups between application tiers
D.VPC peering with all VPCs
E.Network ACLs for each subnet
AnswersB, C

WAF filters web requests for SQL injection, XSS, etc.

Why this answer

AWS WAF protects the application from web exploits, and security groups act as instance-level firewalls to control traffic between tiers. NACLs are subnet-level and less granular.

4
MCQhard

A cloud security engineer is configuring network security for a multi-tier application in AWS. The web servers must be accessible from the internet on port 443, the application servers should only receive traffic from the web servers, and the database servers should only accept traffic from the application servers on port 3306. Which combination of security controls should be used?

A.Security groups with source referencing the web server security group for app tier, and app server security group for DB tier
B.NACLs on each subnet with rules referencing source IP ranges
C.A single NACL applied to all subnets with layer 7 filtering
D.Route tables with deny rules to restrict inter-subnet traffic
AnswerA

Correct: Security groups can reference each other, providing dynamic, stateful filtering.

Why this answer

Security groups are stateful and allow return traffic automatically. For inbound control, security groups with source references provide the required micro-segmentation.

5
MCQmedium

A cloud security team is implementing VPC peering between two VPCs in the same region. Which statement about VPC peering is correct?

A.VPC peering requires VPN gateways to establish connectivity
B.VPC peering enables private IP connectivity across VPCs without internet
C.VPC peering automatically encrypts all traffic between VPCs
D.VPC peering supports transitive routing through intermediate VPCs
AnswerB

Correct: VPC peering uses private IPs and does not require internet.

Why this answer

VPC peering allows direct routing using private IP addresses, but it is not transitive: if VPC A peers with VPC B and VPC B peers with VPC C, traffic cannot flow from A to C via B.

6
MCQmedium

Which container image security practice is most effective at reducing the attack surface by removing unnecessary components and lowering the number of CVEs?

A.Using the :latest tag for base images
B.Adding security agents inside the image
C.Using distroless base images
D.Scanning images only at build time
AnswerC

Distroless images strip unnecessary tools, reducing vulnerabilities.

Why this answer

Distroless images contain only the application and its runtime dependencies, minimizing the attack surface.

7
MCQeasy

Which API Gateway security feature limits the number of requests from a client to prevent abuse or DoS attacks?

A.Rate limiting
B.JWT validation
C.WAF integration
D.Mutual TLS
AnswerA

Rate limiting throttles requests to prevent abuse.

Why this answer

Rate limiting controls the request rate per client, protecting the backend from overload.

8
Multi-Selecthard

A Kubernetes cluster is being hardened. Which THREE measures should be implemented to restrict container capabilities and reduce the risk of privilege escalation? (Select three.)

Select 3 answers
A.Enabling privileged mode for containers that need host access
B.Running containers as root
C.Running containers as a non-root user
D.Applying AppArmor or SELinux profiles
E.Dropping all Linux capabilities and adding only required ones
AnswersC, D, E

Non-root reduces the impact of a compromise.

Why this answer

Running as non-root user, dropping unnecessary Linux capabilities, and using AppArmor/SELinux profiles are key container security best practices. Running as root defeats isolation; privileged containers grant excessive host access.

9
MCQeasy

Which of the following is the primary security risk associated with VM escape in a cloud environment?

A.Performance degradation of the VM
B.Loss of network connectivity
C.Data corruption within the VM
D.Unauthorized access to other tenants' VMs and the hypervisor
AnswerD

VM escape can lead to cross-tenant attacks and hypervisor compromise.

Why this answer

VM escape is a critical risk in multi-tenant clouds because it allows an attacker to break out of a VM and access the hypervisor, potentially compromising other tenants' VMs.

10
MCQeasy

Which hypervisor type is most commonly deployed in production cloud data centers to host multiple tenant virtual machines?

A.Type 1 bare-metal hypervisor like VMware ESXi
B.Container runtime like Docker
C.Para-virtualization interface
D.Type 2 hosted hypervisor like VirtualBox
AnswerA

Type 1 hypervisors are industry standard for cloud infrastructure.

Why this answer

Type 1 (bare-metal) hypervisors run directly on hardware and are used in cloud environments for better performance and isolation.

11
Multi-Selectmedium

A cloud security team is deploying a web application with an API Gateway. Which TWO mechanisms should be implemented to protect against API abuse and unauthorized access?

Select 2 answers
A.Rate limiting
B.TLS enforcement
C.Resource tagging
D.VPC peering
E.Authentication (e.g., JWT validation)
AnswersA, E

Correct: Rate limiting mitigates brute-force and DDoS attacks.

Why this answer

Rate limiting prevents abuse by throttling requests, and authentication (e.g., JWT, API keys) ensures only authorized clients can access the API.

12
MCQeasy

A security architect is designing a multi-tenant cloud environment. Which type of hypervisor provides the strongest isolation for tenant virtual machines by running directly on the hardware without a host operating system?

A.Type 1 hypervisor
B.Type 2 hypervisor
C.Virtual machine monitor in user space
D.Container runtime
AnswerA

Correct: Type 1 hypervisors run directly on hardware and provide strong isolation.

Why this answer

Type 1 (bare-metal) hypervisors run directly on hardware, reducing the attack surface and improving isolation compared to Type 2 hypervisors that run on an OS.

13
MCQmedium

In a Kubernetes cluster, which resource should be used to restrict network traffic between pods based on source and destination labels?

A.Pod Security Admission
B.Network Policies
C.Secrets management with Vault
D.Role-Based Access Control (RBAC)
AnswerB

Network policies define ingress and egress rules for pods.

Why this answer

Network policies in Kubernetes act as a firewall for pods, allowing or denying traffic based on selectors.

14
MCQmedium

An organization exposes an API via Amazon API Gateway. They need to protect against common web exploits like SQL injection and cross-site scripting. Which integration should they enable?

A.IAM policies
B.Security groups on the API Gateway
C.AWS WAF
D.Network ACLs on the VPC
AnswerC

AWS WAF protects against web exploits at the application layer.

Why this answer

AWS WAF (Web Application Firewall) integrates with API Gateway to filter and monitor HTTP requests for common web exploits. Security groups operate at the network layer, not application layer.

15
Multi-Selectmedium

A security auditor is reviewing a Kubernetes cluster and identifies that containers are running as root with full Linux capabilities. Which TWO security measures would help mitigate container escape risks in this environment?

Select 2 answers
A.Set the container to run as a non-root user
B.Enable host networking mode
C.Use a privileged container
D.Drop all Linux capabilities except those needed
E.Mount the host filesystem as read-write
AnswersA, D

Running as non-root reduces the impact of a compromise.

Why this answer

Dropping all Linux capabilities and setting the container to run as a non-root user are effective. Running with a read-only root filesystem also helps, but the question asks for two measures: dropping capabilities and using a non-root user are the most direct.

16
Multi-Selecthard

A DevOps team is implementing a secure container supply chain. Which THREE practices should they adopt to ensure image integrity and prevent tampering?

Select 3 answers
A.Sign container images using Cosign
B.Use admission controllers like Kyverno to verify signatures
C.Use the 'latest' tag for base images
D.Store images in a public registry
E.Generate attestation using in-toto
AnswersA, B, E

Signing provides cryptographic verification of image origin.

Why this answer

Image signing with Cosign ensures authenticity, attestation provides metadata about the build, and admission controller verification enforces policies before deployment.

17
Multi-Selecthard

A cloud architect is designing a defense-in-depth strategy for a containerized application. Which THREE practices should be implemented to secure the container supply chain?

Select 3 answers
A.Sign images using Cosign
B.Always use the 'latest' tag for base images
C.Run containers with root privileges by default
D.Use immutable image tags (e.g., commit hash)
E.Scan images for CVEs with Trivy
AnswersA, D, E

Image signing ensures authenticity and integrity.

Why this answer

Image signing, vulnerability scanning, and using immutable tags are key supply chain security practices. Using the 'latest' tag is risky, and running containers as root is insecure.

18
MCQmedium

A cloud architect is designing a VPC for a three-tier application. The web servers need to be accessible from the internet, while the application servers should only be reachable from the web servers, and the database servers should be isolated from all other traffic except the application servers. Which VPC design best meets these requirements?

A.Web servers in a public subnet, app and database servers in a single private subnet
B.All servers in a private subnet with a NAT gateway
C.All servers in a single public subnet with security groups
D.Web servers in a public subnet, app servers in a private subnet, databases in an isolated subnet with appropriate security groups
AnswerD

This tiered subnet design enforces network isolation between layers.

Why this answer

Public subnets for load balancers/web servers, private subnets for app servers, and isolated subnets (no direct route to internet) for databases provide the required isolation and access control.

19
MCQeasy

Which of the following is a primary benefit of using immutable tags for container images in a production registry?

A.Improved build performance
B.Automatic vulnerability scanning
C.Consistent and reproducible deployments
D.Reduced storage cost
AnswerC

Correct: Immutable tags ensure the same tag always points to the same image, enabling reproducibility.

Why this answer

Immutable tags prevent accidental overwriting of image tags, ensuring that the same tag always refers to the same image, which aids in traceability and rollback.

20
MCQhard

In a Kubernetes cluster, a pod needs to access a cloud provider's key management service (KMS) to retrieve secrets. Which of the following RBAC configurations is the least privileged approach?

A.Bind a ClusterRole with get and list on secrets to the pod's service account
B.Create a Role in the pod's namespace that allows get on secrets and bind it to the pod's service account
C.Grant the pod's service account cluster-admin rights
D.Use a PodSecurityPolicy that allows privileged containers
AnswerB

Correct: Namespace-scoped Role limited to get on secrets is least privilege.

Why this answer

The least privileged approach is to grant only the necessary API permissions to the service account used by the pod, not to users or namespaces unnecessarily.

21
Multi-Selectmedium

A cloud security professional is designing network security for a VPC hosting a three-tier application. The database tier must be isolated from direct internet access and only accessible from the application tier. Which TWO AWS services can be used together to achieve this?

Select 2 answers
A.VPC Peering
B.Internet-facing Application Load Balancer
C.Security Groups
D.Internet Gateway
E.Network ACLs (NACLs)
AnswersC, E

Security Groups can allow inbound traffic only from the application tier's security group.

Why this answer

Security Groups act as instance-level firewalls and can restrict traffic to the database tier from only the application tier. NACLs provide subnet-level stateless filtering as an additional layer.

22
MCQeasy

In a cloud VPC, what is the difference between security groups and network ACLs (NACLs)?

A.Security groups are stateful and support allow rules only; NACLs are stateless and support allow and deny rules
B.Security groups support allow and deny rules; NACLs support only allow
C.Security groups are stateless and NACLs are stateful
D.Security groups and NACLs are both stateless
AnswerA

Correct; this is the key difference.

Why this answer

Security groups are stateful and support allow rules only, while NACLs are stateless and support both allow and deny rules.

23
MCQeasy

Which hypervisor technology is used to provide direct device access to a VM, improving performance and isolation for I/O operations?

A.IOMMU
B.CPU pinning
C.Virtual switches
D.Memory ballooning
AnswerA

IOMMU enables direct device assignment with secure isolation.

Why this answer

IOMMU (Input-Output Memory Management Unit) allows direct device assignment to VMs, enabling high performance and strong isolation by preventing the VM from accessing other devices' memory.

24
Multi-Selecthard

A security auditor is reviewing a cloud provider's virtualisation infrastructure. Which TWO mechanisms ensure VM isolation at the hardware level to prevent one tenant from accessing another's resources?

Select 2 answers
A.CPU Pinning
B.IOMMU (Input-Output Memory Management Unit)
C.Hypervisor Introspection
D.Security Groups
E.Network ACLs
AnswersA, B

CPU pinning dedicates physical cores to specific VMs, enforcing resource isolation.

Why this answer

CPU Pinning (option A) ensures VM isolation at the hardware level by dedicating specific physical CPU cores exclusively to a particular VM. This prevents other VMs from scheduling on those cores, eliminating CPU-level side-channel attacks and resource contention. It is a hardware-enforced isolation mechanism because the hypervisor uses the CPU's hardware virtualization extensions (e.g., Intel VT-x or AMD-V) to enforce the pinning, ensuring that one tenant's VM cannot access another's CPU resources.

Exam trap

ISC2 often tests the distinction between software-based isolation controls (like Security Groups and Network ACLs) and hardware-enforced mechanisms (like CPU Pinning and IOMMU), trapping candidates who confuse network-layer security with hardware-level resource isolation.

25
MCQeasy

A cloud security architect is designing a multi-tenant environment on a hypervisor. Which hypervisor type provides the most robust isolation between tenant virtual machines by running directly on the hardware without a host operating system?

A.Type 2 hosted hypervisor (e.g., VirtualBox)
B.Paravirtualized hypervisor (e.g., Xen)
C.Container runtime (e.g., Docker)
D.Type 1 bare-metal hypervisor (e.g., VMware ESXi)
AnswerD

Type 1 hypervisors run directly on hardware, minimizing attack surface and providing strong isolation.

Why this answer

Type 1 (bare-metal) hypervisors run directly on the hardware, providing better performance and isolation because there is no host OS layer that could be compromised. Type 2 hypervisors run on top of an OS, adding attack surface.

26
Multi-Selectmedium

A cloud architect is securing a serverless application that uses serverless functions and an API gateway. Which TWO practices help protect against injection attacks?

Select 2 answers
A.Parameterized queries for database access
B.Using environment variables for secrets
C.Using a custom domain name
D.Input validation
E.Enabling API caching
AnswersA, D

Correct: Parameterized queries prevent SQL injection.

Why this answer

Input validation and parameterized queries prevent injection attacks such as SQL injection or command injection.

27
MCQmedium

During an audit of a containerized application, you notice that containers are running with the --privileged flag. Which of the following is the most significant security risk associated with this configuration?

A.Container escape to the host
B.Increased memory consumption
C.Inability to use secure base images
D.Excessive network bandwidth usage
AnswerA

Correct: Privileged containers can access host devices and resources, making escape easier.

Why this answer

Privileged containers have nearly all capabilities of the host, significantly increasing the risk of container escape and host compromise.

28
Multi-Selecteasy

A company is deploying a serverless function in AWS Lambda that needs to access a private RDS database. Which TWO configurations are necessary for secure access?

Select 2 answers
A.Disable TLS for the database connection
B.Configure VPC integration for the Lambda function
C.Attach an Internet Gateway to the Lambda function
D.Assign a public IP address to the Lambda function
E.Create an execution role with permissions to the RDS database
AnswersB, E

VPC integration allows Lambda to access resources in a VPC.

Why this answer

Lambda functions must be attached to a VPC using VPC integration to access resources inside a private subnet, such as an RDS database. Without VPC integration, the Lambda function runs in an AWS-managed VPC and cannot reach resources in the customer’s VPC. This configuration requires the Lambda function to be associated with the same VPC, subnets, and security groups as the RDS instance.

Exam trap

The CCSP exam often tests the misconception that Lambda functions can directly access private resources without VPC integration, or that public IPs or Internet Gateways are needed for private connectivity, leading candidates to select options like C or D instead of recognizing the necessity of VPC integration and proper IAM roles.

29
Multi-Selectmedium

An organization is designing a VPC with multiple tiers. Which TWO network components are used to restrict traffic between subnets?

Select 2 answers
A.VPC Peering
B.Network ACL (NACL)
C.Internet Gateway
D.Route Table
E.Security Group
AnswersB, E

NACLs are stateless firewalls at subnet level.

Why this answer

Network ACLs (stateless) and Security Groups (stateful) can be applied at subnet and instance level to control traffic.

30
MCQhard

A serverless function needs to access a private RDS database inside a VPC. What configuration is required to enable this without using public IP addresses?

A.Store database credentials in the function code
B.Use a NAT Gateway to allow inbound traffic
C.Place the Lambda function inside the VPC using VPC configuration
D.Attach an Internet Gateway to the VPC
AnswerC

Lambda VPC integration allows the function to access VPC resources privately.

Why this answer

Serverless functions can be configured with VPC integration to access resources inside a VPC via private IP.

31
MCQhard

A cloud security engineer is implementing API Gateway security for a public-facing API. Which combination of controls best protects against both injection attacks and excessive usage?

A.IAM authentication and VPC endpoint
B.JWT validation and WAF integration
C.WAF integration and rate limiting
D.API keys and TLS enforcement
AnswerC

Correct; WAF blocks injections, rate limiting controls usage.

Why this answer

WAF integration protects against injection and other web attacks, while rate limiting prevents abuse by limiting requests per client.

32
MCQmedium

A security team is reviewing container image supply chain security. Which tool is specifically designed for signing container images to ensure integrity and provenance?

A.Kube-bench
B.Clair
C.Cosign
D.Trivy
AnswerC

Correct; Cosign is used for image signing and verification.

Why this answer

Cosign is a tool for signing container images and verifying signatures, ensuring the image has not been tampered with.

33
MCQmedium

A security team implements Kubernetes RBAC. They want to ensure that a service account can only create pods in the 'dev' namespace. Which RBAC resource should they use?

A.ClusterRole and ClusterRoleBinding
B.Role and RoleBinding in the 'dev' namespace
C.PodSecurityPolicy (deprecated)
D.NetworkPolicy
AnswerB

A Role defines permissions within a namespace, and RoleBinding grants it to a service account.

Why this answer

RBAC uses Role and RoleBinding for namespace-scoped permissions. ClusterRole and ClusterRoleBinding are cluster-scoped. A Role with permissions to create pods in the 'dev' namespace, bound via RoleBinding, achieves the goal.

34
Multi-Selectmedium

An organization uses Azure Functions and wants to secure its API endpoints exposed via Azure API Management. Which TWO security controls should they implement at the API Gateway level?

Select 2 answers
A.Configure IP whitelisting for all users
B.Store secrets in Azure Function environment variables
C.Enable TLS enforcement
D.Implement JWT validation
E.Disable API keys
AnswersC, D

TLS ensures encrypted communication between clients and the gateway.

Why this answer

TLS enforcement ensures encryption in transit, protecting data from interception. JWT validation verifies the authenticity and integrity of tokens, ensuring only authorized users access the API endpoints.

35
MCQmedium

A container runtime is configured to drop all Linux capabilities, use a read-only root filesystem, and apply a Seccomp profile. Which primary security goal does this configuration achieve?

A.Image integrity verification
B.Ensuring immutability of containers
C.Prevention of container escape
D.Network segmentation between pods
AnswerC

Dropping capabilities, read-only filesystem, and Seccomp limit escape vectors.

Why this answer

These measures restrict container permissions and system calls, making container escape much harder.

36
MCQeasy

A security architect is designing a multi-tenant cloud environment. Which hypervisor type provides the strongest isolation between tenant virtual machines by running directly on the hardware without a host operating system?

A.VMware Workstation (Type 2)
B.KVM (Type 2)
C.VirtualBox (Type 2)
D.VMware ESXi (Type 1)
AnswerD

Correct; ESXi is a Type 1 bare-metal hypervisor.

Why this answer

Type 1 hypervisors run directly on hardware, minimizing the attack surface and providing strong isolation. Type 2 hypervisors run on top of an OS, adding extra layers of vulnerability.

37
MCQmedium

A DevOps engineer is configuring a Kubernetes cluster and wants to enforce that containers cannot run as root and cannot mount host paths. Which Kubernetes security mechanism should be used?

A.Pod Security Admission
B.Network policies
C.RBAC
D.Secrets management
AnswerA

Correct; PSA enforces security standards on pods.

Why this answer

Pod Security Admission (PSA) allows enforcing predefined security policies (privileged, baseline, restricted) at the pod level, covering controls like running as root and host path mounts.

38
Multi-Selectmedium

A security team is hardening a Kubernetes cluster for production workloads. Which THREE measures should they implement to improve runtime container security?

Select 3 answers
A.Mount the host filesystem as read-write in containers
B.Enable AppArmor or SELinux profiles
C.Drop all unnecessary Linux capabilities
D.Apply Seccomp profiles to restrict system calls
E.Use privileged containers for system daemons
AnswersB, C, D

These MAC systems enforce security policies on containers.

Why this answer

AppArmor and SELinux are Linux Security Modules (LSMs) that enforce mandatory access control (MAC) policies on containers. By applying these profiles, you restrict what processes inside a container can do—such as file access, network operations, and capability use—beyond the default discretionary access controls. This significantly reduces the attack surface and limits the impact of a container breakout.

Exam trap

ISC2 often tests the distinction between runtime security measures (like AppArmor, Seccomp, and capability dropping) versus build-time or network-level controls, and candidates may confuse privileged containers with necessary system daemons, forgetting that privileged mode bypasses all runtime security layers.

39
MCQeasy

A serverless function needs to access a private database service without traversing the public internet. Which configuration should be used?

A.Assign a public IP to the serverless function
B.Configure the serverless function with virtual private cloud integration
C.Enable public access on the database service
D.Use a network address translation gateway to route traffic
AnswerB

VPC deployment places the function within the VPC, allowing it to access private resources like a database instance directly.

Why this answer

Virtual private cloud (VPC) integration allows the serverless function to be deployed inside a VPC, enabling private access to resources like a database service. Internet access is not required.

40
MCQeasy

Which of the following is a primary risk specific to virtual machine escape attacks in cloud environments?

A.Unauthorized access to other tenant VMs
B.Data corruption within the same VM
C.Increased latency in virtual networking
D.Denial of service to the attacker's own VM
AnswerA

Correct: VM escape can lead to cross-tenant access.

Why this answer

VM escape allows an attacker to break out of a VM and interact with the hypervisor, potentially compromising other tenants.

41
MCQmedium

A security engineer is implementing container image security. They want to ensure that only signed images from a trusted registry can be deployed in the Kubernetes cluster. Which tool should they use to enforce this at the admission controller level?

A.Clair
B.Trivy
C.Cosign
D.Snyk Container
AnswerC

Cosign supports image signing and verification, and can be used with admission controllers.

Why this answer

Cosign is a tool for signing and verifying container images. It integrates with admission controllers like Kyverno or OPA Gatekeeper to enforce that only signed images are deployed.

42
MCQhard

In a Kubernetes environment, a security team wants to enforce that only images signed by a trusted authority can be deployed. Which component can be used to validate image signatures at admission time?

A.Network policies
B.Admission controller (e.g., OPA Gatekeeper)
C.RBAC policies
D.Secrets management with Vault
AnswerB

Admission controllers can enforce policies such as requiring signed images.

Why this answer

Admission controllers like OPA Gatekeeper or Kyverno can verify image signatures before a pod is created. RBAC controls access, not image validity; network policies manage traffic; secrets management handles credentials.

43
MCQhard

A security analyst discovers that a container running in a Kubernetes cluster has been compromised. The attacker escalated privileges and accessed the host's kernel. Which of the following misconfigurations most likely allowed this container escape?

A.The container was run with the --privileged flag
B.The container was run with a default Seccomp profile
C.The container was run with a read-only root filesystem
D.The container was run with an AppArmor profile in enforce mode
AnswerA

The --privileged flag gives the container almost unrestricted access to the host kernel, enabling easy escape.

Why this answer

Running a container with the --privileged flag grants all capabilities and disables most security mechanisms, making container escape trivial. Other options like Seccomp or AppArmor would restrict actions, and read-only root filesystem would prevent writes, but the privileged mode is the most direct enabler.

44
Multi-Selecthard

A company is adopting a microservices architecture on Kubernetes and needs to ensure least privilege for pod-to-pod communication. Which THREE controls should be implemented?

Select 3 answers
A.Service accounts with minimal permissions
B.Network policies to allow only necessary traffic between pods
C.RBAC to limit what pods can do within the cluster
D.Pod Security Admission to enforce that containers run as root
E.Horizontal Pod Autoscaler
AnswersA, B, C

Correct: Service accounts are used for pod identity; minimal permissions reduce risk.

Why this answer

Network policies restrict pod communication, RBAC controls pod permissions, and service accounts with limited permissions enforce least privilege.

45
Multi-Selecthard

A company is deploying a microservices architecture on Kubernetes and wants to implement supply chain security. Which THREE of the following practices should be adopted?

Select 3 answers
A.Signing container images with Cosign
B.Allowing all images from public registries
C.Scanning images for CVEs using Trivy
D.Using the :latest tag for all images
E.Configuring an admission controller like Kyverno to verify image signatures
AnswersA, C, E

Correct; signing ensures image provenance.

Why this answer

Image signing ensures integrity, scanning for CVEs identifies vulnerabilities, and using admission controllers to verify signatures enforces policy.

46
MCQeasy

Which of the following is a key difference between a security group and a network ACL in a VPC?

A.Security groups are stateless, while NACLs are stateful
B.Security groups are applied at the subnet level, while NACLs are applied at the instance level
C.Security groups support both allow and deny rules
D.Security groups are stateful, while NACLs are stateless
AnswerD

Correct: Stateful security groups automatically allow return traffic.

Why this answer

Security groups are stateful, meaning return traffic is automatically allowed regardless of inbound rules. NACLs are stateless, requiring explicit inbound and outbound rules.

47
MCQmedium

A company uses Azure Functions for serverless data processing. To securely access an Azure SQL database, which of the following is the most secure method for managing the database connection string?

A.Embed the connection string in the function code and encrypt the code file
B.Store the connection string as an environment variable in the function app settings
C.Use Azure Policy to enforce encryption of the connection string at rest
D.Reference the connection string from Azure Key Vault using a managed identity
AnswerD

Correct: Managed identity and Key Vault provide secure, auditable access.

Why this answer

Using managed identities and Azure Key Vault removes hardcoded secrets and provides automatic rotation and access control.

48
MCQmedium

A cloud security architect is designing network connectivity between multiple virtual networks in the same region. The requirement is to allow full mesh connectivity with centralized management and the ability to apply network policies. Which service should be used?

A.Transit gateway
B.Internet gateway
C.Virtual network peering
D.Virtual network endpoint
AnswerA

A transit gateway provides a hub-and-spoke model for multiple VPCs with centralized management.

Why this answer

A transit gateway acts as a central hub for multiple virtual networks, enabling transitive peering and centralized routing and policy management. Virtual network peering is point-to-point and does not support transitive routing, requiring a full mesh of connections for multiple virtual networks.

49
MCQmedium

A company is using AWS Lambda functions that need to access a private RDS database. Which configuration allows the Lambda function to connect securely without traversing the internet?

A.Assign an Elastic IP to the Lambda function
B.Use a Lambda environment variable to store the database endpoint and credentials
C.Place the Lambda function in a public subnet with an internet gateway
D.Configure the Lambda function to use a VPC with private subnets and a VPC endpoint for RDS
AnswerD

Correct: VPC integration and VPC endpoint allow private access.

Why this answer

Attaching the Lambda function to a VPC and placing it in private subnets with a VPC endpoint for RDS or a NAT gateway allows private connectivity.

50
Multi-Selectmedium

A cloud security team is designing network security for a multi-VPC architecture in AWS. Which TWO of the following are valid considerations for VPC peering?

Select 2 answers
A.VPC peering can be used to connect on-premises networks
B.VPC peering requires an internet gateway for communication
C.VPC peering is a one-to-one relationship
D.VPC peering supports transitive routing across multiple VPCs
E.VPC peering allows private IP connectivity between VPCs
AnswersC, E

Correct; each peering connection is between exactly two VPCs.

Why this answer

VPC peering is a direct, non-transitive connection between two VPCs, and transitive routing is not supported without additional components.

51
MCQeasy

A DevOps team is building a container image for a cloud-native application. To minimize the attack surface and reduce the number of vulnerabilities, which type of base image should they use?

A.A full distribution image like Ubuntu
B.An Alpine-based image
C.A distroless image
D.The 'latest' tag of any official image
AnswerC

Distroless images contain only the necessary runtime files, reducing attack surface.

Why this answer

Distroless images contain only the application and its runtime dependencies, removing package managers, shells, and other utilities that could be exploited. This reduces the attack surface significantly.

52
MCQmedium

A company has multiple virtual private clouds in the same region and wants to enable direct IP connectivity between them using private IP addresses. However, they do not need transitive routing across multiple VPCs. Which solution should they use?

A.VPN Gateway
B.Virtual network peering
C.Private connectivity
D.Transit routing hub
AnswerB

VPC peering directly connects two VPCs and is not transitive.

Why this answer

Virtual network peering provides direct one-to-one connectivity without transitive routing.

53
MCQhard

In a cloud environment using KVM, a security auditor wants to ensure that a tenant VM cannot access the memory of another tenant VM on the same physical host. Which resource isolation mechanism is specifically designed to prevent such memory access?

A.Seccomp profiles
B.CPU pinning
C.Extended Page Tables (EPT)
D.IOMMU
AnswerC

Correct; EPT provides hardware-assisted memory isolation between VMs.

Why this answer

Memory isolation is enforced by the hypervisor using Extended Page Tables (EPT) or similar technologies. EPT ensures that each VM's memory mappings are isolated, preventing one VM from accessing another's memory.

54
MCQhard

A cloud architect is designing VPC connectivity for a global organization with multiple AWS accounts. They need a central hub for connecting many VPCs together, supporting transitive routing. Which service should they use?

A.Private Link
B.Transit Gateway
C.VPN Connection
D.VPC Peering
AnswerB

Transit Gateway provides a hub-and-spoke architecture with transitive routing.

Why this answer

AWS Transit Gateway acts as a central hub that allows transitive routing between multiple VPCs and on-premises networks.

55
MCQmedium

A security engineer is reviewing container image security. Which of the following practices best ensures that a container image has not been tampered with and originates from a trusted source?

A.Scanning the image with Trivy for CVEs
B.Using a minimal base image like Alpine
C.Setting the image tag to :latest
D.Signing the image with Cosign and verifying it at deployment
AnswerD

Image signing ensures authenticity and integrity; verification enforces trust.

Why this answer

Image signing using tools like Cosign provides cryptographic verification of image integrity and authenticity. Scanning for CVEs identifies vulnerabilities but does not verify origin.

56
MCQmedium

A cloud security team is implementing container runtime security. Which of the following measures is most effective at preventing a container from breaking out to the host OS?

A.Setting the container's root filesystem to read-only
B.Applying a Seccomp profile that whitelists only necessary syscalls
C.Using a non-root user inside the container
D.Dropping all Linux capabilities except those required
AnswerB

Seccomp profiles directly limit syscalls, a common vector for escape.

Why this answer

Seccomp profiles restrict system calls available to containers, significantly reducing the attack surface for container escape vulnerabilities. Dropping capabilities and read-only root filesystem are important but not as comprehensive as seccomp.

57
MCQeasy

A cloud security architect is designing a multi-tenant virtualized environment. Which type of hypervisor is considered most secure for cloud deployments due to its reduced attack surface and direct hardware control?

A.Type 1 bare-metal hypervisor
B.Type 2 hosted hypervisor
C.Emulated hypervisor (e.g., QEMU without KVM)
D.Container runtime (e.g., Docker)
AnswerA

Type 1 hypervisors run directly on hardware, providing better isolation and security.

Why this answer

Type 1 (bare-metal) hypervisors run directly on hardware without an underlying OS, reducing attack surface and improving isolation. Type 2 hypervisors run on a host OS, adding complexity and potential vulnerabilities.

58
MCQmedium

A security analyst is configuring an API Gateway for a cloud application. The application must handle high traffic and prevent abuse from a single client. Which feature should the analyst enable to limit the number of requests from a client within a specified time window?

A.Rate limiting
B.TLS enforcement
C.Web Application Firewall (WAF) integration
D.API key authentication
AnswerA

Rate limiting controls the number of requests per time window from a client.

Why this answer

Rate limiting throttles requests from a client to prevent abuse and ensure fair usage. API keys authenticate but do not limit rate; WAF filters malicious traffic; TLS enforces encryption.

59
Multi-Selectmedium

A cloud security engineer is hardening container runtime environments. Which TWO of the following are effective measures to prevent container escape?

Select 2 answers
A.Using the latest kernel version
B.Mounting the host filesystem as read-only
C.Running containers in privileged mode
D.Dropping all Linux capabilities except those required
E.Applying Seccomp profiles
AnswersD, E

Correct; dropping capabilities reduces escape vectors.

Why this answer

Seccomp profiles restrict system calls, and dropping unnecessary Linux capabilities reduces the attack surface, both of which help prevent container escape.

60
MCQeasy

A cloud security professional is concerned about VM escape attacks. Which mitigation is most effective?

A.Encryption of VM disks
B.Regular patching of the hypervisor
C.Use of Type 2 hypervisors
D.Network segmentation between VMs
AnswerB

Patching fixes known vulnerabilities that could be used for VM escape.

Why this answer

Hypervisor patching is the primary defense against VM escape, as these attacks exploit vulnerabilities in the hypervisor. Network segmentation and encryption do not prevent the attack itself.

61
MCQmedium

An organization uses Azure Functions and needs to ensure that the function can securely access a database in a private VNet. What is the recommended approach?

A.Place the function in the same VNet as the database without any additional configuration
B.Use a VPN connection from the function to the database VNet
C.Enable VNet integration for the function app and configure the function to use the private IP of the database
D.Store database credentials in environment variables and use a public endpoint with IP whitelisting
AnswerC

Correct; VNet integration provides private connectivity.

Why this answer

VNet integration allows Azure Functions to access resources in a virtual network without exposing them to the internet, using a private IP.

62
MCQhard

A cloud architect is designing a multi-tenant environment. To ensure that a tenant's virtual machine cannot access another tenant's memory, which resource isolation technique should be enforced at the hypervisor level?

A.IOMMU for device isolation
B.Memory isolation via hardware-enforced page tables
C.CPU pinning
D.Network segmentation with VLANs
AnswerB

Hypervisors use hardware support (like EPT) to isolate VM memory.

Why this answer

Memory isolation prevents cross-VM memory access; hypervisors enforce this by allocating dedicated memory pages.

63
Multi-Selecteasy

Which TWO of the following are characteristics of security groups compared to network ACLs in a cloud VPC? (Select two.)

Select 2 answers
A.Operate at the subnet level
B.Stateful – return traffic is automatically allowed
C.Stateless – each packet is evaluated independently
D.Support both allow and deny rules
E.Only allow rules can be specified
AnswersB, E

Security groups track connection state and allow return traffic.

Why this answer

Security groups are stateful (return traffic allowed) and support only allow rules. NACLs are stateless and support both allow and deny rules.

64
MCQhard

During a security review of a serverless application, you notice that a Lambda function's execution role has permissions to delete all S3 buckets in the account. What is the most appropriate remediation to align with the principle of least privilege?

A.Create a custom IAM role that grants only the necessary actions on a specific S3 bucket
B.Store S3 bucket names in environment variables instead of hardcoding
C.Attach the AWS managed policy 'AmazonS3ReadOnlyAccess'
D.Remove the Lambda function's VPC integration
AnswerA

A custom role with resource-level restrictions follows least privilege.

Why this answer

Creating a custom role with only the specific actions needed (e.g., s3:PutObject for a specific bucket) reduces blast radius. Using managed policies may grant excessive permissions; environment variables and VPC integration are unrelated.

65
MCQhard

During a supply chain security review, a team discovers that container images are not being verified at admission time. Which Kubernetes-native tool should be implemented to ensure only signed images are deployed?

A.NetworkPolicy
B.PodSecurityPolicy
C.Admission controller (e.g., Kyverno) with image signature verification
D.ResourceQuota
AnswerC

Correct: Admission controllers can validate image signatures using tools like Cosign.

Why this answer

An admission controller like OPA Gatekeeper or Kyverno can enforce policies that verify image signatures before allowing pod creation.

66
MCQeasy

A cloud security team is reviewing container security practices. Which of the following is the most effective way to minimize the attack surface of a container image?

A.Using the latest version of a base image
B.Using a minimal base image such as distroless
C.Using the :latest tag to ensure freshness
D.Scanning the image for CVEs after deployment
AnswerB

Correct; distroless images are minimal and reduce attack surface.

Why this answer

Distroless images contain only the application and its runtime dependencies, eliminating unnecessary packages and reducing the attack surface.

67
MCQhard

A cloud security team wants to enforce that only signed container images are deployed in their Kubernetes cluster. Which admission controller can validate image signatures at deploy time?

A.HashiCorp Vault
B.Consul
C.Trivy
D.Kyverno
AnswerD

Kyverno is a Kubernetes-native policy engine that can verify image signatures.

Why this answer

Admission controllers like OPA Gatekeeper or Kyverno can enforce policies to only allow images signed by trusted authorities.

68
MCQeasy

A security engineer is reviewing container security practices. Which tool is specifically designed to scan container images for Common Vulnerabilities and Exposures (CVEs)?

A.Kubernetes RBAC
B.Trivy
C.Seccomp
D.OPA Gatekeeper
AnswerB

Trivy is a popular image vulnerability scanner.

Why this answer

Trivy is an open-source vulnerability scanner for container images, commonly used in CI/CD pipelines.

69
MCQeasy

In a cloud VPC design, which component acts as a stateful firewall at the instance level, allowing only inbound rules?

A.Security group
B.Network ACL (NACL)
C.Internet gateway
D.Route table
AnswerA

Security groups are instance-level stateful firewalls.

Why this answer

Security groups are stateful firewalls that control traffic to instances; they only support allow rules and are stateful.

70
MCQhard

A company uses AWS and needs to allow a Lambda function in a VPC to access an S3 bucket without traversing the internet. Which solution meets this requirement securely?

A.Configure a NAT gateway in the VPC and route traffic through it
B.Create a VPC endpoint for S3 and attach it to the Lambda's VPC
C.Use VPC peering to connect to the S3 bucket's VPC
D.Assign a public IP to the Lambda and use an internet gateway
AnswerB

Correct; a VPC endpoint enables private connectivity.

Why this answer

VPC endpoints (Gateway or Interface) allow private access to AWS services without internet traversal. For S3, a Gateway endpoint is commonly used.

71
MCQhard

During a security assessment of a Kubernetes cluster, you discover that a container is running as root with privileged mode enabled. Which of the following is the most critical risk associated with this configuration?

A.Network policy bypass allowing unauthorized pod communication
B.Potential for container escape to the host OS
C.Increased memory consumption due to lack of resource limits
D.Inability to mount volumes for persistent storage
AnswerB

Privileged mode and root access significantly increase the risk of container escape.

Why this answer

Running as root with privileged mode grants full host access, making container escape to the host OS highly feasible. Seccomp and AppArmor can mitigate, but the core risk is escape.

72
Multi-Selecthard

A DevSecOps team is implementing a secure container supply chain. Which THREE practices should they adopt to ensure image integrity and trust from build to deployment?

Select 3 answers
A.Signing container images with Cosign
B.Storing images in a private registry without scanning
C.Using admission controller (e.g., Kyverno) to verify signatures
D.Allowing any image with a :latest tag
E.Scanning images for vulnerabilities using Trivy
AnswersA, C, E

Signing provides cryptographic proof of origin.

Why this answer

Image signing, vulnerability scanning, and using admission controllers to verify signatures ensure integrity and trust.

73
MCQeasy

A cloud security professional is evaluating container runtime security. Which Linux capability should be dropped from a container to prevent it from loading kernel modules?

A.CAP_DAC_OVERRIDE
B.CAP_CHOWN
C.CAP_SYS_MODULE
D.CAP_NET_RAW
AnswerC

Correct; dropping CAP_SYS_MODULE prevents kernel module manipulation.

Why this answer

The CAP_SYS_MODULE capability allows loading/unloading kernel modules, which is a common vector for container escape. Dropping it reduces risk.

74
MCQmedium

A security engineer is concerned about a scenario where a malicious process inside a VM breaks out of the virtualized environment to compromise the hypervisor. What is this attack called and what is the primary mitigation?

A.VM sprawl; use resource limits
B.Side-channel attack; disable hyperthreading
C.Privilege escalation; enable SELinux inside VM
D.VM escape; regularly patch the hypervisor
AnswerD

VM escape is a critical multi-tenancy risk; patching is key.

Why this answer

VM escape occurs when code inside a VM accesses the hypervisor. Patching the hypervisor closes known vulnerabilities.

75
MCQmedium

A security architect is designing a container runtime security strategy. Which of the following controls is most effective at preventing a container from compromising the host kernel?

A.Seccomp profile
B.Read-only root filesystem
C.Resource limits (CPU/memory)
D.Image vulnerability scanning
AnswerA

Correct: Seccomp limits syscalls, directly reducing kernel attack surface.

Why this answer

Seccomp profiles restrict the system calls a container can make, reducing the attack surface against the host kernel.

Page 1 of 2 · 80 questions totalNext →

Ready to test yourself?

Try a timed practice session using only Cloud Platform and Infrastructure Security questions.