















































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
















































































Question 1. Which Linux command is used to display the last 10 lines of a file by default? A) head B) tail C) cat D) less Answer: B Explanation: tail prints the end of a file; without options it shows the last 10 lines. Question 2. In Git, which command creates a new branch without switching to it? A) git branch git branch <name> creates the branch; it does not change the HEAD. Question 3. Which AWS service provides a fully managed NoSQL database? A) Amazon RDS B) Amazon DynamoDB C) Amazon Redshift D) Amazon Aurora Answer: B Explanation: DynamoDB is AWS’s managed key‑value and document NoSQL database. Question 4. What is the primary purpose of a Kubernetes Service of type LoadBalancer?
A) Expose pods internally only B) Provide a stable DNS name for pods C) Allocate an external IP from the cloud provider’s LB service D) Enable headless service discovery Answer: C Explanation: The LoadBalancer type creates a cloud provider load balancer and assigns an external IP. Question 5. In Docker, which command builds an image from a Dockerfile in the current directory and tags it as myapp:latest? A) docker run - t myapp:latest. B) docker build - t myapp:latest. C) docker create - t myapp:latest. D) docker commit - t myapp:latest. Answer: B Explanation: docker build - t <tag> . builds an image from the Dockerfile in the current context. Question 6. Which of the following is a characteristic of serverless compute (e.g., AWS Lambda)? A) Fixed provisioning of VMs B) Automatic scaling based on request volume C) Manual patching of the underlying OS D) Persistent storage attached to the function Answer: B Explanation: Serverless platforms automatically scale the function instances in response to incoming events.
Answer: C Explanation: iptables - L lists the rules in the filter table, which is the default table for firewall rules. Question 10. Which Azure resource type provides a globally distributed DNS service? A) Azure Traffic Manager B) Azure Front Door C) Azure DNS D) Azure Load Balancer Answer: C Explanation: Azure DNS is a hosted DNS service that allows you to manage DNS records globally. Question 11. In Terraform, which block defines the provider configuration (e.g., AWS region)? A) resource B) variable C) provider D) output Answer: C Explanation: The provider block configures the connection details for a cloud provider, such as region. Question 12. What is the main advantage of using a Service Mesh like Istio? A) Simplifies VM provisioning B) Provides traffic management, security, and observability for microservices without code changes
C) Replaces container orchestration engines D) Automates database schema migrations Answer: B Explanation: A Service Mesh injects a sidecar proxy to handle traffic routing, mutual TLS, and telemetry for services. Question 13. Which GCP service is a fully managed, horizontally scalable NoSQL database? A) Cloud SQL B) Cloud Spanner C) Cloud Bigtable D) Cloud Datastore (Firestore in Datastore mode) Answer: D Explanation: Cloud Datastore/Firestore provides a managed NoSQL document store with automatic scaling. Question 14. In Kubernetes, what does the kubectl rollout status deployment/myapp command show? A) Current pod logs for myapp B) The status of the ongoing rollout (e.g., progress, success) of the Deployment C) The list of services exposing myapp D) The history of previous rollouts Answer: B Explanation: kubectl rollout status reports the progress of a Deployment’s rollout. Question 15. Which Linux command is used to change file ownership? A) chmod
B) Deploys the chart mychart from the local directory to the cluster, creating a release named mychart C) Updates an existing release named mychart D) Deletes the release mychart Answer: B Explanation: helm install <release-name> <chart-path> installs the chart and creates a release. Question 19. Which AWS IAM policy element is used to specify the actions that are allowed or denied? A) Effect B) Action C) Resource D) Condition Answer: B Explanation: The Action field lists the API operations that the statement applies to. Question 20. In Kubernetes, what is a ConfigMap primarily used for? A) Storing binary container images B) Persisting block storage across pods C) Providing configuration data as key‑value pairs to pods D) Managing secret credentials securely Answer: C Explanation: ConfigMaps store non‑sensitive configuration data that can be consumed as environment variables or files. Question 21. Which command initializes a new Git repository in the current directory?
A) git start B) git init C) git clone. D) git create Answer: B Explanation: git init creates a new empty repository in the current folder. Question 22. Which Azure service provides a serverless event‑driven compute platform similar to AWS Lambda? A) Azure Functions B) Azure Logic Apps C) Azure App Service D) Azure Batch Answer: A Explanation: Azure Functions allow you to run code without provisioning servers, triggered by events. Question 23. In a Linux shell script, what does the line set - e accomplish? A) Enables debugging output B) Exits the script immediately if any command returns a non‑zero status C) Treats unset variables as errors D) Executes commands in the background Answer: B Explanation: set - e causes the script to terminate on the first command failure.
Explanation: dig +short provides concise DNS query results, typically just the IP address. Question 27. What does the kubectl get pods - o wide command display that kubectl get pods does not? A) Pod logs B) Detailed node information and pod IPs C) Resource usage metrics D) Event history for each pod Answer: B Explanation: The -o wide output adds extra columns such as node name, pod IP, and more. Question 28. Which Terraform state backend is recommended for team collaboration and encryption at rest? A) local file B) S3 with DynamoDB locking C) Consul KV store D) GitHub repository Answer: B Explanation: Storing state in an S3 bucket with DynamoDB for state locking enables concurrent safe usage and encryption. Question 29. In Docker Compose, which version of the file format introduced the profiles feature? A) "2" B) "2.4" C) "3.8"
Answer: D Explanation: Profiles were added in Compose file version 3.9 to enable conditional service activation. Question 30. Which AWS service provides managed Kafka clusters? A) Amazon Kinesis Data Streams B) Amazon MQ C) Amazon MSK (Managed Streaming for Kafka) D) Amazon SQS Answer: C Explanation: Amazon MSK offers fully managed Apache Kafka. Question 31. In Linux, which file stores the list of users and their hashed passwords? A) /etc/group B) /etc/passwd C) /etc/shadow D) /etc/login.defs Answer: C Explanation: /etc/shadow holds encrypted password hashes and related account aging info. Question 32. Which Kubernetes object defines a set of network policies that control inbound and outbound traffic to pods? A) Ingress B) NetworkPolicy C) Service
B) Ensure a minimum number of pods remain available during voluntary disruptions (e.g., node drain) C) Define resource limits for a pod D) Schedule pods onto specific nodes Answer: B Explanation: A PodDisruptionBudget specifies the minimum availability during planned evictions. Question 36. Which AWS pricing model charges based on the number of requests and compute time for functions? A) On‑Demand EC2 pricing B) Reserved Instances C) Lambda pay‑per‑invocation model D) Spot Instances Answer: C Explanation: Lambda bills per request and per 100 ms of execution time. Question 37. In Linux, which command displays the current kernel version? A) uname - r B) cat /proc/version C) dmesg | grep Linux D) all of the above Answer: D Explanation: All three commands can reveal the kernel version; uname - r is the most common.
Question 38. Which GCP service provides a globally distributed load balancer that terminates TLS and routes traffic based on URL maps? A) Cloud Load Balancing (HTTP(S) Load Balancer) B) Cloud VPN C) Cloud Armor D) Cloud CDN Answer: A Explanation: The HTTP(S) Load Balancer offers global termination, TLS, and URL‑based routing. Question 39. In a Dockerfile, which instruction sets the default command to run when a container starts? A) RUN B) CMD C) ENTRYPOINT D) EXPOSE Answer: B Explanation: CMD provides the default arguments for the container’s main process. Question 40. Which Kubernetes component stores the desired state of the cluster in a consistent, highly‑available key‑value store? A) kube‑scheduler B) kube‑controller‑manager C) etcd D) kube‑proxy Answer: C Explanation: etcd is the distributed datastore that holds all cluster configuration.
Question 44. What does the kubectl exec - it mypod -- /bin/bash command do? A) Starts a new pod named mypod B) Executes a bash shell inside the running container of mypod interactively C) Retrieves logs from mypod D) Deletes mypod Answer: B Explanation: kubectl exec - it opens an interactive terminal in the specified pod. Question 45. Which AWS service provides a managed, highly available DNS service? A) Route 53 B) CloudFront C) ELB D) VPC DNS Resolver Answer: A Explanation: Amazon Route 53 is the scalable DNS service. Question 46. In Linux, which command is used to view real‑time system resource usage (CPU, memory, etc.)? A) top B) ps aux C) vmstat D) netstat Answer: A Explanation: top provides a continuously updating view of resource consumption.
Question 47. Which Kubernetes API object is used to define a set of containers that should be run on each node? A) DaemonSet B) StatefulSet C) Job D) ReplicaSet Answer: A Explanation: A DaemonSet ensures one pod per node (or per selected node). Question 48. In Docker, what is the purpose of a volume? A) Store environment variables B) Persist data outside the container’s writable layer C) Provide network isolation D) Define container entrypoint Answer: B Explanation: Volumes allow data to survive container restarts and be shared among containers. Question 49. Which Azure feature enables you to deploy resources using declarative JSON or Bicep templates? A) Azure Resource Manager (ARM) templates B) Azure Automation C) Azure Functions D) Azure DevTest Labs Answer: A Explanation: ARM templates (or Bicep) describe infrastructure as code for Azure.
Question 53. Which Kubernetes component is responsible for scheduling pods onto nodes? A) kube‑controller‑manager B) kube‑scheduler C) kube‑apiserver D) kube‑proxy Answer: B Explanation: The scheduler watches for unscheduled pods and assigns them to nodes. Question 54. In Git, what does the git fetch command do? A) Merges remote changes into the current branch B) Retrieves objects and refs from the remote repository without merging C) Deletes the remote tracking branches D) Pushes local commits to the remote Answer: B Explanation: git fetch updates local copies of remote branches but does not modify the working tree. Question 55. Which AWS service automates the creation of a CI/CD pipeline using CodeCommit, CodeBuild, and CodeDeploy? A) AWS CodePipeline B) AWS CodeStar C) AWS CodeGuru D) AWS CodeArtifact Answer: A Explanation: CodePipeline orchestrates the stages of source, build, test, and deploy.
Question 56. In Linux, which command shows the process tree hierarchy? A) ps - ef B) top C) pstree D) htop Answer: C Explanation: pstree displays processes as a tree. Question 57. Which Kubernetes object is used to schedule a one‑time task that runs to completion? A) CronJob B) Job C) Deployment D) DaemonSet Answer: B Explanation: A Job creates one or more pods that run until they finish successfully. Question 58. What is the primary benefit of using a VPC peering connection? A) Enables traffic between two VPCs using private IP addresses without traversing the internet B) Provides a public internet gateway for a VPC C) Automatically replicates data across regions D) Enforces firewall rules across accounts Answer: A Explanation: VPC peering creates a private network link between VPCs.