IAM and least privilege • Network segmentation • Encryption and secrets • Detection and posture • Kubernetes security • 2026

Cloud Security Engineer Interview Questions

30 questions What each one tests, an answer frame, a spoken answer 35 min read

Cloud security engineer interviews check whether you can keep a fast-moving cloud estate safe without becoming the team that blocks every release. Expect a few questions on your path and hands-on depth, then a long stretch on identity and access, network design, encryption, secrets, logging and detection, posture findings and container basics. After that come scenarios such as a leaked storage bucket or a disabled audit trail, and stories from your own work. Each question shows what the interviewer is listening for, a shape for your answer and a short answer you could say out loud. Swap in your own examples and the cloud you know best.

Search all questions by round, difficulty and level, or save the ones you want to practise.

Motivation 3 questions

Easy Screening round Fresher, Mid-level, Senior Practice question

1. Walk me through how you ended up in cloud security, and why that over general IT security or running cloud infrastructure.

What the interviewer is really testing:
Whether you chose this niche on purpose and understand that it sits between security thinking and hands-on engineering.
Answer frame:

Starting point: where you came from, such as ops, development or a security team.

Turning point: the moment cloud security clicked for you, ideally a real problem you saw.

Why this role: what you enjoy about building controls rather than only reviewing them.

Sample spoken answer:

"I started as a systems engineer moving a few internal apps into the cloud. During that move I noticed how easy it was to get things badly wrong, like a storage bucket opened up for a quick test and never closed again. I started writing small checks to catch those mistakes, and the security team began asking me to help them. That's when it clicked for me. In the cloud, most security problems are configuration problems, and configuration is code, so you can fix them at scale if you think like an engineer. General security felt too far from the build, and pure infrastructure work didn't let me focus on risk. This role sits exactly in the middle, which is where I'm happiest."

Red flag to avoid:

Saying you chose it because it pays well or sounds modern, with no example of real cloud or security work behind it.

They may ask next:
  • What was the first security control you built yourself?
  • Which part of cloud security do you still find hardest?
Say it in 60 seconds
Easy Screening round Fresher, Mid-level, Senior Practice question

2. Which cloud platforms have you secured hands-on, and which of their security services have you configured yourself rather than just read about?

What the interviewer is really testing:
Whether your depth is real. The interviewer wants specific services and changes you made, and honesty about where your experience stops.
Answer frame:

Main platform: the cloud you know best and roughly how long you've worked in it.

What you configured: two or three services and one concrete thing you set up in each.

Gaps: where you're lighter, and how you'd close that gap.

Sample spoken answer:

"Most of my hands-on work is on AWS, about three years. I've set up the organisation-wide audit trail into a separate log account, turned on the threat detection service across every account and routed its findings to our ticketing system, and written service control policies for things like blocking unused regions. I've also written a lot of IAM policies and trust policies for cross-account roles. On Azure I'm lighter: I've worked with Defender for Cloud recommendations and Azure Policy assignments on one project, but I haven't designed a tenant from scratch. The concepts carry over well, so if your main platform is different, I'd start by mapping identity, logging and guardrails to what I already know, then fill the gaps in a sandbox."

Red flag to avoid:

Listing every service on the provider's website, or claiming equal expert depth on three clouds without a single concrete change to show for it.

They may ask next:
  • What's one thing that surprised you when you moved between two clouds?
  • Which service do you think is most often misconfigured, and why?
Say it in 60 seconds
Medium Screening round Mid-level, Senior Practice question

3. If you joined us, how would you spend your first month getting a picture of our cloud security, and what would you avoid changing early?

What the interviewer is really testing:
Whether you'd learn the estate before breaking things, and whether you know which facts matter most on day one: accounts, identities, exposure and logs.
Answer frame:

Inventory: accounts, owners, what's internet-facing and where sensitive data lives.

Quick risk scan: admin access, public resources, logging gaps.

Relationships: meet the teams before pushing controls on them.

Hold back: no org-wide deny policies until you know what they'd break.

Sample spoken answer:

"In the first couple of weeks I'd build a picture of the estate: how many accounts or subscriptions there are, who owns each one, what's reachable from the internet, and where customer data lives. Then I'd look at the few things that cause most real breaches: who has admin, whether there are long-lived keys, whether anything sensitive is public, and whether audit logs are on everywhere and stored somewhere safe. I'd also sit with a couple of product teams to see how they deploy, because the fixes need to fit their workflow. What I'd avoid is rolling out broad deny guardrails or auto-remediation in my first month. If I don't know the estate, I could break production and lose trust I haven't earned yet. The one exception is something actively exposed, which I'd raise straight away."

Red flag to avoid:

Promising to lock everything down in week one, or planning a month of reading documents with no look at the actual environment.

They may ask next:
  • How would you find cloud accounts that nobody has told you about?
  • What would you show your manager at the end of the month?
Say it in 60 seconds

Posture and Compliance 6 questions

Easy Role knowledge round Fresher, Mid-level Practice question

4. A product team says their database is fully managed, so its security is the provider's problem. Using the shared responsibility model, what do they still own?

What the interviewer is really testing:
Whether you can apply the shared responsibility model to a real service and name the settings that cause breaches, rather than recite the definition.
Answer frame:

Provider side: hardware, data centres, hypervisor, operating system and engine patching.

Customer side: who can reach it, who can log in, encryption choices, backups, the data itself.

Point it home: most managed-database leaks are customer-side settings.

Sample spoken answer:

"I'd agree the provider takes on a lot. They run the data centre, the hardware, the host operating system, and they patch the database engine, though you often pick the maintenance window. But the team still owns everything about how the database is used. They decide whether it's reachable from the internet or only from private subnets, and which security groups can connect. They own the database users and passwords, or the identity-based login if they use it. They choose whether to use a customer-managed encryption key, whether to force encrypted connections, how long backups are kept and who can restore or share a snapshot. And they own the data itself and who in the company can see it. Honestly, when managed databases leak, it's almost always one of those customer settings, not the provider's part."

Red flag to avoid:

Agreeing that managed means the provider handles security, or describing the model only in abstract words without one concrete setting.

They may ask next:
  • How does the split change for a virtual machine you run yourself?
  • Who is responsible if the provider's engine has a known flaw that hasn't been patched yet?
Say it in 60 seconds
Medium Case round Mid-level, Senior Practice question

5. The posture management tool shows about 4,000 open findings across 60 accounts, and the team is overwhelmed. How do you decide what to fix first?

What the interviewer is really testing:
Whether you prioritise by real risk and root cause instead of severity labels, and whether you stop the pile from refilling.
Answer frame:

Risk first: exposure plus sensitive data plus a path to exploit beats raw severity.

Root causes: group findings by the template or module that created them.

Ownership: route by account and tags to the team that can fix it, with due dates.

Stop the inflow: preventive checks so new ones don't appear.

Sample spoken answer:

"I'd stop reading the list by severity label, because a critical finding on an empty sandbox matters less than a medium one on a public service holding customer data. First I'd filter for combinations that lead to real harm: internet-exposed resources with known exploitable flaws, public storage or snapshots, admin roles attached to exposed machines, and missing logging in production. That's usually a small list and we fix it this week. Then I'd group the rest by root cause. Often hundreds of findings come from one shared infrastructure module, so one fix closes them all. Everything gets routed by account and owner tags to the right team with a due date based on risk. Accepted risks get recorded with an owner and an expiry, not just muted. And I'd add checks in the deployment pipeline so the same misconfigurations stop arriving."

Red flag to avoid:

Planning to work through all 4,000 in order of the tool's severity, or muting whole categories to make the number go down.

They may ask next:
  • How would you measure whether the backlog is really getting safer, not just smaller?
  • What would you do about findings that no team claims to own?
Say it in 60 seconds
Medium Role knowledge round Mid-level, Senior Practice question

6. An auditor asks how our cloud setup meets a control like 'access to production is reviewed every quarter'. How do you map it and produce evidence?

What the interviewer is really testing:
Whether you can translate a written control into technical reality and gather evidence that stands up, ideally automatically.
Answer frame:

Map once: one technical control can satisfy several frameworks at the same time.

Show design: access only via identity provider groups, no local users.

Show operation: review records with reviewer, date, and removals actually done.

Automate: collect evidence continuously, not in a panic before the audit.

Sample spoken answer:

"First I'd map the control to what we actually do, because the same access review usually satisfies several frameworks at once, like ISO 27001, SOC 2 or PCI DSS, plus any local data protection rules. Then I'd show two things. Design: production access only comes through identity provider groups mapped to roles, and a config check proves there are no local cloud users or long-lived keys in production accounts. Operation: for each quarter, an export of who was in each group, the review ticket showing who approved it and when, and proof that the people flagged for removal were actually removed. I'd rather collect this automatically every quarter into one evidence folder, so the audit is a matter of handing over what's already there. If a quarter was missed, I'd say so honestly and show the fix."

Red flag to avoid:

Offering screenshots taken the day before the audit, or treating compliance as paperwork disconnected from the actual cloud configuration.

They may ask next:
  • How would you prove nobody got into production outside those groups?
  • What would you do if an audit is next week and one quarter's review never happened?
Say it in 60 seconds
Medium Situational round Mid-level, Senior Practice question

7. Your new control that blocks public storage buckets broke a team's static website. Their lead is angry and wants an exception today. How do you handle it?

What the interviewer is really testing:
Whether you can recover trust after a control causes pain, offer a secure design that still works, and improve how you roll out controls.
Answer frame:

Own it: acknowledge the outage and that the rollout missed this case.

Restore safely: serve the site through a CDN with the bucket kept private.

Short-term exception: only if the fix can't happen today, time-limited and recorded.

Learn: find other affected teams and warn earlier next time.

Sample spoken answer:

"I'd start by owning it. Their site broke because of my change, and our rollout should have caught that case. Then I'd offer a fix that restores the site without making the bucket public again: put a CDN in front of it and give only the CDN access to read from the bucket. It's usually a short change, it's faster for their users, and I'd pair with them on it right away. If that couldn't be done today, I'd grant a time-limited exception on just that bucket, recorded with an expiry, because a dead website for a day is a bad trade for a bucket that only holds public pages. After that, I'd search for other buckets serving websites before they break too, and change our process to warn teams earlier and test new controls against real workloads first."

Red flag to avoid:

Defending the control and telling the team it's their problem, or removing the control for everyone to make the complaint go away.

They may ask next:
  • How would you roll out the next blocking control so this doesn't happen again?
  • When would you refuse the exception even for one day?
Say it in 60 seconds
Easy Behavioral round Fresher, Mid-level, Senior Practice question

8. Tell me about a cloud misconfiguration you found that could have exposed data or access. How did you find it, and how did you get it fixed?

What the interviewer is really testing:
Whether you have real hands-on findings and can move a fix through another team, not just spot problems.
Answer frame:

Situation: what the setting was and why it mattered.

How you found it: a scan, a review, a log or plain curiosity.

Getting it fixed: who owned it and how you worked with them.

Beyond one fix: what you changed so it couldn't happen again.

Sample spoken answer:

"At my last company I was reviewing security group rules and noticed a database in a staging account allowed connections from anywhere on its port. Staging sounded harmless, but when I checked, it had been restored from a production backup a few months earlier, so it held real customer records. I messaged the team lead directly rather than just filing a ticket, showed him the rule and what was in the database, and we closed the rule within the hour. Then I checked the database's connection logs with him and found no connections from outside our own addresses, which was a relief. Afterwards I added a check to our pipeline that fails any change opening a database port to the internet, and we agreed that restoring production data into staging needs masking first."

Red flag to avoid:

A story where you found something but never followed through, or where you fixed another team's system without telling them.

They may ask next:
  • How did the team react when you raised it?
  • What would you have done if the logs showed outside connections?
Say it in 60 seconds
Medium Behavioral round Mid-level, Senior Practice question

9. Tell me about a security guardrail or automated check you rolled out across many accounts or teams. How did you avoid breaking things?

What the interviewer is really testing:
Whether you can make changes at scale safely: measure impact first, stage the rollout, and communicate.
Answer frame:

The control: what you rolled out and why it mattered.

Impact first: how you found out who it would affect before enforcing.

Staged rollout: audit mode, sandbox, then production in waves.

Result: what it prevented and what you'd do differently.

Sample spoken answer:

"In my last role I rolled out a rule that stops anyone creating storage with public access across about 40 accounts. Before enforcing anything, I ran it in audit-only mode for two weeks, which showed us every existing public bucket and every deployment that would have been blocked. That found six buckets that were public on purpose, mostly website assets, so we moved those behind a CDN first. Then I enforced it on sandbox accounts, then dev, then production in two waves, each announced a week ahead with a short guide on what to do if something was blocked. One team still hit a problem with an old deploy script, and because we had an exception process ready it took an hour to sort. Since then, no new public buckets. Next time I'd involve a couple of product engineers in writing the guide."

Red flag to avoid:

A story where the control was switched on everywhere at once, or where breaking a team's deployment is shrugged off as their fault.

They may ask next:
  • How did you decide the rollout order?
  • What did you do about teams that ignored the announcement?
Say it in 60 seconds

Identity and Access 4 questions

Medium Technical round Mid-level, Senior Practice question

10. How would you design cloud access for a new team of developers so they can ship to production without anyone holding standing admin rights?

What the interviewer is really testing:
Whether you can turn least privilege into a working design: central identity, role per job, changes through pipelines, and a controlled way to get more access in an emergency.
Answer frame:

Central identity: single sign-on from the company identity provider, no personal access keys.

Roles by environment: broad in dev, read-only by default in production.

Changes by pipeline: only the deploy pipeline's role can change production.

Break glass: time-limited elevation with approval, alerting and review.

Sample spoken answer:

"I'd start with single sign-on from the company identity provider, so nobody has cloud users or long-lived keys of their own, and leaving the company removes their access everywhere. Developers get groups that map to roles per environment: fairly broad rights in their dev account, read-only in production so they can see logs and metrics and debug. Changes to production go through the deploy pipeline, and that pipeline's role is the only one that can modify production resources, with a trust policy that only the pipeline can use. For emergencies there's an elevated role you request for a few hours with an approval, which pages the security channel and gets reviewed afterwards. On top of that, I'd put guardrails at the organisation level so even an admin can't turn off logging. Then a quarterly review of who's in which group."

Red flag to avoid:

Giving everyone admin in production and relying on trust, or designing so tightly that engineers can't debug an outage without filing tickets.

They may ask next:
  • How would you stop the pipeline's role from becoming the new all-powerful account?
  • What happens to this design when the identity provider itself is down?
Say it in 60 seconds
Medium Technical round Mid-level, Senior Practice question

11. A service's role has a policy that allows every action on every resource. How do you cut it down to least privilege without breaking the service?

What the interviewer is really testing:
Whether you use evidence of real usage to tighten permissions, and whether you plan for the rollback and the rare jobs that only run monthly.
Answer frame:

Gather evidence: last-accessed data and audit logs over a long enough window.

Draft the policy: only the actions and specific resources seen in use.

Test and watch: staging first, then production with alerts on access-denied errors.

Keep a way back: the old policy ready to reattach quickly.

Sample spoken answer:

"I wouldn't guess. First I'd look at what the role actually does. Most clouds show when each service was last used by a role, and the audit log shows the exact API calls, so I'd collect at least a month or two of activity to catch monthly jobs and batch runs. Some providers can even generate a starting policy from that activity. From there I'd write a policy with just those actions, scoped to the specific buckets, queues or tables rather than every resource. I'd deploy it in staging, run the full test suite, then roll it to production with an alert on any access-denied errors from that role for the first couple of weeks. And I'd keep the old policy ready to reattach in minutes, and agree that plan with the owning team before I start."

Red flag to avoid:

Removing permissions based on a guess and waiting to see what breaks, or giving up because the team says it's too risky to touch.

They may ask next:
  • What would you do about a permission that's used once a year during an audit?
  • How would you stop the wildcard from coming back in the next release?
Say it in 60 seconds
Hard Technical round Mid-level, Senior Practice question

12. A third-party tool needs access to our cloud account. How does cross-account role assumption work, and what is the confused deputy problem it has to guard against?

What the interviewer is really testing:
Whether you understand trust policies and temporary credentials, and can explain a subtle multi-tenant risk and its fix.
Answer frame:

Mechanism: a role in our account trusts the vendor's account; they get temporary credentials.

The risk: another customer of the vendor tricks it into using our role.

The fix: a unique external ID per customer, generated by the vendor and checked in the trust policy.

Also: narrow permissions and audit what the role does.

Sample spoken answer:

"We create a role in our account whose trust policy says the vendor's account may assume it. The vendor calls the token service, gets short-lived credentials for our role, and works with whatever permissions we attached, ideally read-only. No keys ever change hands. The confused deputy problem comes from the vendor serving many customers. If an attacker is also a customer, they could type our role's identifier into their own settings, and the vendor, acting with its own trusted identity, would assume our role on the attacker's behalf. The fix is an external ID: the vendor generates a unique value for each customer, we put it as a condition in our trust policy, and the vendor always sends the ID belonging to whoever made the request. Then the attacker's request carries the wrong ID and fails. The vendor must generate it, not let customers pick it."

Code:
{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Principal": { "AWS": "arn:aws:iam::111122223333:root" },
    "Action": "sts:AssumeRole",
    "Condition": { "StringEquals": { "sts:ExternalId": "cust-7f3a91c2" } }
  }]
}
Red flag to avoid:

Suggesting you create an access key for the vendor, or describing the external ID as a password rather than explaining what attack it prevents.

They may ask next:
  • Why is it a problem if the vendor lets each customer choose their own external ID?
  • How would you monitor what the vendor's role is actually doing in your account?
Say it in 60 seconds
Medium Technical round Mid-level, Senior Practice question

13. What is an organisation-level guardrail, like a service control policy, and how is it different from the permissions on a role? What would you enforce with one?

What the interviewer is really testing:
Whether you know that guardrails cap what is possible rather than grant access, and can pick sensible preventive controls.
Answer frame:

Role permissions: grant actions to one identity.

Guardrails: set the maximum for every identity in an account, admins included, and never grant anything.

Good candidates: protect logging and detection, block unused regions, block leaving the organisation.

Rollout: test on a sandbox branch of the organisation first.

Sample spoken answer:

"A role's policy grants actions to that role. A guardrail at the organisation level, like a service control policy, does the opposite job: it never grants anything, it sets the ceiling for every identity in the member accounts it covers, including the account's own admins and root user. So even if someone makes themselves admin in a member account, they still can't do what the guardrail denies. I use them for a short list of things that should never happen: turning off or deleting the audit trail, disabling threat detection, leaving the organisation, and using regions we don't operate in. Sometimes also blocking public access settings from being turned off. I keep them few and simple, add an exception condition for a dedicated security role, and always try them on a sandbox part of the organisation first, because a bad deny breaks everything below it."

Code:
{
  "Version": "2012-10-17",
  "Statement": [{
    "Sid": "ProtectAuditTrail",
    "Effect": "Deny",
    "Action": ["cloudtrail:StopLogging", "cloudtrail:DeleteTrail", "cloudtrail:UpdateTrail"],
    "Resource": "*"
  }]
}
Red flag to avoid:

Thinking a guardrail grants permissions, or planning to manage all day-to-day access through organisation-wide deny rules.

They may ask next:
  • What's the equivalent control on another cloud you've used?
  • How do you handle a team that has a genuine need to use a blocked region?
Say it in 60 seconds

Network Security 3 questions

Medium Technical round Fresher, Mid-level, Senior Practice question

14. An app has a public web tier, an internal API and a database. How would you segment the network so one compromised web server can't reach everything?

What the interviewer is really testing:
Whether you think about blast radius: tier-to-tier rules based on identity of the source, private placement, and controlled paths to cloud services.
Answer frame:

Placement: only the load balancer is public; web, API and database sit in private subnets.

Tier rules: each security group allows traffic only from the tier in front of it, on one port.

Service access: private endpoints for storage and databases, so traffic stays off the internet.

Visibility: flow logs to spot anything unexpected.

Sample spoken answer:

"Only the load balancer would be public, ideally with a web application firewall in front. The web servers, the API and the database all sit in private subnets with no public addresses. Then I'd chain the security groups: the web group accepts traffic only from the load balancer's group, the API group only from the web group on its one port, and the database group only from the API group on the database port. Referencing groups rather than IP ranges means it keeps working as instances scale. So if a web server is compromised, the attacker can reach the API, but not the database directly and not anything else in the network. I'd also give each tier its own role with only the permissions it needs, use private endpoints for storage so that traffic never touches the internet, and turn on flow logs to catch anything odd."

Red flag to avoid:

Putting everything in one public subnet with one security group, or trusting a whole address range because it's internal.

They may ask next:
  • How would you control outbound traffic from the web tier, not just inbound?
  • Where would network ACLs add anything on top of this?
Say it in 60 seconds
Hard Technical round Mid-level, Senior Practice question

15. What is the instance metadata service, and how can an SSRF bug in a web app turn into stolen cloud credentials? How do you prevent it?

What the interviewer is really testing:
Whether you know one of the most common real cloud attack paths end to end and the layered fixes, not just the name.
Answer frame:

Metadata service: a local address every instance can call to get config and role credentials.

The attack: the app is tricked into fetching that address and returns the credentials.

Fixes: token-based metadata access, least-privilege instance roles, input validation and egress rules.

Detection: alert when instance credentials are used from outside your network.

Sample spoken answer:

"Every virtual machine can call a special link-local address, 169.254.169.254, to read its own configuration, and if it has a role attached, to fetch temporary credentials for that role. Server-side request forgery is when an attacker makes your app fetch a URL of their choosing, say an image-preview feature. If they point it at the metadata address, the app fetches the role's credentials and hands them back, and now the attacker can call the cloud API as your server. The fixes are layered. On AWS I'd enforce the token-based version of the metadata service, which needs a PUT request with a special header first, something most SSRF bugs can't send; other clouds require a special header too. I'd keep the instance role minimal, validate and allow-list outbound URLs in the app, and block unneeded egress. And I'd alert when those credentials are used from outside our environment."

Red flag to avoid:

Treating SSRF as a pure application bug with no cloud angle, or thinking a firewall on inbound traffic stops it.

They may ask next:
  • Why do containers on a shared node make this worse, and what would you change?
  • If the credentials were already stolen, how would you cut off access?
Say it in 60 seconds
Medium Situational round Fresher, Mid-level, Senior Practice question

16. A team wants to open SSH to the whole internet on a production server because the bastion host is slow and awkward. How do you respond?

What the interviewer is really testing:
Whether you say no to the risky shortcut while taking the team's frustration seriously and offering something better.
Answer frame:

Say no clearly: port 22 open to 0.0.0.0/0 gets scanned and attacked within minutes.

Fix the pain: find out what's slow about the bastion.

Better option: identity-based session access with no open inbound port.

If urgent: a narrow, time-limited rule from a known range, with an owner.

Sample spoken answer:

"I'd be clear that SSH open to the whole internet isn't something we'll do on production. Anything on port 22 gets scanned and brute-forced within minutes, and one weak key or unpatched daemon is all it takes. But I'd take the complaint seriously, because a bastion people hate is a bastion people work around. I'd ask what's actually slow. Often the better answer is the provider's session manager or identity-aware access, where engineers connect through their normal single sign-on, there's no inbound port open at all, and every session is logged. I'd offer to help set that up with them this week. If they truly need access today, I'd open a narrow rule from the company VPN range only, with an expiry and a named owner, and close it once the new route works."

Red flag to avoid:

Either approving it to avoid friction or refusing flatly without understanding why the bastion isn't working for them.

They may ask next:
  • Why do engineers need shell access to production servers at all?
  • How would you stop someone opening that rule anyway at 2 a.m.?
Say it in 60 seconds

Data Protection 3 questions

Medium Technical round Fresher, Mid-level, Senior Practice question

17. Explain envelope encryption with a cloud key management service. Why not just send all your data to the KMS and let it encrypt it?

What the interviewer is really testing:
Whether you understand how cloud encryption actually works under the hood, including where the master key lives and why decryptions can be audited.
Answer frame:

Two keys: a master key that never leaves the KMS, and a data key per object or file.

Encrypt: the data key encrypts the data locally; its encrypted copy is stored beside the data.

Decrypt: the KMS unwraps the data key after checking permissions, and logs the call.

Why: size limits, speed, cost, and one place to control and audit access.

Sample spoken answer:

"The KMS holds a master key that never leaves it. When I want to encrypt a file, I ask the KMS for a data key. It gives me two copies: one in plain form and one encrypted under the master key. I encrypt the file locally with the plain data key, throw that plain key away, and store the encrypted data key next to the file. To decrypt, I send the encrypted data key back to the KMS. It checks that I'm allowed to use the master key, logs the request and returns the plain data key, and I decrypt locally. You don't send all the data to the KMS because it only encrypts small payloads directly, and pushing gigabytes through an API would be slow and costly. Envelope encryption keeps the bulk work local while access control and the audit trail stay in one place."

Red flag to avoid:

Saying the master key is downloaded to the application, or that encryption at rest alone stops someone with valid read permissions from seeing the data.

They may ask next:
  • What do you gain from a customer-managed key over the provider's default key?
  • What happens to existing data when the master key is rotated?
Say it in 60 seconds
Medium Technical round Fresher, Mid-level, Senior Practice question

18. Where should an application's database password live in the cloud, and how would you rotate it without any downtime?

What the interviewer is really testing:
Whether you know secrets belong in a managed store fetched at runtime, and whether you understand the ordering that keeps rotation from causing an outage.
Answer frame:

Storage: a secrets manager, read at runtime by the app's own cloud identity.

No copies: not in code, images, environment files or build logs.

Rotation: make the new credential valid before the old one stops working.

Better still: short-lived identity-based database logins where supported.

Sample spoken answer:

"It should live in the cloud's secrets manager, and the app should read it at startup or on a short cache using its own role, so there's no password in the code, the container image or a config file. Access to that secret is limited to that one role and every read is logged. For rotation, the key is ordering. You create the new credential and make it valid in the database first, then update the secret, then give the apps time to pick it up, and only then disable the old one. A common pattern is two database users that take turns: while one is active, the other gets its new password. Apps need to retry with a fresh secret if a login fails. Where the managed database supports it, I'd rather skip passwords entirely and use short-lived tokens from the cloud identity."

Red flag to avoid:

Saying environment variables baked into the deployment are good enough, or rotating by changing the password first and updating apps afterwards.

They may ask next:
  • How would you find passwords that are already sitting in code or old build logs?
  • What would you monitor to know a rotation broke something?
Say it in 60 seconds
Medium Situational round Fresher, Mid-level, Senior Practice question

19. A posture scan flags a database snapshot shared publicly. The owner says it's only test data and wants the finding suppressed. What do you do?

What the interviewer is really testing:
Whether you verify claims about data before accepting risk, and whether you know public snapshots are a well-known leak path.
Answer frame:

Verify: look at where the snapshot came from, not just what the owner says.

Ask why: what need does public sharing meet that private sharing can't?

Decide: make it private, or record a formal risk acceptance with an expiry.

Prevent: a guardrail against public snapshot sharing.

Sample spoken answer:

"I'd check before agreeing, because test data is very often a copy of production. I'd look at which database the snapshot came from and, with the owner, look at a sample of the tables for real names, emails or payment details. Then I'd ask why it needs to be public at all. Usually it's shared with a partner or another account, and that can be done by sharing with that specific account instead. If it really is synthetic data and there's a real reason, I'd record a formal risk acceptance signed by the owner, with an expiry date, rather than silently suppressing the finding. If it turns out to contain real customer data, it's an incident, and I'd make it private first and then check who could have copied it. Longer term, a guardrail that blocks public snapshot sharing unless an exception is approved."

Red flag to avoid:

Suppressing the finding on the owner's word alone, or treating every public resource as an incident without checking what it holds.

They may ask next:
  • Once a public snapshot has been copied by someone else, what can you do about it?
  • Who should be allowed to accept a risk like this?
Say it in 60 seconds

Detection and Response 5 questions

Easy Technical round Fresher, Mid-level Practice question

20. You're handed a brand-new cloud account. Which logs do you switch on first, and how do you stop an intruder from deleting them?

What the interviewer is really testing:
Whether you know that the control-plane audit log comes first and that logs kept inside the same account an attacker controls are not reliable evidence.
Answer frame:

First: the API audit trail for every region, then threat detection.

Next: network flow logs, DNS logs, and data-access logs for sensitive storage.

Protection: ship to a separate log account with write-once storage.

Alert: on anyone stopping or changing logging.

Sample spoken answer:

"The first thing is the audit trail of API calls, turned on for every region, ideally at the organisation level so new accounts get it automatically. That tells you who did what to your cloud resources. Next I'd turn on the provider's threat detection service, then network flow logs, DNS query logs, and data-access logging on buckets or databases that hold sensitive data, because the default audit trail usually doesn't record every object read. To protect them, I'd send everything to a separate log archive account that almost nobody can log in to, with write-once retention so even an admin can't delete logs early. Then I'd add a guardrail so no one in the workload account can stop the trail, and an alert that fires if anyone tries."

Red flag to avoid:

Storing logs in the same account with the same admins, or not knowing that object-level reads often need separate logging.

They may ask next:
  • Data-access logs can be expensive. How would you decide where to turn them on?
  • How long would you keep these logs, and who decides that?
Say it in 60 seconds
Hard Technical round Mid-level, Senior Practice question

21. A threat detection finding says temporary credentials from one of your instance roles were used from an IP address outside your cloud. What does that tell you, and what do you do?

What the interviewer is really testing:
Whether you can reason about how the credentials got out, cut off access correctly for temporary credentials, and scope the damage from the audit log.
Answer frame:

Meaning: credentials meant only for that instance are in someone else's hands.

Cut off: revoke active sessions for the role, not just restart the instance.

Scope: audit log for every call made with those credentials.

Root cause: SSRF, a compromised host or a leaked log, then fix and harden.

Sample spoken answer:

"It tells me the credentials that should only ever be used from that instance have left it, so either the instance is compromised or the app leaked them, often through SSRF against the metadata service. First I'd cut access. Temporary credentials can't be deleted, so I'd revoke active sessions for the role, which adds a deny for any session issued before now. The stolen ones stop working at once. The instance's own copy is blocked too until it fetches new ones, so I'd warn the owning team to expect errors. I'd snapshot the instance's disks and isolate it with a restrictive security group for forensics rather than terminating it. Then I'd search the audit log for every call made with that session: what was listed, read or created, especially new users, keys or roles for persistence. Finally, root cause: check the app for SSRF, enforce token-based metadata, and shrink the role's permissions."

Red flag to avoid:

Just rebooting or terminating the instance, which destroys evidence and doesn't invalidate credentials already stolen.

They may ask next:
  • What persistence would you look for in case the attacker created new access?
  • How would you rule out a false alarm, like traffic that leaves through an on-premises proxy?
Say it in 60 seconds
Hard Situational round Mid-level, Senior Practice question

22. You learn a storage bucket holding customer exports has been publicly readable for about three weeks. Walk me through your first day.

What the interviewer is really testing:
Whether you contain quickly while preserving evidence, find out honestly if data was accessed, pull in legal early, and fix the cause rather than the one bucket.
Answer frame:

Contain: block public access now, after recording the current settings.

Investigate: who made it public and when; was data actually read, and from where?

Escalate: incident lead, data owner, legal and privacy on the same day.

Prevent: account-wide public-access blocks and a guardrail, then a review.

Sample spoken answer:

"First I'd record the bucket's current policy and settings for evidence, then block public access straight away. Next, open an incident and bring in the data owner, legal and privacy that same day, because notification rules differ by country and some have tight deadlines. The EU's GDPR, with 72 hours to tell the regulator, is one example. Then I'd investigate two things. Who made it public and when, which the audit trail shows from the policy or access change. And whether anyone actually read the data. That depends on whether access logging or data-event logging was on. If it was, I'd look for reads from outside our own addresses. If it wasn't, I'd say plainly that we can't rule out access, and legal needs to know that. I'd also list what's in the bucket and whose data it is. Finally, turn on account-wide public-access blocking with a guardrail so it can't recur."

Red flag to avoid:

Quietly making the bucket private and closing the ticket, or claiming nobody accessed it without logs that show it.

They may ask next:
  • How would you explain to leadership that you can't prove the data wasn't downloaded?
  • What would you change so a bucket like this is caught within minutes next time?
Say it in 60 seconds
Hard Situational round Mid-level, Senior Practice question

23. At 2 a.m. you get an alert that someone stopped the audit trail in a production account. What do you do in the first 30 minutes?

What the interviewer is really testing:
Whether you treat a logging change as a likely attack, act fast on the right order of steps, and use the evidence that still exists.
Answer frame:

Assume the worst: attackers often turn off logging first.

Restore: turn logging back on at once.

Identify: the stop call itself is logged, so find who and from where.

Contain and scope: revoke that identity's access, trace what else it did, escalate.

Sample spoken answer:

"I'd treat it as an attack until proven otherwise, because turning off logging is a classic first move. Step one, turn the trail back on, which takes a minute. Step two, find who did it. The stop call itself was recorded, so I'd see the identity, source IP and time. Then I'd check whether that fits a known change. If there's a planned change ticket and the IP is ours, it may be a mistake, and I'd still confirm with the person. If not, I'd disable that user's access or revoke that role's sessions right away, then look at everything that identity did around that time, especially new users, keys, roles or opened security groups. I'd also check other logs the attacker can't touch, like the organisation-level trail. And I'd page the incident lead instead of working it alone. Afterwards, a guardrail so no one below the security role can stop logging."

Red flag to avoid:

Re-enabling logging and going back to sleep, or starting a long investigation before cutting off the identity that did it.

They may ask next:
  • If the trail was off for 40 minutes, how would you work out what happened in that gap?
  • What would you do if the identity belonged to a senior engineer who isn't answering the phone?
Say it in 60 seconds
Hard Behavioral round Mid-level, Senior Practice question

24. Tell me about a cloud security incident you helped investigate. What did the logs show, and what changed afterwards?

What the interviewer is really testing:
Whether you've done real cloud investigation work with audit logs, can explain your own part clearly, and drove lasting fixes.
Answer frame:

Trigger: how the incident was spotted.

Your part: what you personally looked at and decided.

What the logs showed: the timeline you rebuilt from the audit trail.

After: the changes that stuck.

Sample spoken answer:

"At my last company our billing alert fired because compute spend in a dev account had jumped overnight. I was on call for security, so I took it. The audit trail showed that an access key belonging to a developer's old test user had been used from an unfamiliar IP to launch large instances in three regions we never use. They were mining crypto. I disabled the key, terminated the instances after snapshotting one for analysis, and searched the logs for anything else the key had done. It had also created a new user, which we deleted. The key had been pasted into a public code snippet months before. Afterwards we removed every long-lived key for human users, moved people to single sign-on, and added a guardrail blocking regions we don't use, which alone would have limited that attack."

Red flag to avoid:

Describing the incident as a team story where your own actions are unclear, or ending with no change to prevent a repeat.

They may ask next:
  • How did you make sure you'd found everything the attacker created?
  • What would you do differently if it happened again tomorrow?
Say it in 60 seconds

Containers and Kubernetes 2 questions

Hard Technical round Mid-level, Senior Practice question

25. What would you harden first in a managed Kubernetes cluster that runs workloads from several teams?

What the interviewer is really testing:
Whether you know the cluster-level basics that stop one team's compromised pod becoming everyone's problem, and how the cluster ties into cloud identity.
Answer frame:

Control plane: private or restricted API endpoint, audit logs on, tight RBAC.

Isolation: a namespace per team, default-deny network policies, restricted pod security.

Cloud identity: per-workload identity, and pods blocked from node credentials.

Supply chain: only approved registries, secrets encrypted with a KMS key.

Sample spoken answer:

"I'd start with who can reach the cluster: restrict the API endpoint to private networks or known ranges, turn on audit logging, and keep cluster-admin for a tiny group, with teams getting roles only in their own namespace. Each team gets a namespace with a default-deny network policy, then explicit allows, which needs a network plugin that actually enforces policies. I'd label namespaces to enforce the restricted pod security level, so no privileged pods, no host paths, and containers run as non-root. For cloud access, each workload should get its own identity mapped to a cloud role, and pods should be blocked from reaching the node's metadata credentials, otherwise every pod inherits the node's permissions. Finally, admission rules to only allow images from our registry, and Kubernetes secrets encrypted with a KMS key."

Code:
apiVersion: v1
kind: Namespace
metadata:
  name: team-a
  labels:
    pod-security.kubernetes.io/enforce: restricted
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: default-deny
  namespace: team-a
spec:
  podSelector: {}
  policyTypes:
    - Ingress
    - Egress
Red flag to avoid:

Thinking namespaces isolate network traffic on their own, or leaving every pod able to use the node's cloud role.

They may ask next:
  • Why is namespace separation alone not a security boundary?
  • After you apply that default-deny policy, every pod in the namespace loses DNS. Why, and what do you add?
Say it in 60 seconds
Medium Situational round Mid-level, Senior Practice question

26. A team wants their monitoring agent to run as a privileged container on the shared Kubernetes cluster because 'the vendor says it needs it'. What do you do?

What the interviewer is really testing:
Whether you understand what privileged really grants and can find a narrower way to meet a real need instead of a flat yes or no.
Answer frame:

Explain the risk: privileged is close to root on the node, and a path out of the container.

Find the real need: which files, capabilities or host views does it actually use?

Narrow it: specific capabilities, read-only host mounts, its own namespace.

Record it: a reviewed, labelled exception, while everyone else stays restricted.

Sample spoken answer:

"I wouldn't just say yes or no. A privileged container can see and change almost everything on the node, so if that agent is compromised or has a bad update, every workload on that node is exposed, including other teams'. So first I'd ask what the agent actually needs. Monitoring agents usually need to read host metrics, some log paths, maybe one or two Linux capabilities. Many vendors document a reduced setup, and I'd ask the vendor directly if not. Then I'd run it in its own namespace with exactly those capabilities, read-only host mounts, and a pinned image from our registry. That namespace gets a documented exception from the restricted pod policy, and every other namespace stays restricted. If it truly needs full privilege, I'd want the vendor's security review and a plan to replace it if one appears."

Red flag to avoid:

Approving privileged mode because a vendor said so, or refusing outright without looking at what the agent needs.

They may ask next:
  • What's the difference between a privileged container and one that just adds a single capability?
  • How would you notice if another team quietly deployed a privileged pod?
Say it in 60 seconds

Teamwork 4 questions

Easy Behavioral round Mid-level, Senior Practice question

27. Tell me about a time you had to explain a cloud security risk to a non-technical leader to get time or money to fix it.

What the interviewer is really testing:
Whether you can turn technical risk into business terms and ask for a clear decision without fear-mongering.
Answer frame:

The risk: what it was in one plain sentence.

Translation: the business impact and how likely it was.

The ask: what you needed and a small first step.

Outcome: the decision and what happened next.

Sample spoken answer:

"At my last company most of our services shared one cloud account, and every engineer had broad admin in it. I needed two engineers for most of a quarter to split it into separate accounts. The head of product didn't care about accounts, so I explained it as: right now one stolen laptop could take down every product we sell and expose all customer data at once. Then I showed a simple picture of how separate accounts would contain that to one product. I also offered a smaller first step, moving just the payments service first, so she could see the cost and the disruption were manageable. She agreed to that first step, it went smoothly, and the rest of the split got scheduled over the next two quarters."

Red flag to avoid:

Blaming leadership for not understanding, or using scare tactics and jargon instead of a clear business case.

They may ask next:
  • What would you have done if she'd said no?
  • How did you avoid exaggerating the risk?
Say it in 60 seconds
Medium Behavioral round Mid-level, Senior Practice question

28. Tell me about a cloud security finding you decided not to fix right away. How did you make that call, and how did you record it?

What the interviewer is really testing:
Whether you weigh risk honestly against cost and delivery, and whether accepted risks get an owner and an expiry rather than being forgotten.
Answer frame:

The finding: what it was and why fixing it was hard.

The weighing: likelihood, impact and any controls already reducing it.

The record: owner, reason, compensating controls and a review date.

Follow-up: what happened when the date came.

Sample spoken answer:

"We had a finding that an older internal service used a shared database password instead of per-service identities. Fixing it properly meant a code change in a service that was due to be replaced in about four months, and the team was in the middle of a major release. The database was only reachable from that one service's private subnet, and the password was already in the secrets manager with access logged. So I judged the risk as low for a few months. I wrote it up as an accepted risk with the service owner and my manager signing it, listed the controls that reduced it, and set a review date for the end of the quarter. When the date came, the replacement had slipped, so we did a simpler fix, rotating the password and narrowing its database rights, rather than just extending the exception."

Red flag to avoid:

Saying you never accept any risk, or a story where the finding was simply left open with no owner or date.

They may ask next:
  • Who should be allowed to sign off a risk like that?
  • Is there a finding you'd never accept, whatever the delivery pressure?
Say it in 60 seconds
Easy Culture fit round Fresher, Mid-level, Senior Practice question

29. How do you want product engineers to see the cloud security team, and what do you personally do to earn that?

What the interviewer is really testing:
Whether you see security as a service that makes the safe path easy, rather than a gate that only says no.
Answer frame:

The goal: a team engineers ask early, not one they hide from.

Paved roads: secure templates and modules that are easier than doing it alone.

How you say no: always with a reason and another way forward.

Small habits: fast answers, credit to teams, no shaming.

Sample spoken answer:

"I want engineers to see us as the people who make the secure way the easy way, so they come to us early instead of hoping we don't notice. Personally, I try to earn that in a few ways. I build and maintain secure templates, like a storage module that's private and encrypted by default, so doing the right thing takes less effort than doing it by hand. When I have to block something, I explain the actual risk and offer another way to get what they need, and I try to answer requests quickly because a slow security team gets bypassed. When a team fixes something well, I say so publicly. And I never name and shame people for mistakes in open channels. That builds the trust you need when something is really urgent."

Red flag to avoid:

Describing security as the police whose job is to catch developers, or saying you'd never block anything to stay popular.

They may ask next:
  • How do you handle an engineer who keeps bypassing your controls?
  • What would you measure to know whether the relationship is working?
Say it in 60 seconds
Easy Culture fit round Fresher, Mid-level, Senior Practice question

30. A change you approved in a security review later turns out to have caused an incident. How do you handle your part in it?

What the interviewer is really testing:
Whether you own mistakes openly, focus on fixing the process, and support a blameless review.
Answer frame:

Say it early: tell the incident lead you approved it, without waiting to be found.

Help fix: put your effort into containing the incident first.

Learn: why the review missed it, and what check would catch it next time.

No blame: for yourself or the author.

Sample spoken answer:

"I'd say it early and plainly: I reviewed and approved that change. Hiding it only slows everyone down and hurts trust later. During the incident I'd put my energy into helping contain it, since I probably know that change well. Afterwards, in the review, I'd look at why I missed it. Maybe the review checklist didn't cover that kind of setting, maybe the diff was too big to review properly, or maybe I didn't know how that service behaved. Then I'd push for a fix that doesn't rely on me being more careful next time, like an automated policy check in the pipeline for that exact setting. I wouldn't blame the author either. We both missed it, and the process should catch what people miss."

Red flag to avoid:

Pointing at the engineer who wrote the change, or promising to 'be more careful' with no change to the process.

They may ask next:
  • What would you do if a colleague tried to hide their part in an incident?
  • How do you keep reviews useful when there are too many changes to read closely?
Say it in 60 seconds
Were you asked something else? Share it A person checks every question before it goes on the site. No name is shown.
For the call itself

The questions above are the prep. The call has ten more.

ClapAssist is an AI interview assistant for Mac and Windows. It listens to the interview on your computer and shows you what to say, in short lines you can read while you talk. Your resume and notes are never stored on our servers. It stays out of screen share on every plan; only you can see it.

Download ClapAssist with 10 free minutes
Mac and Windows · Stays out of screen share · No card