Back to sections

Cloud Platforms Quiz

Test what you actually know about Cloud Platforms. Free sample questions below, from easy to hard, with instant explanations.

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 Group
AWS STS
IAM User
IAM RoleCorrect

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

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
A DNS-based load balancer only, since path routing must happen at the domain level
Any load balancer can do this since it happens automatically, at the TCP level

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

3. A security audit flags an IAM policy attached to a CI/CD deployment role: it grants the action "s3:*" on resource "*". The pipeline only needs to upload build artifacts to one specific bucket. How should this policy be redesigned to follow least privilege?

Leave the action as s3:* but restrict it to only run during business hours
Change s3:* to s3:Read* since read-only access is inherently safe to leave broad
Scope the action to only the specific S3 API calls needed (e.g., s3:PutObject, s3:GetObject) and scope the resource to the exact bucket/prefix ARN the pipeline usesCorrect
Remove the Resource field entirely so the cloud provider infers the correct scope automatically

Least privilege means granting only the specific actions and resources a role actually needs, so the fix is narrowing the action list to the exact API calls used, like s3:PutObject for uploads, and scoping the resource to the specific bucket ARN and prefix, instead of a wildcard. Time-based restrictions don't address the excessive scope, omitting the resource field isn't valid policy syntax and wouldn't auto-scope anything, and even a 'read-only' wildcard still exposes every bucket in the account, which remains overly broad.

easy

4. Which practice helps avoid vendor lock-in?

Abstracting cloud-specific APIs with open standards (e.g., Kubernetes, Terraform, OpenTelemetry)Correct
Storing all data in proprietary formats
Using only managed services
Hardcoding cloud endpoints in application code

Vendor lock-in happens when your infrastructure only speaks one cloud's language. Using open, portable tools like Kubernetes, Terraform, and OpenTelemetry means the same setup can run on any cloud with minimal changes, so you're never stuck because rewriting everything to leave would be too painful.

medium

5. Your Cloud Run service takes 8 seconds to respond to first request after idle. How do you reduce cold starts?

Enable VPC connector
Increase memory allocation
Set minimum instances to 1Correct
Use Cloud Functions instead

A 'cold start' happens because Cloud Run shuts down idle containers to save cost, so the next request has to wait for a brand-new container to boot up before it can respond. Setting minimum instances to 1 keeps a container running and ready at all times, so there's simply no startup to wait for anymore.

hard

6. How do you ensure CloudTrail logs are tamper-evident and retained for 7 years for compliance?

Stream logs to CloudWatch Logs
Enable CloudTrail + S3 Standard storage
Enable CloudTrail + S3 Object Lock in Governance Mode + replication to separate accountCorrect
Use AWS Backup for CloudTrail

For logs to be trustworthy as compliance evidence, it must be provably impossible to quietly edit or delete them. S3 Object Lock enforces that no one, not even an admin, can modify or delete the logs before the retention period ends, and copying them to a completely separate account means even a compromised primary account can't destroy the evidence.

easy

7. What is the main benefit of putting a CDN (Content Delivery Network) in front of a web application?

It automatically encrypts all data stored in the origin's database
It caches content at edge locations closer to users, reducing latency and offloading traffic from the originCorrect
It permanently migrates the application's compute to the CDN provider's servers
It replaces the need for a load balancer in front of application servers

A CDN caches static, and sometimes dynamic, content across a network of globally distributed edge servers, so requests get served from a location physically closer to the user, cutting latency while reducing load and bandwidth cost on the origin server. It doesn't replace load balancing or encrypt data at rest, and the application's actual compute still runs wherever it was originally deployed.

medium

8. Which combination ensures encryption of data at rest AND in transit for an RDS PostgreSQL database?

Use IAM authentication only
Put RDS in private subnet
Enable Encryption at rest + use SSL/TLS in app connection stringCorrect
Enable AWS KMS key rotation

Data has two different places it needs protecting: sitting on disk, and traveling over the network. RDS's encryption-at-rest (backed by KMS) covers the first, and forcing your app to connect over SSL/TLS covers the second, together closing both gaps, which none of the other single options do alone.

hard

9. Your Blob Storage egress costs are too high. Users download large files globally. What’s the MOST cost-effective optimization?

Use Azure CDN (Standard Microsoft tier) with Blob originCorrect
Compress files with gzip
Use Archive tier
Increase redundancy to GRS

Every time someone far away downloads a file straight from Blob Storage, you pay for that data leaving Azure's network, and popular files get downloaded over and over. A CDN caches copies of those files at locations physically close to users worldwide, so repeat downloads come from a nearby cache instead of your storage account, cutting the bandwidth cost dramatically.

easy

10. What is the purpose of a Resource Group?

To group billing statements
To isolate network traffic
To assign IAM roles to VMs
To logically organize and manage related Azure resources (e.g., deploy/delete together)Correct

A Resource Group is just a folder for your Azure resources, so a VM, its storage, and its network can all be deployed, managed, and deleted together as one unit. It has nothing to do with billing or network isolation, it's purely an organizational container.

Ready for the real thing?

Take the full timed Cloud Platforms quiz and see your score.

    Welcome to OpsQuiz!

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