Docsity

Cloud Computing Virtualization, Containerization and Cloud Deployment Architecture Examin, Exams of Nursing

Toggle sidebar
bg1
Cloud Computing: Virtualization,
Containerization and Cloud Deployment
Architecture Examination - Newest Exam
Preparation With Complete Questions And
Correct Answers With Rationales
QUESTION 1
A company is migrating its legacy monolithic application to the
cloud. The application has a hard requirement for a specific
kernel version and custom kernel modules. Which virtualization
approach is most appropriate to meet this requirement?
A. Type 2 hypervisor
B. OS-level virtualization (containers)
C. Type 1 hypervisor
D. Paravirtualization
CORRECT ANSWER
C. Type 1 hypervisor
RATIONALE
A Type 1 hypervisor (bare-metal) runs directly on the hardware and
allows full control over the guest OS kernel, including the ability to
load custom kernel modules and choose specific kernel versions. Type
2 hypervisors also allow this but are less efficient for production
workloads. Containers share the host kernel, so they cannot satisfy a
requirement for a specific kernel version or custom kernel modules.
Paravirtualization modifies the guest OS to use hypercalls but still
requires a hypervisor; it does not inherently provide kernel
customization beyond what a Type 1 hypervisor offers, and it is less
common today. Therefore, Type 1 hypervisor is the most appropriate.
1 | Page
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28

Partial preview of the text

Download Cloud Computing Virtualization, Containerization and Cloud Deployment Architecture Examin and more Exams Nursing in PDF only on Docsity!

Cloud Computing: Virtualization,

Containerization and Cloud Deployment

Architecture Examination - Newest Exam

Preparation With Complete Questions And

Correct Answers With Rationales

QUESTION 1

A company is migrating its legacy monolithic application to the cloud. The application has a hard requirement for a specific kernel version and custom kernel modules. Which virtualization approach is most appropriate to meet this requirement? A. Type 2 hypervisor B. OS-level virtualization (containers) C. Type 1 hypervisor D. Paravirtualization CORRECT ANSWER C. Type 1 hypervisor RATIONALE A Type 1 hypervisor (bare-metal) runs directly on the hardware and allows full control over the guest OS kernel, including the ability to load custom kernel modules and choose specific kernel versions. Type 2 hypervisors also allow this but are less efficient for production workloads. Containers share the host kernel, so they cannot satisfy a requirement for a specific kernel version or custom kernel modules. Paravirtualization modifies the guest OS to use hypercalls but still requires a hypervisor; it does not inherently provide kernel customization beyond what a Type 1 hypervisor offers, and it is less common today. Therefore, Type 1 hypervisor is the most appropriate.

QUESTION 2

A development team is deploying a microservices application using containers. They need to ensure that each container has its own isolated network stack and can be assigned a unique IP address. Which container networking mode should they use? A. Host networking B. Bridge networking C. Overlay networking D. Macvlan networking CORRECT ANSWER D. Macvlan networking RATIONALE Macvlan networking allows containers to have their own MAC address and be assigned an IP address from the physical network, making them appear as physical devices on the network. This provides each container with a unique IP address and full network stack isolation. Host networking shares the host's network namespace, so containers do not get unique IPs. Bridge networking assigns IPs from a private bridge network, but containers are not directly on the physical network and typically use NAT. Overlay networking is used for multi-host communication but still relies on an underlying network and does not give containers direct physical network presence. Thus, macvlan is the correct choice for unique IPs on the physical network. QUESTION 3 A cloud architect is designing a highly available system across multiple availability zones. The application state must be shared across all instances. Which storage solution is most suitable? A. Instance store B. Block storage (e.g., EBS) attached to a single instance

User namespaces allow mapping the container's root user to an unprivileged user on the host, so even if the container process thinks it is root, it has no privileges on the host. This significantly reduces the attack surface. Running as root with a read-only file system still leaves the container with root privileges inside the container, which can be dangerous. Disabling all capabilities is not always practical because some capabilities are needed for basic operations, and it may break the application. The --privileged flag gives the container all capabilities and access to devices, which is the opposite of least privilege. Therefore, user namespaces are the most effective among the options. QUESTION 5 A cloud deployment uses a load balancer to distribute traffic to a fleet of web servers. The application requires session affinity (sticky sessions) based on client IP. Which load balancer configuration is most appropriate? A. Layer 4 load balancer with source IP hash B. Layer 7 load balancer with cookie-based session affinity C. Layer 4 load balancer with round-robin D. Layer 7 load balancer with URL-based routing CORRECT ANSWER A. Layer 4 load balancer with source IP hash RATIONALE Source IP hash is a Layer 4 (transport layer) load balancing algorithm that maps client IP addresses to specific backend servers, providing session affinity based on client IP. Cookie-based session affinity is a Layer 7 (application layer) feature that uses cookies to track sessions, which is not based on client IP. Round-robin does not provide affinity. URL-based routing is for directing requests based on URL path, not for session affinity. Therefore, a Layer 4 load balancer with source IP hash is the most appropriate for IP-based session affinity.

QUESTION 6

A company is deploying a containerized application on Kubernetes. They need to ensure that the application can automatically scale based on CPU utilization. Which Kubernetes resource should they use? A. Horizontal Pod Autoscaler (HPA) B. Vertical Pod Autoscaler (VPA) C. Cluster Autoscaler D. Pod Disruption Budget (PDB) CORRECT ANSWER A. Horizontal Pod Autoscaler (HPA) RATIONALE The Horizontal Pod Autoscaler (HPA) automatically scales the number of pods in a deployment, replica set, or stateful set based on observed CPU utilization or other custom metrics. VPA adjusts CPU and memory requests/limits for containers but does not scale the number of pods. Cluster Autoscaler adjusts the number of nodes in the cluster. PDB limits the number of pods that can be down during voluntary disruptions. Therefore, HPA is the correct resource for scaling based on CPU utilization. QUESTION 7 A cloud architect is designing a disaster recovery strategy. The requirement is to have a recovery point objective (RPO) of 15 minutes and a recovery time objective (RTO) of 1 hour. Which approach is most cost-effective while meeting these objectives? A. Backup and restore B. Pilot light C. Warm standby D. Multi-site active-active

runtime. VMs are generally less portable because they include a full OS. Containers provide process-level isolation, which is generally considered weaker than the hardware-level isolation of VMs. Therefore, the key difference is that containers share the host kernel while VMs run a full guest OS. QUESTION 9 A company is using AWS and wants to run a containerized application without managing the underlying servers. They also want to pay only for the resources used by the containers. Which AWS service should they use? A. Amazon ECS with EC2 launch type B. Amazon EKS with managed node groups C. AWS Fargate D. Amazon EC2 Auto Scaling CORRECT ANSWER C. AWS Fargate RATIONALE AWS Fargate is a serverless compute engine for containers that allows you to run containers without provisioning or managing servers. You pay for the vCPU and memory resources used by your containers. ECS with EC2 launch type requires you to manage the EC2 instances. EKS with managed node groups still requires you to manage the worker nodes (though AWS manages the control plane). EC2 Auto Scaling is for virtual machines, not containers. Therefore, Fargate is the correct choice. QUESTION 10 In a virtualized environment, what is the primary purpose of a hypervisor?

A. To provide a shared file system for virtual machines B. To abstract the physical hardware and allow multiple VMs to run concurrently C. To containerize applications D. To manage network traffic between containers CORRECT ANSWER B. To abstract the physical hardware and allow multiple VMs to run concurrently RATIONALE A hypervisor, also known as a virtual machine monitor, is software that creates and runs virtual machines by abstracting the underlying physical hardware. It allows multiple VMs to share the physical resources while providing isolation. Providing a shared file system is not the primary purpose of a hypervisor. Containerization is handled by container runtimes, not hypervisors. Managing network traffic between containers is typically done by container networking plugins. Therefore, the primary purpose is to abstract hardware and enable multiple VMs. QUESTION 11 A company is deploying a microservices application on Kubernetes. They need to ensure that a specific microservice can only communicate with certain other microservices. Which Kubernetes feature should they use? A. Network Policies B. Pod Security Policies C. Resource Quotas D. Limit Ranges CORRECT ANSWER A. Network Policies

Therefore, SaaS is the correct answer. QUESTION 13 A company is using Docker and wants to reduce the size of their images. Which of the following practices is most effective? A. Using a single RUN instruction for all commands B. Using multi-stage builds C. Using the latest tag for base images D. Adding all files in one COPY instruction CORRECT ANSWER B. Using multi-stage builds RATIONALE Multi-stage builds allow you to use multiple FROM statements in a Dockerfile, where you can build the application in one stage and then copy only the necessary artifacts into a final, smaller image. This reduces the final image size by excluding build tools and intermediate files. Using a single RUN instruction can reduce layers but not necessarily size if it includes unnecessary files. Using the latest tag does not reduce size and can introduce instability. Adding all files in one COPY instruction may increase size if unnecessary files are included. Therefore, multi-stage builds are the most effective for reducing image size. QUESTION 14 In the context of cloud deployment, what does the term 'lift and shift' refer to? A. Refactoring an application to be cloud-native B. Migrating an application to the cloud with minimal changes C. Moving an application from one cloud provider to another

D. Using containers to package an application CORRECT ANSWER B. Migrating an application to the cloud with minimal changes RATIONALE Lift and shift (also known as rehosting) is a migration strategy where an application is moved to the cloud with minimal or no modifications, often using infrastructure as a service (IaaS). It does not involve refactoring to be cloud-native. Moving between cloud providers is a different scenario. Using containers is a form of repackaging, not necessarily lift and shift. Therefore, lift and shift refers to migrating with minimal changes. QUESTION 15 A company is using Kubernetes and wants to ensure that a pod is not scheduled on a node that already has a pod with a specific label. Which Kubernetes concept should they use? A. Node Affinity B. Pod Affinity C. Pod Anti-Affinity D. Taints and Tolerations CORRECT ANSWER C. Pod Anti-Affinity RATIONALE Pod Anti-Affinity is used to prevent a pod from being scheduled on a node that already has a pod matching certain labels. Node Affinity is used to constrain which nodes a pod can be scheduled on based on node labels. Pod Affinity attracts pods to nodes with certain pods. Taints and Tolerations allow nodes to repel pods unless the pod tolerates the taint. Therefore, Pod Anti-Affinity is the correct concept for avoiding co-location with specific pods.

RATIONALE

To be resilient to the failure of a single availability zone, resources must be deployed across at least two availability zones. This allows the system to continue operating if one AZ fails. Deploying in a single AZ does not provide resilience to AZ failure. Deploying across two regions provides resilience to region failure but is more than the minimum for AZ resilience. A CDN can improve performance and availability but does not by itself provide AZ resilience. Therefore, deploying across at least two AZs is the minimum requirement. QUESTION 18 What is the role of a container orchestration system like Kubernetes? A. To build container images B. To manage the lifecycle of containers across a cluster of nodes C. To provide a virtual machine for each container D. To compile application code into containers CORRECT ANSWER B. To manage the lifecycle of containers across a cluster of nodes RATIONALE Container orchestration systems like Kubernetes automate the deployment, scaling, and management of containerized applications across a cluster of nodes. They handle scheduling, scaling, networking, and health checks. Building container images is done by tools like Docker build. Orchestrators do not provide a VM per container; they schedule containers on nodes. Compiling code is not their role. Therefore, managing the lifecycle of containers across a cluster is the correct role. QUESTION 19 A company is using AWS and wants to run a batch job that can

be interrupted. They want to minimize costs. Which EC purchasing option should they use? A. On-Demand Instances B. Reserved Instances C. Spot Instances D. Dedicated Hosts CORRECT ANSWER C. Spot Instances RATIONALE Spot Instances offer spare EC2 capacity at a significant discount (up to 90%) compared to On-Demand, but they can be interrupted by AWS with a two-minute warning. They are ideal for fault-tolerant, flexible batch jobs. On-Demand is full price. Reserved Instances require a commitment and are not suitable for interruptible jobs. Dedicated Hosts are physical servers dedicated to your use and are the most expensive. Therefore, Spot Instances are the most cost- effective for interruptible batch jobs. QUESTION 20 In a cloud environment, what is the primary function of a virtual private cloud (VPC)? A. To provide a dedicated physical network B. To isolate cloud resources in a virtual network C. To connect multiple cloud providers D. To provide a shared file system CORRECT ANSWER B. To isolate cloud resources in a virtual network RATIONALE A Virtual Private Cloud (VPC) is a virtual network dedicated to your

QUESTION 22

In a containerized environment, which component is responsible for orchestrating container deployment, scaling, and management across a cluster? A. Docker Engine B. Kubernetes C. Hypervisor D. Virtual Machine Manager CORRECT ANSWER B. Kubernetes RATIONALE Kubernetes is a container orchestration platform that automates deployment, scaling, and management of containerized applications. Docker Engine is a container runtime for building and running containers on a single host. Hypervisor and Virtual Machine Manager are for virtualization, not container orchestration. QUESTION 23 A financial institution is concerned about data sovereignty and regulatory compliance. They want to use cloud services but must keep sensitive data on-premises. Which cloud deployment model best fits their needs? A. Public cloud B. Private cloud C. Hybrid cloud D. Community cloud CORRECT ANSWER C. Hybrid cloud RATIONALE

A hybrid cloud combines on-premises infrastructure with public cloud services, allowing sensitive data to remain on-premises while leveraging public cloud for less sensitive workloads. Public cloud may not meet data sovereignty requirements. Private cloud keeps all data on-premises but may lack scalability. Community cloud is shared among organizations with common concerns, which may not align with the institution's specific compliance needs. QUESTION 24 Which of the following is a key difference between virtual machines and containers? A. Virtual machines share the host OS kernel, while containers each have their own OS. B. Containers are more resource-intensive than virtual machines. C. Virtual machines include a full OS, while containers share the host OS kernel. D. Containers require a hypervisor, while virtual machines do not. CORRECT ANSWER C. Virtual machines include a full OS, while containers share the host OS kernel. RATIONALE Virtual machines include a complete guest operating system, which makes them heavier but more isolated. Containers share the host OS kernel, making them lightweight and efficient. Option A is the opposite of the truth. Option B is false; containers are less resource-intensive. Option D is false; containers do not require a hypervisor, but VMs do. QUESTION 25 A startup wants to deploy a microservices application quickly with minimal infrastructure management. They prefer a serverless approach. Which cloud service model should they

RATIONALE

Object storage manages data as objects with metadata and is ideal for unstructured data such as media files, backups, and archives. Block storage provides raw storage volumes and is used for structured data requiring low-latency access, like databases and VM disks. Option A is false; block storage is used for VM disk images. Option B is reversed. Option D is false; object storage is accessed via HTTP/ REST, block storage via protocols like iSCSI. QUESTION 27 A company is designing a cloud architecture that must tolerate the failure of an entire data center. Which design principle should they implement? A. Vertical scaling B. Multi-region deployment C. Single availability zone deployment D. On-premises backup CORRECT ANSWER B. Multi-region deployment RATIONALE Multi-region deployment distributes applications across multiple geographic regions, ensuring that if one data center fails, another can take over. Vertical scaling increases resources on a single server but does not provide geographic redundancy. Single availability zone deployment is vulnerable to data center failures. On-premises backup may help with data recovery but does not provide continuous availability. QUESTION 28 Which of the following best describes the role of a hypervisor in virtualization?

A. It manages container lifecycles. B. It abstracts physical hardware and allows multiple virtual machines to run on a single host. C. It provides a runtime environment for serverless functions. D. It orchestrates containers across a cluster. CORRECT ANSWER B. It abstracts physical hardware and allows multiple virtual machines to run on a single host. RATIONALE A hypervisor is software that creates and runs virtual machines by abstracting the underlying physical hardware, allowing multiple VMs to share the same physical resources. Container lifecycle management is done by container runtimes like Docker. Serverless runtime is provided by FaaS platforms. Container orchestration is done by Kubernetes, not a hypervisor. QUESTION 29 A company is using a public cloud provider and wants to ensure that their application remains available even if a single availability zone fails. What should they do? A. Deploy the application in a single availability zone with auto- scaling. B. Deploy the application across multiple availability zones within the same region. C. Deploy the application in a single region with a backup on- premises. D. Use a content delivery network (CDN) to cache the application. CORRECT ANSWER B. Deploy the application across multiple availability zones within the same region.