Back to sections

Cloud Platforms Interview Questions & Answers

A sample of real Cloud Platforms interview questions with full answers and explanations - practice for interviews or certification exams.

easy

1. Which statement correctly distinguishes a security group from a network ACL (NACL) in a VPC?

Both are stateless, but security groups support explicit deny rules while NACLs do not
Both are stateful, but NACLs support explicit deny rules while security groups do not
Security groups are stateful and operate at the instance level; NACLs are stateless and operate at the subnet levelCorrect
Security groups are stateless and operate at the subnet level; NACLs are stateful and operate at the instance level

Security groups act as a virtual firewall for individual instances or network interfaces and are stateful, meaning return traffic for an allowed connection is automatically permitted. NACLs are attached at the subnet level and are stateless, so both inbound and outbound rules must be explicitly defined, and only NACLs support explicit deny rules, since security groups can only allow traffic.

medium

2. You want to deploy a stateful app (e.g., Jenkins) with persistent storage on GKE. Which is the BEST practice?

Use emptyDir
Store data in Cloud Storage bucket
Use hostPath volumes
Use PersistentVolumeClaim (PVC) with Regional Persistent DiskCorrect

A stateful app like Jenkins needs its data to survive even if the pod restarts or moves to a different node, and to keep working if a whole zone goes down. A PersistentVolumeClaim backed by a Regional Persistent Disk gives you exactly that durability, whereas hostPath and emptyDir are tied to one node's local disk (gone if the pod moves), and a storage bucket isn't built to act like a real filesystem.

hard

3. Your microservices all run within a single cloud region, spread across three Availability Zones for high availability. After adding detailed cost allocation tags, you notice a surprisingly large line item for inter-AZ data transfer, even though nothing left the region. What is the most likely explanation, and what's a common mitigation?

The cost is from encrypting traffic in transit, which can be disabled to save money
Services in different AZs are charged for data transferred between them; grouping chatty services in the same AZ (or using AZ-aware routing) reduces this costCorrect
This must be a billing error, since traffic within one region is always free regardless of AZ
The cost is caused by the CDN caching responses at multiple edge locations

Cloud providers typically charge a per-GB fee for traffic that crosses Availability Zone boundaries, even though it never leaves the region, which surprises teams who assume 'same region' means free. Common mitigations include colocating latency-sensitive, chatty services in the same AZ or using AZ-aware service discovery and load balancing to prefer same-AZ targets, while still accepting some cross-AZ traffic as the tradeoff for the availability benefit Multi-AZ provides. Traffic within a region is NOT automatically free, and that exact misconception is what causes bills like this.

easy

4. Which S3 storage class is least expensive for data accessed once per quarter?

S3 Intelligent-Tiering
S3 Standard
S3 Glacier Instant RetrievalCorrect
S3 Standard-IA

The less often you access data, the cheaper AWS lets you store it, in exchange for slightly different retrieval behavior. S3 Glacier Instant Retrieval is built exactly for data you touch about once a quarter, it's the cheapest per-GB of these four while still giving you your data back in milliseconds if you need it.

medium

5. How do you grant an EC2 instance secure access to S3 without IAM keys?

Use AWS STS tokens in user data
Enable S3 public access
Store keys in ~/.aws/credentials
Attach an IAM Role to the EC2 instanceCorrect

Storing IAM keys anywhere (a config file, environment variables, user data) creates a secret that can be copied or leaked. Attaching an IAM Role to the EC2 instance instead lets AWS automatically hand out short-lived, auto-rotating credentials through the instance itself, so there's never a long-lived key sitting around to steal in the first place.

hard

6. You must deploy an AKS cluster that complies with FedRAMP High. Which is required?

Use Windows nodes only
Enable Azure Policy for Kubernetes
Deploy nodes in availability sets
Use Azure CNI (not kubenet) + Azure Firewall + Private Cluster + Customer-Managed Keys (CMK) for etcdCorrect

FedRAMP High demands that every layer be locked down: Azure CNI gives fine-grained network rules per pod (something the simpler kubenet networking can't do), a firewall controls what traffic can leave, a private cluster hides the API server from the public internet, and customer-managed keys mean you control the encryption of etcd's stored secrets. Azure Policy alone doesn't provide any of these network or encryption controls.

easy

7. You need to host a static website (HTML/CSS/JS). Which Azure service is most cost-effective and serverless?

Azure App Service
Azure Virtual Machine
Azure Functions
Azure Blob Storage with static website featureCorrect

A static website is just files, no server-side code needed, so you don't need a server at all. Azure Blob Storage can serve those files directly over HTTP, which is why it's the cheapest option here, whereas App Service, a VM, or Functions all spin up compute you'd be paying for and don't need.

medium

8. Your team is migrating several microservices to run behind one load balancer, and you need to route requests to different backend services based on the URL path (e.g., /api/users vs /api/orders). Which type of load balancer supports this?

Any load balancer can do this since it happens automatically, at the TCP level
A DNS-based load balancer only, since path routing must happen at the domain level
A Layer 4 (network) load balancer, which only forwards based on IP and port
A Layer 7 (application) load balancer, which can inspect HTTP headers, paths, and hostnamesCorrect

Layer 7 load balancers operate at the application layer and can read the actual contents of an HTTP request, so they support content-based routing such as path-based or host-based rules to different target groups. Layer 4 load balancers only see IP, port, and TCP-level information, and route purely based on that, with no visibility into the HTTP path itself.

hard

9. Your Terraform state is in S3 (AWS). You’re expanding to Azure. How do you manage state securely across clouds?

Use HashiCorp Vault to encrypt state files
Migrate to Terraform Cloud/Enterprise with remote stateCorrect
Store state in Git
Use separate backends (S3 + Azure Blob)

Terraform state is just a file that tracks what resources it's already created, and it needs one consistent home so it doesn't get out of sync. Terraform Cloud gives you a single backend that works for both AWS and Azure, with locking and version history built in, instead of juggling two separate, differently-secured storage locations.

easy

10. Which AWS service provides scalable object storage with 99.999999999% (11 nines) durability?

Amazon S3Correct
Amazon RDS
Amazon EFS
Amazon EBS

'11 nines' of durability means the odds of ever losing your data are astronomically small, and Amazon S3 gets there by automatically storing multiple copies of every object across different data centers in a region. EBS, EFS, and RDS are built to be fast and available, but they aren't engineered for that same extreme level of data durability.

Want to practice under real conditions?

Try the full timed Cloud Platforms quiz.

    Welcome to OpsQuiz!

    Real scenario-based DevOps questions, hands-on practice, and clear explanations for every answer.