60 Cloud Security Engineer Interview Questions (2027)

60 cloud security engineer interview questions with hands-on answers: IAM policies, CLI checks, IaC scanning, Kubernetes hardening and detections.

Sep 17, 2025 - 17:53
Nov 10, 2026 - 10:48
 0  133
TOPICInterview Q & APractical guide
60 Cloud Security Engineer Interview Questions (2027)

Cloud security engineer interview questions focus on the hands-on work of the role: writing and reviewing IAM policies, checking logging and encryption with the CLI, scanning infrastructure as code, hardening Kubernetes, building detections and fixing findings. Interviewers want to see that you can do the task, not just define the term. These 60 questions include the commands and snippets you should be able to write.

This page is for working engineers with 3 to 5 years of experience moving into or growing within a cloud security engineer role. Architecture and strategy questions are in advanced cloud security questions, incident drills are in scenario-based cloud security questions, and edge and CDN security is in our Akamai interview questions. All are linked from the DevOps interview hub. Examples use AWS most often, with Azure and Google Cloud equivalents where they differ. Commands were checked against vendor documentation in November 2026.

Key takeaways

  • Expect a live task: read a policy and spot the problem, or write a least-privilege policy for a described need.
  • Know how to check, from the CLI, whether audit logging is on, whether storage is public and whether keys are customer managed.
  • Policy as code (Checkov, tfsec/Trivy, OPA, Azure Policy, AWS Config rules) is now a core skill, not a bonus.
  • Kubernetes questions focus on RBAC, Pod Security Admission, network policies and workload identity.
  • Use Microsoft Entra ID, not Azure AD, and Pod Security Admission, not PodSecurityPolicy (removed in Kubernetes 1.25).

What each section tests

SectionQuestionsHands-on skill
Foundations every engineer must explain1 to 12Core concepts with a practical angle
Engineer tasks (2 to 5 years)13 to 44IAM, logging, encryption, network, IaC, containers, detection
Senior engineer judgement45 to 52Prioritising, automating, working with developers
Hands-on scenarios53 to 60Short tasks you may get in a live round

Foundations every engineer must explain

1. What does a cloud security engineer do day to day?

Builds and maintains guardrails, reviews IAM and infrastructure changes, triages posture findings and threat alerts, automates fixes, and helps developers ship securely. Architects design the model; engineers implement and run it.

2. Explain the shared responsibility model with one concrete example.

The provider secures the physical hosts and hypervisor. You secure what you configure. For an EC2 instance you patch the OS and set security groups; for S3 you set bucket policies and encryption; for a managed database you control network access and users.

3. What is least privilege in practice?

Granting only the actions and resources a role needs, then trimming further using access history. In AWS, IAM Access Analyzer can generate a policy from CloudTrail activity and flag unused permissions.

4. Why prefer roles over long-lived access keys?

Roles hand out temporary credentials that expire automatically. Keys last until someone rotates or deletes them and are the most commonly leaked cloud credential.

5. What is the difference between identity-based and resource-based policies?

Identity-based policies attach to users, groups or roles and say what they can do. Resource-based policies attach to resources like S3 buckets or KMS keys and say who can access them, including principals in other accounts.

6. What is encryption at rest versus in transit?

At rest protects stored data (disks, buckets, databases) with keys, often in KMS. In transit protects data moving over networks with TLS. You need both; neither replaces access control.

7. What is a CSPM tool?

Cloud security posture management continuously checks configuration against benchmarks such as CIS. Native examples: AWS Security Hub, Microsoft Defender for Cloud, Google Security Command Center.

8. What are the main native threat detection services?

Amazon GuardDuty, Microsoft Defender for Cloud plans and Microsoft Sentinel as SIEM, and Google Security Command Center threat detection. They analyse logs and runtime signals for known attacker behaviour.

9. What is the CIS Benchmark?

A consensus set of configuration recommendations published by the Center for Internet Security for each major cloud, OS and Kubernetes. CSPM tools map findings to it.

10. What is MFA's weak point and how do you address it?

Push and SMS MFA can be phished or fatigued. Phishing-resistant methods like FIDO2 security keys and passkeys are stronger, especially for admins.

11. What is zero trust in one sentence for an engineer?

Every request is authenticated and authorised on identity and context, with no trust given for being on an internal network, as described in NIST SP 800-207.

12. Which certifications fit this role?

AWS Certified Security - Specialty, Microsoft Certified: Azure Security Engineer Associate, Google Professional Cloud Security Engineer, and the vendor-neutral CCSP from ISC2. Check each body's site for the current exam version.

Engineer tasks (2 to 5 years)

13. Write a policy that lets an app read objects from one S3 prefix only.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "s3:GetObject",
      "Resource": "arn:aws:s3:::app-data/reports/*"
    },
    {
      "Effect": "Allow",
      "Action": "s3:ListBucket",
      "Resource": "arn:aws:s3:::app-data",
      "Condition": { "StringLike": { "s3:prefix": "reports/*" } }
    }
  ]
}

Note that ListBucket applies to the bucket ARN, while GetObject applies to object ARNs.

14. What is wrong with this statement: "Action": "iam:PassRole", "Resource": "*"?

It lets the holder pass any role, including admin roles, to services like EC2 or Lambda, which is a privilege escalation path. Restrict the resource to specific role ARNs and add an iam:PassedToService condition.

15. How do you test what a role can do before deploying a policy?

Use the IAM policy simulator or aws iam simulate-principal-policy --policy-source-arn ROLE_ARN --action-names s3:GetObject --resource-arns ARN. Access Analyzer's policy validation also flags errors and overly broad grants.

16. How do you find who used an access key?

Query CloudTrail by access key ID: aws cloudtrail lookup-events --lookup-attributes AttributeKey=AccessKeyId,AttributeValue=AKIA... for recent management events, or CloudTrail Lake and Athena for longer history.

17. How do you confirm CloudTrail is actually logging?

aws cloudtrail describe-trails shows trails and whether they are multi-region, and aws cloudtrail get-trail-status --name TRAIL shows IsLogging and the last delivery time. An organisation trail covering all accounts is the usual target.

18. How do you check whether a bucket can be public?

aws s3api get-public-access-block --bucket NAME for the bucket and aws s3control get-public-access-block --account-id ID for the account. S3 Block Public Access is on by default for new buckets, but older buckets and account settings still need checking.

19. How do you find long-lived IAM user keys?

aws iam generate-credential-report then aws iam get-credential-report gives each user's key age and last use. Remove unused keys and move workloads to roles.

20. How do you enforce IMDSv2 on EC2?

Set HttpTokens=required on instances (aws ec2 modify-instance-metadata-options --instance-id ID --http-tokens required), set the account-level default for new instances, and use an SCP or Config rule to block launches without it.

21. What is the Azure equivalent of an AWS role for a workload?

A managed identity, system-assigned or user-assigned, granted Azure RBAC roles on specific scopes. In Google Cloud it is a service account, ideally used through workload identity without exported keys.

22. How do you find Google Cloud service account keys that should not exist?

gcloud iam service-accounts keys list --iam-account SA_EMAIL --managed-by=user lists user-managed keys. The organisation policy constraint that disables service account key creation prevents new ones.

23. How do you check whether an Azure storage account allows public blob access?

az storage account show -n NAME -g RG --query allowBlobPublicAccess. Enforce false through Azure Policy across subscriptions.

24. How do you check that an EBS volume or RDS instance is encrypted with a customer managed key?

aws ec2 describe-volumes --query "Volumes[].[VolumeId,Encrypted,KmsKeyId]" and aws rds describe-db-instances --query "DBInstances[].[DBInstanceIdentifier,StorageEncrypted,KmsKeyId]". Compare the key IDs with your customer managed keys. Enable EBS encryption by default per region.

25. What should a KMS key policy include?

Separate key administrators from key users, grant usage only to the roles that need it, and avoid "Principal": "*" without strong conditions. Enable automatic rotation for symmetric keys.

26. How do you restrict SSH and RDP access?

Remove 0.0.0.0/0 rules on ports 22 and 3389, and use AWS Systems Manager Session Manager, Azure Bastion or Google IAP TCP forwarding, which log sessions and need no open inbound port.

27. How do you find security groups open to the internet?

aws ec2 describe-security-groups \
  --filters Name=ip-permission.cidr,Values=0.0.0.0/0 \
  --query "SecurityGroups[].[GroupId,GroupName]" --output table

Then check which are attached to running resources and whether the port is meant to be public, such as 443 on a load balancer.

28. What are VPC flow logs useful for?

They record accepted and rejected connections by IP, port and protocol. They help in investigations and in tightening security groups, but they do not contain payloads.

29. How do you scan Terraform for misconfigurations?

Run Checkov, Trivy (which absorbed tfsec) or a similar scanner in CI on every pull request, fail on high-severity findings, and allow documented exceptions inline. Scan the plan JSON too, since it shows resolved values.

30. Write a simple Checkov run for a Terraform directory.

checkov -d ./infra --framework terraform --compact --quiet

Add --soft-fail-on LOW or a baseline file while the team works down existing findings.

31. What is a service control policy used for?

SCPs in AWS Organizations set the maximum permissions for accounts in an OU, for example denying the disabling of CloudTrail or use of unapproved regions. They grant nothing by themselves.

32. Write an SCP statement that blocks stopping CloudTrail.

{
  "Effect": "Deny",
  "Action": [
    "cloudtrail:StopLogging",
    "cloudtrail:DeleteTrail",
    "cloudtrail:UpdateTrail"
  ],
  "Resource": "*"
}

33. How do you remove stored cloud keys from CI/CD?

Use OIDC federation: GitHub Actions, GitLab CI and Azure DevOps can exchange a signed job token for short-lived cloud credentials. Restrict the trust policy by repository and branch claims.

34. How do you detect secrets committed to Git?

Enable the platform's secret scanning and push protection where available, and run a scanner such as Gitleaks in CI and pre-commit hooks. If a secret is found, revoke and rotate it first; removing it from history comes second. See our guide on secret scanning tools.

35. How do you harden Kubernetes RBAC?

Avoid binding cluster-admin to people or service accounts, use namespaced Roles, disable token automount for pods that do not call the API, and review with kubectl auth can-i --list --as=system:serviceaccount:NS:SA.

36. What replaced PodSecurityPolicy?

Pod Security Admission, which enforces the Privileged, Baseline and Restricted standards per namespace through labels such as pod-security.kubernetes.io/enforce: restricted. PSP was removed in Kubernetes 1.25.

37. Write a default-deny ingress NetworkPolicy.

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: default-deny-ingress
  namespace: app
spec:
  podSelector: {}
  policyTypes:
    - Ingress

It only works if the cluster's CNI plugin enforces NetworkPolicy.

38. How do pods get cloud permissions without keys?

EKS Pod Identity or IAM Roles for Service Accounts on AWS, Microsoft Entra Workload ID on AKS, and Workload Identity Federation for GKE. Each maps a Kubernetes service account to a cloud identity.

39. How do you scan container images?

Scan in CI with Trivy or Grype and in the registry (ECR, ACR, Artifact Registry scanning). Block critical, fixable vulnerabilities, use minimal base images, and rebuild regularly so patches arrive.

40. How do you sign and verify images?

Sign in the pipeline with Sigstore cosign, then verify at admission with a policy engine such as Kyverno or the Sigstore policy controller so unsigned images are rejected.

41. How do you write a detection for root account use in AWS?

Create an EventBridge rule or SIEM query on CloudTrail events where userIdentity.type is Root and the event is not an AWS service event, and route it to the on-call channel. CIS includes this as a recommended alarm.

42. How do you reduce GuardDuty or Defender alert noise?

Investigate the top recurring findings, add suppression rules only for confirmed expected behaviour with a documented reason, and route by severity. Never suppress a finding type wholesale.

43. How do you centralise logs across accounts?

Send CloudTrail, flow logs and service logs to a dedicated log archive account with S3 Object Lock or equivalent immutability, restricted access, and lifecycle rules for retention.

44. How do you secure secrets for applications?

Use AWS Secrets Manager, Azure Key Vault, Google Secret Manager or HashiCorp Vault, give each workload access to only its secrets, enable rotation, and keep values out of environment files and images. Our Vault questions for freshers cover the Vault side.

Senior engineer judgement

45. You have 3,000 open posture findings. How do you start?

Group by control, then rank by exposure (internet-facing, sensitive data, admin access). Fix the top controls at the source, usually the IaC module or a guardrail, so one change closes hundreds of findings.

46. When do you auto-remediate and when do you alert?

Auto-remediate clear, low-risk cases such as a newly public bucket in a non-public account. Alert where a fix could break production, and give the owner a deadline.

47. How do you get developers to fix findings?

Report findings in their pull requests with the fix shown, keep false positives low, and provide secure modules so the easy path is the safe one.

48. How do you handle a request for an exception?

Record the risk, compensating controls, owner and expiry date. Review exceptions on a schedule so they do not become permanent.

49. How do you show progress to managers?

Track a few measures: critical findings open past their SLA, percentage of workloads on short-lived credentials, coverage of logging and encryption, and mean time to remediate.

50. What do you review in a Terraform pull request?

New IAM grants and trust policies, public exposure (security groups, load balancers, bucket policies), encryption settings, logging, and any wildcard in actions or principals.

51. How do you keep up with provider changes?

Follow the providers' security bulletins and what's-new feeds, and test new default settings in a sandbox account before they reach production.

52. What is your approach to multi-cloud?

Use each provider's native controls for enforcement, a common policy language or CSPM for visibility, and one identity provider for people across all clouds.

Hands-on scenarios

53. You are given a role with AdministratorAccess used by a Lambda that only writes to one DynamoDB table. Fix it.

Replace it with a policy allowing dynamodb:PutItem (and any other used actions) on that table's ARN, plus CloudWatch Logs permissions. Check CloudTrail first for the actions actually used.

54. An engineer asks for s3:* on all buckets "to debug". What do you offer?

Read-only access to the specific bucket for a limited time through a temporary elevation process, with the session logged.

55. A new account has no logging. What do you turn on in the first hour?

Organisation CloudTrail coverage, GuardDuty, Security Hub with the foundational standard, IAM Access Analyzer, AWS Config recording, and account-level S3 Block Public Access.

56. A Checkov run fails the build on a rule the team disagrees with. What do you do?

Discuss the risk, and if the exception is valid add an inline skip with a reason and ticket reference. If the rule is wrong for the organisation, change the baseline centrally.

57. A pod needs to read one Secret. Write the RBAC.

apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  name: read-app-secret
  namespace: app
rules:
  - apiGroups: [""]
    resources: ["secrets"]
    resourceNames: ["app-db"]
    verbs: ["get"]

Bind it to the pod's service account with a RoleBinding.

58. A developer wants to open port 5432 to the internet for a demo. Response?

Offer a private path instead: a bastion via Session Manager, a VPN, or IP-restricted access for the demo window, removed afterwards automatically.

59. Audit asks for proof that production data stores are encrypted. How do you produce it?

Export a report from Config rules or CSPM listing each data store, its encryption status and key ID, and show the guardrail that prevents unencrypted resources from being created.

60. You find an IAM user created last night that nobody recognises. First steps?

Disable its keys and console access, preserve CloudTrail evidence of who created it, and follow the incident process. The detailed response belongs to the scenario guide linked above.

Preparation tips

Build a free-tier lab: one account with an organisation trail, a misconfigured bucket, a Terraform repo scanned by Checkov in CI, and a small EKS or kind cluster with Pod Security Admission. Practise explaining each fix. Related reading: preventing IAM policy misconfigurations. Our DevSecOps course and AWS Solutions Architect course cover these labs in Kharadi, Pune or live online.

FAQ

What do cloud security engineer interviews test?

Hands-on tasks: writing least-privilege policies, checking logging and encryption from the CLI, scanning IaC, hardening Kubernetes and handling findings.

Which cloud should I focus on?

The one used by the jobs you want, usually AWS or Azure. The concepts carry over; the service names and CLI differ.

What replaced PodSecurityPolicy in Kubernetes?

Pod Security Admission, using the Privileged, Baseline and Restricted standards. PSP was removed in Kubernetes 1.25.

How do I remove long-lived keys from CI/CD?

Use OIDC federation between the CI platform and the cloud so jobs receive short-lived credentials, scoped by repository and branch.

Which certification helps for a cloud security engineer role?

AWS Certified Security - Specialty, Azure Security Engineer Associate, Google Professional Cloud Security Engineer or CCSP, depending on the cloud and employer.

Do I need coding skills?

Yes, at least Python or Bash for automation, plus reading Terraform and JSON or YAML policies.

How is this page different from the advanced cloud security questions?

This page tests hands-on engineering tasks. The advanced guide covers architecture, strategy and programme design.

References

Interested in learning more?Get a callback from our training advisors.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Angry Angry 0
Sad Sad 0
Wow Wow 0
Mridul I am a passionate technology enthusiast with a strong focus on DevOps, Cloud Computing, and Cybersecurity. Through my blogs at DevOps Training Institute, I aim to simplify complex concepts and share practical insights for learners and professionals. My goal is to empower readers with knowledge, hands-on tips, and industry best practices to stay ahead in the ever-evolving world of DevOps.