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 IAM entity is used to grant temporary access to AWS resources for users outside your AWS account (e.g., mobile app users)?

IAM RoleCorrect
IAM Group
IAM User
AWS STS

An IAM Role is like a temporary badge: it defines a set of permissions that someone can borrow for a while, rather than being tied permanently to one identity. That's exactly what an outside user (like someone in a mobile app) needs, so AWS STS issues the short-lived credentials, but it's the Role itself that's being granted and assumed.

medium

2. You need to run a script on 100 Linux VMs to install updates. Which is the MOST scalable method?

SSH into each manually
Use Azure Custom Script ExtensionCorrect
Use Azure Automation Runbook with Hybrid Worker
Rebuild VMs from updated image

Manually SSHing into 100 machines one at a time doesn't scale, and rebuilding every VM is overkill for a small update. The Custom Script Extension lets Azure push and run the same script across many VMs at once through its own control plane, so one action handles the whole fleet instead of a hundred separate logins.

hard

3. Your BigQuery query costs suddenly spiked 10x. You suspect a Cartesian product. How do you confirm and prevent this?

Increase slot reservation
Check Job Statistics → totalBytesProcessed; rewrite JOINs with explicit ON clauses and WHERE filtersCorrect
Switch to flat-rate pricing
Use LIMIT in all queries

A Cartesian product happens when a JOIN is missing a proper condition, so every row in one table gets matched with every row in the other, producing a huge, mostly-useless result set that costs a fortune to process. Checking totalBytesProcessed shows you when a query scanned way more data than it should have, and fixing the JOIN's ON clause stops the row explosion at the source.

easy

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

Amazon S3Correct
Amazon EFS
Amazon EBS
Amazon RDS

'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.

medium

5. You deploy an App Service, but users get “HTTP Error 500.30 - ANCM In-Process Start Failure”. What do you check FIRST?

NSG rules
Application Insights logs
Azure Monitor metrics
App Service Diagnostic Logs → Application Logging (Filesystem)Correct

This specific error means the .NET app crashed while trying to start up inside the web server process, but the error message itself doesn't say why. The real reason (an unhandled exception, a missing config, etc.) shows up in the app's own stdout/stderr output, which App Service captures in its filesystem-based Application Logging, so that's the first place to look before anything else.

hard

6. You need cross-region active-active DR for a stateful app (e.g., PostgreSQL). Which pattern is most resilient and consistent?

Multi-primary with conflict resolution (e.g., YugabyteDB, CockroachDB)Correct
Async replication (e.g., RDS Read Replica)
Backup/restore every 5 mins
DNS failover to cold standby

Active-active means both regions can accept writes at the same time, which creates a real problem: what happens when the same row gets edited in two places at once? Multi-primary databases like YugabyteDB and CockroachDB are specifically built to detect and resolve those conflicts, something a simple read replica or periodic backup was never designed to handle.

easy

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

Azure Functions
Azure App Service
Azure Virtual Machine
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 web app on EC2 behind ALB occasionally serves 5xx errors during traffic spikes. CPU is low, but connections time out. What’s the MOST likely cause?

S3 bucket policy denying access
Insufficient ALB capacity
IAM role missing s3:GetObject
Exhausted source ports on EC2 instances (ephemeral port exhaustion)Correct

A server only has a limited number of outbound connection 'slots' (ports) available at once. If traffic spikes and connections open faster than they close, the server can run out of those slots entirely, so new requests just time out, even though the CPU itself has nothing to do and looks perfectly healthy.

hard

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

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

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 principle ensures workloads remain available during a zone or region failure?

Elasticity
Scalability
High Availability (HA)Correct
Fault Tolerance

High Availability means having enough redundant copies of your app spread across different data centers (zones or regions) that if one goes down, traffic just flows to the ones that are still up. Elasticity and scalability are about handling more LOAD, not about surviving a failure, which is a different problem.

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.