Docsity

[CA] Containerization Architect Certification Exam Guide, Exams of Technology

Toggle sidebar
bg1
[CA] Containerization Architect Certification
Exam Guide
**Question 1.** Which Linux kernel primitive provides isolation of process IDs across
containers?
A) Cgroups
B) PID namespace
C) Network namespace
D) UTS namespace
Answer: B
Explanation: The PID namespace creates a separate process ID number space, allowing
containers to have their own init process with PID 1, isolated from the host and other
containers.
**Question 2.** In the context of virtualization, a Type 1 hypervisor runs directly on:
A) The host operating system
B) The hardware (bare metal)
C) A virtual machine
D) A container engine
Answer: B
Explanation: Type 1 (bare‑metal) hypervisors run directly on the physical hardware, providing
higher performance and isolation compared to Type 2 hypervisors that sit on top of an OS.
**Question 3.** Which of the following best describes the ā€œit works on my machineā€ problem
that containers aim to solve?
A) Lack of hardware resources
B) Inconsistent runtime environments between development and production
C) Slow network connectivity
D) Insufficient logging capabilities
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
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63

Partial preview of the text

Download [CA] Containerization Architect Certification Exam Guide and more Exams Technology in PDF only on Docsity!

Exam Guide

Question 1. Which Linux kernel primitive provides isolation of process IDs across containers? A) Cgroups B) PID namespace C) Network namespace D) UTS namespace Answer: B Explanation: The PID namespace creates a separate process ID number space, allowing containers to have their own init process with PID 1, isolated from the host and other containers. Question 2. In the context of virtualization, a Type 1 hypervisor runs directly on: A) The host operating system B) The hardware (bare metal) C) A virtual machine D) A container engine Answer: B Explanation: Type 1 (bare‑metal) hypervisors run directly on the physical hardware, providing higher performance and isolation compared to Type 2 hypervisors that sit on top of an OS. Question 3. Which of the following best describes the ā€œit works on my machineā€ problem that containers aim to solve? A) Lack of hardware resources B) Inconsistent runtime environments between development and production C) Slow network connectivity D) Insufficient logging capabilities

Exam Guide

Answer: B Explanation: Containers package an application with its dependencies, ensuring the same environment across dev, test, and prod, eliminating the classic ā€œit works on my machineā€ issue. Question 4. Which service model delivers a complete runtime environment for developers, abstracting away the underlying infrastructure? A) CaaS (Containers as a Service) B) PaaS (Platform as a Service) C) IaaS (Infrastructure as a Service) D) FaaS (Function as a Service) Answer: B Explanation: PaaS provides a full platform—including runtime, middleware, and development tools—so developers can focus on code without managing servers or containers directly. Question 5. Which of the following is NOT a characteristic of containers when compared with virtual machines? A) Faster startup time B) Full kernel isolation per instance C) Smaller footprint D) Shared host kernel Answer: B Explanation: Containers share the host kernel; they do not have a full kernel per instance, unlike VMs which each run their own kernel. Question 6. What is the primary purpose of cgroups in Linux containers? A) Provide network isolation

Exam Guide

Question 9. Which Dockerfile instruction is evaluated at build time and cannot be accessed from within the running container? A) ENV B) ARG C) LABEL D) VOLUME Answer: B Explanation: ARG defines a build‑time variable; its value is not persisted into the final image, unlike ENV which becomes part of the container’s environment. Question 10. Multi‑stage builds primarily help to: A) Run multiple containers simultaneously B) Reduce final image size by discarding intermediate layers C) Enable parallel builds on different hosts D) Provide built‑in load balancing Answer: B Explanation: Multi‑stage Dockerfiles allow you to copy only the artifacts needed for runtime from earlier stages, discarding build tools and reducing the final image footprint. Question 11. Which OCI component defines the runtime specification for containers? A) runc B) containerd C) CRI-O D) OCI Image Format Answer: A

Exam Guide

Explanation: runc implements the OCI Runtime Specification, translating the image configuration into a running container instance. Question 12. When pushing an image to a private registry, which feature ensures the image has not been tampered with? A) Content Trust (Docker Notary) B) Layer caching C) Multi‑arch manifest D) BuildKit Answer: A Explanation: Docker Content Trust uses Notary to sign images, enabling verification of integrity and authenticity when pulling from a registry. Question 13. Which of the following base images is most commonly used to minimize attack surface? A) Ubuntu B) Alpine C) CentOS D) Debian Answer: B Explanation: Alpine Linux is a minimal distribution (ā‰ˆ5 MB) that reduces the number of packages and thus the potential vulnerability surface. Question 14. In the Container Network Model (CNM), which component is responsible for assigning IP addresses to containers? A) CNI plugin B) Docker daemon

Exam Guide

Question 17. Which Kubernetes component provides internal DNS resolution for services and pods? A) kube-apiserver B) CoreDNS C) kube-proxy D) etcd Answer: B Explanation: CoreDNS runs as a cluster add‑on and supplies DNS entries for services and pods, enabling name‑based service discovery within the cluster. Question 18. NetworkPolicy objects in Kubernetes are used to: A) Define load‑balancing algorithms B) Restrict pod‑to‑pod traffic based on L3/L4 rules C) Allocate static IP addresses D) Create overlay networks Answer: B Explanation: NetworkPolicy resources allow administrators to whitelist or blacklist traffic to/from pods, providing micro‑segmentation at the IP/port level. Question 19. Which storage driver in Docker is recommended for production on modern Linux kernels due to its performance and stability? A) aufs B) devicemapper C) overlay D) btrfs Answer: C

Exam Guide

Explanation: overlay2 leverages the kernel’s OverlayFS, offering superior speed, lower overhead, and broad compatibility with recent kernel versions. Question 20. A bind mount is best described as: A) A Docker‑managed volume stored in /var/lib/docker/volumes B) A host directory mounted into a container at a specific path C) An in‑memory temporary filesystem D) A read‑only snapshot of an image layer Answer: B Explanation: Bind mounts map a directory or file from the host filesystem directly into the container, allowing containers to read/write host data. Question 21. In Kubernetes, which object abstracts the physical storage provisioned by an administrator? A) ConfigMap B) PersistentVolume (PV) C) Service D) ReplicaSet Answer: B Explanation: A PersistentVolume represents a piece of storage in the cluster that has been provisioned by an admin or dynamically by a storage class. Question 22. Which CSI (Container Storage Interface) feature enables dynamic provisioning of storage without pre‑creating PV objects? A) VolumeSnapshot B) StorageClass

Exam Guide

Question 25. Which deployment strategy allows a new version of an application to receive a small fraction of traffic while the majority continues to use the stable version? A) Rolling update B) Blue/Green C) Canary release D) Recreate Answer: C Explanation: Canary releases gradually shift a subset of traffic to the new version, enabling testing in production before a full rollout. Question 26. Node affinity in Kubernetes is used to: A) Limit the number of pods per node B) Schedule pods onto nodes that match specified label criteria C) Evict pods based on memory pressure D) Provide network isolation between nodes Answer: B Explanation: Node affinity expresses preferences or hard requirements for pod placement based on node labels, influencing the scheduler’s decisions. Question 27. Which Kubernetes feature allows a pod to tolerate a node’s taint, preventing eviction? A) NodeSelector B) Tolerations C) PodDisruptionBudget D) PriorityClass Answer: B

Exam Guide

Explanation: Tolerations enable pods to be scheduled onto nodes that have matching taints, allowing administrators to reserve nodes for special workloads. Question 28. The sidecar pattern is commonly used to: A) Replace the main application binary with a proxy B) Run an auxiliary container that adds functionality such as logging or monitoring C) Scale the primary container horizontally D) Provide a backup replica of the pod Answer: B Explanation: A sidecar container lives in the same pod as the main app, extending its capabilities (e.g., log collection) without modifying the primary container’s code. Question 29. In the ambassador pattern, the auxiliary container typically runs as a: A) Init container that performs pre‑flight checks B) Proxy that handles inbound/outbound traffic for the main app C) Scheduler that decides pod placement D) Storage driver for persistent volumes Answer: B Explanation: The ambassador pattern deploys a proxy (often Envoy or HAProxy) as a separate container to manage external communication, implement circuit breaking, or provide protocol translation. Question 30. Which design pattern is most appropriate for ensuring that only one instance of a service performs a specific task in a distributed system? A) Adapter B) Leader election

Exam Guide

A) TCP

B) HTTP over port 9090 C) gRPC D) UDP Answer: B Explanation: Prometheus pulls metrics via HTTP GET requests (default port 9090) from endpoints exposing data in the Prometheus exposition format. Question 34. Which Kubernetes probe is used to determine whether a pod is ready to receive traffic? A) Liveness probe B) Startup probe C) Readiness probe D) Health probe Answer: C Explanation: The readinessProbe signals to the kube‑proxy and service load balancer that a pod is prepared to accept requests; failing it removes the pod from service endpoints. Question 35. A ā€œCrashLoopBackOffā€ pod status most often indicates: A) Insufficient CPU limits B) The container repeatedly exits with a non‑zero status C) Network policy blocking traffic D) Persistent volume claim error Answer: B Explanation: CrashLoopBackOff occurs when a container starts, crashes, and the kubelet attempts to restart it repeatedly, backing off after each failure.

Exam Guide

Question 36. Which tool is commonly used to perform distributed tracing across microservices in a Kubernetes environment? A) Fluentd B) Jaeger C) Prometheus D) Grafana Answer: B Explanation: Jaeger implements the OpenTracing standard and collects trace spans from services, enabling end‑to‑end request flow visualization. Question 37. Seccomp profiles in container runtimes are primarily used to: A) Encrypt container images B) Restrict system calls a container can make C) Provide role‑based access control for APIs D) Manage storage class parameters Answer: B Explanation: Seccomp (Secure Computing Mode) filters system calls, reducing the attack surface by allowing only a whitelist of needed calls for a container. Question 38. In Kubernetes RBAC, which resource defines a set of permissions that can be granted to users or service accounts? A) RoleBinding B) ClusterRole C) ServiceAccount D) ConfigMap

Exam Guide

B) Restrict /var/run/docker.sock to the docker group C) Disable the daemon’s logging driver D) Enable experimental features Answer: B Explanation: The CIS Docker Benchmark advises limiting access to the Docker socket (/var/run/docker.sock) to a dedicated group, preventing unauthorized users from controlling the daemon. Question 42. Which of the following is a primary advantage of using a distroless base image? A) Includes a package manager for easy updates B] Provides a full shell environment for debugging C) Removes unnecessary OS components, reducing attack surface D) Guarantees compatibility with all Linux kernels Answer: C Explanation: Distroless images contain only the application and its runtime dependencies, omitting shells, package managers, and other utilities, thereby shrinking the attack surface. Question 43. In Docker, what does the --squash flag do during image build? A) Compresses the final image file on disk B) Merges all intermediate layers into a single layer C) Removes all unused images from the host D) Enables image signing with Notary Answer: B Explanation: --squash consolidates all layers created during the Dockerfile build into one final layer, producing a smaller, less inspectable image.

Exam Guide

Question 44. Which CNI plugin is known for providing high‑performance networking using the Linux kernel’s veth and iptables mechanisms? A) Flannel B) Calico C) Weave Net D) Cilium Answer: B Explanation: Calico implements L3 routing with iptables (or eBPF in newer versions) and uses veth pairs, delivering high‑performance, policy‑driven networking. Question 45. A Kubernetes Service of type LoadBalancer typically interacts with which external component in cloud environments? A) kube‑proxy B) Ingress controller C) Cloud provider’s load balancer (e.g., ELB, ALB) D) DNS server Answer: C Explanation: In managed clouds, a LoadBalancer Service provisions a cloud‑native external load balancer (AWS ELB, GCP LB, Azure LB) that forwards traffic to the service’s pods. Question 46. Which of the following best describes a ā€œblue/greenā€ deployment? A) Deploying two versions simultaneously and routing a percentage of traffic to each B) Deploying a new version to a separate environment, then switching traffic after verification C) Rolling out updates pod‑by‑pod without downtime D) Using canary pods to test new features

Exam Guide

A) PodAffinity B) Taint C) DaemonSet D) ConfigMap Answer: A Explanation: podAffinity (or requiredDuringSchedulingIgnoredDuringExecution) expresses a hard rule that a pod must be co‑located with pods matching certain labels on the same node. Question 50. The kube‑proxy component in Kubernetes primarily operates in which mode to implement Service networking? A) IPVS mode B) CNI mode C) CSI mode D) ETCD mode Answer: A Explanation: kube-proxy can run in iptables or IPVS mode; IPVS provides higher performance load balancing by using Linux Virtual Server, which is the default in many modern clusters. Question 51. Which of the following is a key benefit of using a ā€œstore‑and‑forwardā€ logging architecture such as the ELK stack? A) Logs are stored directly on the container’s root filesystem B) Log data can be indexed, searched, and visualized centrally C) Each container writes logs to a separate Elasticsearch node D) Logging is performed without any network traffic Answer: B

Exam Guide

Explanation: The ELK (Elasticsearch‑Logstash‑Kibana) stack collects logs from many sources, indexes them, and provides powerful search and visualization capabilities. Question 52. In a Kubernetes cluster, which component validates API requests before they are persisted in etcd? A) kube‑scheduler B) kube‑controller‑manager C) kube‑apiserver D) kube‑proxy Answer: C Explanation: The kube-apiserver acts as the front‑end, authenticating, authorizing, and validating all incoming API calls before committing changes to etcd. Question 53. Which of the following best describes a ā€œcontainer escapeā€ attack? A) Hijacking a container’s network traffic B) Exploiting a vulnerability to gain access to the host kernel from inside a container C) Overloading a container with CPU requests D) Deleting a container image from a registry Answer: B Explanation: A container escape occurs when an attacker breaks out of the container isolation mechanisms (namespaces, cgroups) to execute code on the host system. Question 54. What is the primary purpose of the kube‑adm tool? A) Deploy a fully managed cloud Kubernetes service B) Provide a simple way to bootstrap a conformant Kubernetes control plane C) Manage container image builds