Workload Identity and Service Account Lab
Applications need identities too. A secure cloud workload should authenticate using its own controlled identityβnot a developerβs username, password, or hard-coded cloud access key.
Welcome to Lab 11 of the CompTIA Cloud+ practical lab sequence.
In the previous labs, you secured human access using:
- IAM users
- groups
- roles
- least privilege
- MFA
- privileged access controls
- administrative access reviews
Now you will secure machine-to-machine access.
You will move from:
Application βStored Username / Password βCloud Resourceto:
Application βWorkload Identity βTemporary Credential βScoped Permission βCloud Resourceπ― Mission Information
Section titled βπ― Mission Informationβ| Item | Details |
|---|---|
| Lab | 11 β Workload Identity and Service Account Lab |
| Difficulty | Beginner β Intermediate |
| Estimated Time | 90β120 Minutes |
| Certification Alignment | CompTIA Cloud+ |
| Primary Focus | Workload IAM |
| Previous Lab | 10 β Cloud MFA and Privileged Access Lab |
| Career Alignment | Cloud Administrator, Cloud Engineer, DevOps Engineer, Cloud Security Engineer |
| Major Skills | Service Accounts, Workload Identity, Service Roles, Temporary Credentials, Least Privilege |
| Deliverable | Secure Workload Identity Architecture + Access Validation Report |
π’ Scenario
Section titled βπ’ ScenarioβYour organization has deployed an application to a cloud virtual machine.
The application needs to retrieve files from cloud object storage.
A developer initially proposes:
Application βDeveloper Access Key βObject StorageThe credentials would be stored in:
application.confThe security team rejects this design.
Why?
Because the credentials could be:
-
exposed in source code
-
copied into repositories
-
leaked through configuration files
-
exposed in backups
-
shared between workloads
-
forgotten during employee offboarding
-
difficult to rotate
-
granted excessive permissions
Your manager asks you to redesign the application using:
a dedicated workload identity.
π― Lab Objectives
Section titled βπ― Lab ObjectivesβBy completing this lab, you should be able to:
-
explain workload identity
-
explain service accounts
-
distinguish human and machine identities
-
understand service roles
-
understand temporary credentials
-
explain why hard-coded credentials are dangerous
-
create a dedicated workload identity
-
assign workload permissions
-
apply least privilege
-
attach an identity to a workload
-
test workload authentication
-
validate authorized access
-
validate denied access
-
review workload IAM
-
identify credential exposure
-
review workload authentication logs
-
troubleshoot workload authorization
-
document workload identity architecture
-
explain workload IAM during interviews
01 β Understand Human and Workload Identities
Section titled β01 β Understand Human and Workload IdentitiesβCloud IAM must support different types of entities.
Human identity:
Cloud Engineer βAuthentication βCloud Console / CLIWorkload identity:
Application βMachine Authentication βCloud APIBoth require identity.
But they should not normally use the same credentials.
02 β Understand Workload Identity
Section titled β02 β Understand Workload IdentityβA workload identity represents:
an application, service, virtual machine, container, function, or other non-human workload.
Examples include:
Virtual Machine
Application
Container
Serverless Function
Automation Process
CI/CD Workload03 β Understand Service Accounts
Section titled β03 β Understand Service AccountsβA service account is a non-human identity designed for applications or services.
Conceptually:
Application βService Account βPermissions βCloud ResourceDifferent cloud providers use different terminology and implementation models.
For Cloud+, focus on the architecture:
Applications should have dedicated identities with only the permissions they require.
04 β Understand Service Roles
Section titled β04 β Understand Service RolesβAnother common model is:
Cloud Workload βAssigned Role βTemporary Credentials βCloud APIThe workload assumes or receives the role rather than storing permanent credentials.
05 β Understand the Credential Problem
Section titled β05 β Understand the Credential ProblemβConsider:
app.pycontaining:
ACCESS_KEY = "..."SECRET_KEY = "..."This creates significant security risk.
The secret may accidentally appear in:
-
Git repositories
-
backups
-
screenshots
-
deployment packages
-
logs
-
configuration-management systems
π¨ Security Rule
Section titled βπ¨ Security RuleβNever put real cloud credentials in:
Source Code
Documentation
Screenshots
Public Repositories
Lab Reports06 β Understand Credential Lifecycle
Section titled β06 β Understand Credential LifecycleβLong-lived credential:
Credential Created βApplication Uses Credential βCredential Remains Valid βPotential Exposure WindowA better architecture may use temporary credentials:
Workload Identity βAuthentication βTemporary Credential βShort Lifetime βExpiration07 β Understand Temporary Credentials
Section titled β07 β Understand Temporary CredentialsβTemporary credentials exist for a limited period.
Security benefit:
If exposed, their useful lifetime may be significantly shorter than a permanently valid credential.
Temporary credentials do not eliminate security risk.
They reduce one part of the exposure.
08 β Build the Lab Architecture
Section titled β08 β Build the Lab ArchitectureβYou will conceptually build:
Cloud Environment | | Application VM | v Workload Identity | v Scoped Role | v Object StorageThe application should be able to:
List Approved Storage
Read Approved Objectbut should not automatically be able to:
Delete Storage
Modify IAM
Manage Networks
Delete VMs09 β Review Existing Lab Resources
Section titled β09 β Review Existing Lab ResourcesβFrom previous labs, identify:
Virtual Machine:
Object Storage:
Network:
Current Administrative Identity:
Region:Use existing disposable lab resources where practical.
10 β Create a Test Object
Section titled β10 β Create a Test ObjectβCreate a harmless file:
workload-test.txtAdd:
CompTIA Cloud+ Workload Identity LabAuthorized workload access test.Upload it to your approved lab object storage.
11 β Define the Application Requirement
Section titled β11 β Define the Application RequirementβBefore creating permissions, document:
Application:
Required Resource:
Required Action:
Business Purpose:Example:
Application:CloudPlus Test Application
Required Resource:cloudplus-lab-storage
Required Action:Read Test Objects
Business Purpose:Retrieve application configuration filesπ§ IAM Principle
Section titled βπ§ IAM PrincipleβDo not begin with:
What role should I give the application?
Begin with:
What does the application actually need to do?
12 β Create a Workload Permission Matrix
Section titled β12 β Create a Workload Permission Matrixβ| Action | Required? |
|---|---|
| List Approved Storage | β |
| Read Approved Objects | β |
| Write Objects | β |
| Delete Objects | β |
| Delete Storage | β |
| Manage IAM | β |
| Manage Network | β |
| Manage Compute | β |
13 β Create the Workload Identity
Section titled β13 β Create the Workload IdentityβUsing your cloud providerβs supported mechanism, create or configure a workload identity.
Example conceptual name:
cloudplus-app-identityDepending on the platform, this may be implemented as a:
-
service account
-
managed identity
-
instance role
-
workload identity
-
service principal
-
workload-specific IAM role
14 β Document the Identity
Section titled β14 β Document the IdentityβRecord:
Identity Name:
Identity Type:
Purpose:
Owner:
Workload:
Creation Date:15 β Create a Scoped Permission
Section titled β15 β Create a Scoped PermissionβGrant only the permissions required for the test.
Conceptually:
cloudplus-app-identity βList + Read βApproved Object StorageAvoid:
cloudplus-app-identity βStorage Administrator βAll Storage16 β Scope the Resource
Section titled β16 β Scope the ResourceβWhere supported, restrict access to:
Approved Lab Storagerather than:
All Storage Resources17 β Review the Permission Before Assignment
Section titled β17 β Review the Permission Before AssignmentβAsk:
Does the application need Write?
Does it need Delete?
Does it need IAM access?
Does it need access to every storage resource?If the answer is no:
do not grant it.
18 β Attach the Identity to the Workload
Section titled β18 β Attach the Identity to the WorkloadβAssociate the workload identity with your approved lab VM or application environment.
Conceptually:
Application VM βcloudplus-app-identity19 β Understand Credential Delivery
Section titled β19 β Understand Credential DeliveryβWith a workload-aware identity system, the application may obtain credentials dynamically.
Conceptually:
Application βCloud Identity Mechanism βTemporary Credential βCloud APIThe application no longer needs:
Hard-Coded Access Key20 β Verify No Static Credential Is Required
Section titled β20 β Verify No Static Credential Is RequiredβReview the application configuration.
Your target architecture should not require:
ACCESS_KEY=SECRET_KEY=for the workload identity authentication flow.
21 β Connect to the Workload
Section titled β21 β Connect to the WorkloadβAccess your lab VM using your approved administrative method.
Do not expose administrative credentials.
22 β Verify the Workload Identity
Section titled β22 β Verify the Workload IdentityβUse your providerβs supported CLI or identity mechanism to determine which identity the workload is using.
Record:
Workload:
Identity:
Role:
Credential Type:
Expected:Workload Identity23 β Test Authorized Storage Access
Section titled β23 β Test Authorized Storage AccessβFrom the workload, attempt to list the approved storage location.
Expected:
Workload βApproved Storage βLIST βALLOWED24 β Read the Test Object
Section titled β24 β Read the Test ObjectβRetrieve:
workload-test.txtExpected:
successful.
Validate its contents.
25 β Record the Successful Access
Section titled β25 β Record the Successful AccessβIdentity:
Resource:
Operation:Read
Expected:Allow
Actual:
Result:26 β Test Unauthorized Write Access
Section titled β26 β Test Unauthorized Write AccessβAttempt to upload a harmless test object if the workload was intentionally configured as read-only.
Expected:
Workload βWrite βDENIED27 β Test Unauthorized Delete Access
Section titled β27 β Test Unauthorized Delete AccessβAttempt to delete an approved disposable object.
Expected:
denied.
Do not use important data for testing.
28 β Test Access to Another Storage Resource
Section titled β28 β Test Access to Another Storage ResourceβWhere safely possible, test whether the workload can access another storage location outside its assigned scope.
Expected:
Different Storage βDENIEDπ§ What You Have Validated
Section titled βπ§ What You Have ValidatedβYou have demonstrated:
Correct Identity +Required Action +Approved Resource βALLOWwhile:
Correct Identity +Unauthorized Action βDENY29 β Build the Access Validation Matrix
Section titled β29 β Build the Access Validation Matrixβ| Test | Expected | Result |
|---|---|---|
| List Approved Storage | Allow | |
| Read Approved Object | Allow | |
| Write Object | Deny | |
| Delete Object | Deny | |
| Access Other Storage | Deny | |
| Manage IAM | Deny |
30 β Understand Machine-to-Machine Authentication
Section titled β30 β Understand Machine-to-Machine AuthenticationβCloud applications frequently communicate without human interaction.
Example:
Web Application βObject Storageor:
Application βDatabaseor:
Automation βCloud APIEach interaction requires an authentication architecture.
31 β Avoid Shared Workload Identities
Section titled β31 β Avoid Shared Workload IdentitiesβPoor architecture:
App AApp BApp C βSharedServiceAccountThis makes it difficult to determine:
which workload performed an action.
32 β Prefer Dedicated Workload Identities
Section titled β32 β Prefer Dedicated Workload IdentitiesβBetter:
App A β Identity A
App B β Identity B
App C β Identity CBenefits include:
-
clearer accountability
-
better least privilege
-
easier access review
-
easier revocation
-
better investigation
33 β Understand Workload Blast Radius
Section titled β33 β Understand Workload Blast RadiusβSuppose:
Application A βFull Cloud AdministratorIf Application A is compromised:
Application Compromise βAdministrative Cloud AccessThe application vulnerability becomes a cloud-account security incident.
π§ Workload Security Principle
Section titled βπ§ Workload Security PrincipleβPermissions determine:
how far an attacker may be able to move after compromising a workload.
34 β Compare Broad and Scoped Workload Access
Section titled β34 β Compare Broad and Scoped Workload AccessβBroad:
Compromised Application βAdministrator βEntire Cloud EnvironmentScoped:
Compromised Application βRead Approved Storage βLimited Blast RadiusThis is why least privilege matters.
35 β Understand Workload Privilege Creep
Section titled β35 β Understand Workload Privilege CreepβApplications can accumulate permissions over time too.
Example:
Application βStorage Read
Later βStorage Write
Later βDatabase Access
Later βSecrets AccessOld permissions may remain even when they are no longer needed.
36 β Perform a Workload Access Review
Section titled β36 β Perform a Workload Access ReviewβAsk:
Which Workload?
Which Identity?
Which Permissions?
Which Resources?
Why?
Still Required?
Last Reviewed?37 β Create a Workload Identity Inventory
Section titled β37 β Create a Workload Identity Inventoryβ| Workload | Identity | Resource | Permission | Required? |
|---|---|---|---|---|
| CloudPlus App | cloudplus-app-identity | Lab Storage | Read | Yes |
38 β Understand Credential Rotation
Section titled β38 β Understand Credential RotationβIf an application must use a credential that does not automatically expire, it requires lifecycle management.
Consider:
Create βStore Securely βUse βRotate βRevoke39 β Understand Secret Management
Section titled β39 β Understand Secret ManagementβIf an application genuinely requires a secret, avoid storing it directly in source code.
A stronger architecture may use:
Application βAuthorized Workload Identity βSecrets Management Service βRequired Secretπ§ Important Distinction
Section titled βπ§ Important DistinctionβA secrets manager does not eliminate identity requirements.
The application still needs authorization to retrieve the secret.
40 β Understand Environment Variables
Section titled β40 β Understand Environment VariablesβEnvironment variables can reduce some hard-coding problems, but:
they are not automatically a complete secret-management solution.
Secrets still require:
-
controlled storage
-
restricted access
-
lifecycle management
-
rotation
-
monitoring
41 β Search the Lab Application for Credentials
Section titled β41 β Search the Lab Application for CredentialsβReview your test configuration for patterns such as:
password=
secret=
access_key=
token=Do not print actual secret values.
42 β Review Source Control
Section titled β42 β Review Source ControlβIf the project uses Git, verify that credential files are not intentionally committed.
Common sensitive file types may include:
.env
credentials
secret configuration files
private keysπ¨ Important
Section titled βπ¨ ImportantβAdding a leaked secret to .gitignore after it was committed does not necessarily remove the secret from repository history.
An exposed credential should be treated according to the organizationβs credential-response process.
43 β Understand Workload Authentication Logs
Section titled β43 β Understand Workload Authentication LogsβWorkload actions should be attributable where possible.
You should be able to investigate:
Which Identity?
Which Resource?
Which Action?
When?
Was It Successful?44 β Generate an Authorized Workload Event
Section titled β44 β Generate an Authorized Workload EventβFrom your workload:
Read workload-test.txt45 β Locate the Audit Event
Section titled β45 β Locate the Audit EventβUsing your providerβs supported audit logging, find evidence of the workload operation where available.
Identify:
Identity
Action
Resource
Timestamp
Result46 β Generate a Denied Event
Section titled β46 β Generate a Denied EventβAttempt a harmless unauthorized operation such as:
Delete Test Objectwhere your role intentionally denies deletion.
47 β Review the Denied Event
Section titled β47 β Review the Denied EventβDetermine whether your logging system records the failed authorization.
48 β Build a Workload Audit Record
Section titled β48 β Build a Workload Audit RecordβWorkload:
Identity:
Operation:
Resource:
Timestamp:
Result:
Expected?
Investigation Notes:49 β Understand Suspicious Workload Activity
Section titled β49 β Understand Suspicious Workload ActivityβPotential indicators include:
-
unusual resources accessed
-
unexpected write activity
-
unexpected delete activity
-
permission changes
-
credential creation
-
access from unexpected workloads
-
unusually high API activity
50 β Create a Workload Security Scenario
Section titled β50 β Create a Workload Security ScenarioβSuppose a normally read-only application suddenly attempts:
Delete Object
Modify IAM
Create Access CredentialThis should raise the question:
Why is the application attempting actions outside its normal behavior?
51 β Understand Workload Behavior Baselines
Section titled β51 β Understand Workload Behavior BaselinesβNormal:
Application βRead Configuration βStoragePotentially suspicious:
Application βEnumerate IAM βDelete ResourcesContext matters.
52 β Deliberately Remove Required Permission
Section titled β52 β Deliberately Remove Required PermissionβTemporarily remove the workloadβs approved read permission.
53 β Test the Application Again
Section titled β53 β Test the Application AgainβAttempt to retrieve:
workload-test.txtExpected:
ACCESS DENIED54 β Troubleshoot the Failure
Section titled β54 β Troubleshoot the FailureβUse:
Workload βIdentity Attached? βCredential Available? βCorrect Role? βRequired Permission? βCorrect Resource Scope? βResource Policy? βEncryption Permission?55 β Identify the Root Cause
Section titled β55 β Identify the Root CauseβRecord:
Problem:Application cannot read approved object.
Identity:
Role:
Required Permission:
Resource:
Observed Error:
Root Cause:56 β Restore Only the Required Permission
Section titled β56 β Restore Only the Required PermissionβRestore:
Read Approved ObjectDo not solve the problem by assigning:
Storage Administrator57 β Re-Test Authorized Access
Section titled β57 β Re-Test Authorized AccessβExpected:
Read βALLOWED58 β Re-Test Unauthorized Delete
Section titled β58 β Re-Test Unauthorized DeleteβExpected:
Delete βDENIEDπ§ Troubleshooting Principle
Section titled βπ§ Troubleshooting PrincipleβA successful fix should restore:
required functionality
without introducing:
unnecessary privilege.
59 β Document the Troubleshooting Case
Section titled β59 β Document the Troubleshooting CaseβIssue:
Workload:
Identity:
Required Operation:
Observed Error:
Identity Attachment:
Role Review:
Permission Review:
Resource Scope:
Root Cause:
Corrective Action:
Validation:60 β Troubleshooting Scenario β No Workload Identity Found
Section titled β60 β Troubleshooting Scenario β No Workload Identity FoundβCheck:
Was Identity Created?
Was It Assigned?
Is the Workload Using the Correct Identity?
Does the Platform Require Restart / Refresh?
Is the Identity Mechanism Available?61 β Troubleshooting Scenario β Identity Exists but Access Is Denied
Section titled β61 β Troubleshooting Scenario β Identity Exists but Access Is DeniedβCheck:
Identity βRole βPermission βResource Scope βResource Policy62 β Troubleshooting Scenario β Storage Access Works but Object Cannot Be Decrypted
Section titled β62 β Troubleshooting Scenario β Storage Access Works but Object Cannot Be DecryptedβReview:
Storage Permission +Encryption Key PermissionThis connects directly to your Secure Cloud Storage Lab.
63 β Troubleshooting Scenario β Application Can Access Every Storage Resource
Section titled β63 β Troubleshooting Scenario β Application Can Access Every Storage ResourceβThis is an authorization problem.
Review:
-
broad role assignments
-
wildcard permissions
-
resource scope
-
inherited permissions
Apply least privilege.
64 β Troubleshooting Scenario β Application Works Locally but Fails in Cloud
Section titled β64 β Troubleshooting Scenario β Application Works Locally but Fails in CloudβInvestigate whether local development is using:
Developer Credentialswhile the cloud environment uses:
Workload IdentityThe two identities may have different permissions.
65 β Troubleshooting Scenario β Application Stops Working After Credential Rotation
Section titled β65 β Troubleshooting Scenario β Application Stops Working After Credential RotationβIf static credentials are used, investigate:
Credential Rotated βApplication Still Uses Old Credential βAuthentication FailureThis is one reason managed workload identities can simplify credential lifecycle.
66 β Troubleshooting Scenario β Deleted Service Account
Section titled β66 β Troubleshooting Scenario β Deleted Service AccountβIf a workload identity is removed:
Application βIdentity Missing βAuthentication / Authorization FailureRestore access according to approved IAM procedures.
67 β Troubleshooting Scenario β Wrong Identity Assigned
Section titled β67 β Troubleshooting Scenario β Wrong Identity AssignedβSuppose:
Application A βIdentity BThis can produce:
-
unexpected access
-
denied access
-
poor accountability
Validate workload-to-identity mappings.
68 β Troubleshooting Scenario β Workload Has Administrator Access
Section titled β68 β Troubleshooting Scenario β Workload Has Administrator AccessβTreat this as a high-risk finding unless specifically justified.
Ask:
What Does the Workload Actually Need?
Which Actions?
Which Resources?
Can Administrator Be Replaced?69 β Build the Workload IAM Troubleshooting Framework
Section titled β69 β Build the Workload IAM Troubleshooting FrameworkβUse:
Application βWorkload Identity βAuthentication βRole βPermission βResource Scope βResource Policy βEncryption βAuthorization Decision70 β Understand Workload Identity in Containers
Section titled β70 β Understand Workload Identity in ContainersβContainers also require identities.
Avoid architectures where every container inherits:
Highly Privileged Host IdentityA stronger architecture provides workload-specific permissions where supported.
71 β Understand Workload Identity in Kubernetes
Section titled β71 β Understand Workload Identity in KubernetesβConceptually:
Pod βService Account βWorkload Identity βCloud IAM βCloud ResourceThe implementation depends on the platform.
72 β Understand Serverless Identity
Section titled β72 β Understand Serverless IdentityβServerless workloads may also receive dedicated execution identities.
Example:
Function βExecution Role βObject StorageApply the same principle:
only grant what the function requires.
73 β Understand CI/CD Workload Identity
Section titled β73 β Understand CI/CD Workload IdentityβDeployment pipelines frequently need cloud access.
Poor model:
CI/CD βPermanent Administrator KeyBetter model:
CI/CD βFederated / Workload Identity βTemporary Credential βDeployment Rolewhere supported.
74 β Understand Identity Federation
Section titled β74 β Understand Identity FederationβFederation allows one trusted identity system to establish access to another environment without necessarily maintaining separate permanent credentials.
Conceptually:
Trusted Identity Provider β Federation βTemporary Cloud Identity βCloud Resource75 β Understand Workload Identity Federation
Section titled β75 β Understand Workload Identity FederationβModern cloud environments may extend federation to non-human workloads.
Conceptually:
External Workload βTrusted Identity Assertion βCloud IAM βTemporary Access76 β Understand Trust Relationships
Section titled β76 β Understand Trust RelationshipsβA workload role should not necessarily be assumable by every identity.
Ask:
Who is trusted to use this role?
Conceptually:
Trusted Workload βRolenot:
Any Identity βPrivileged Role77 β Review Trust Configuration
Section titled β77 β Review Trust ConfigurationβWhere applicable, review which:
-
workloads
-
services
-
identities
can use the workload role.
78 β Understand Cross-Environment Workload Access
Section titled β78 β Understand Cross-Environment Workload AccessβOrganizations may have:
Development
Testing
ProductionAvoid automatically allowing:
Development Workload βProduction Data79 β Build Environment Separation
Section titled β79 β Build Environment SeparationβPrefer:
Development App βDevelopment Identity βDevelopment Resourcesand:
Production App βProduction Identity βProduction Resources80 β Understand Workload Identity Ownership
Section titled β80 β Understand Workload Identity OwnershipβEvery service identity should have an owner.
Document:
Identity:
Application:
Team:
Purpose:
Permissions:
Environment:
Review Date:81 β Identify Orphaned Service Identities
Section titled β81 β Identify Orphaned Service IdentitiesβLook for identities where:
Application Deleted βService Identity RemainsThese can become:
orphaned identities.
82 β Understand Orphaned Identity Risk
Section titled β82 β Understand Orphaned Identity RiskβAn unused identity may still retain:
-
permissions
-
credentials
-
trust relationships
It should be reviewed and removed when no longer required.
83 β Create a Workload Identity Lifecycle
Section titled β83 β Create a Workload Identity LifecycleβUse:
Application Created βIdentity Created βMinimum Access Assigned βApplication Operates βPeriodic Review βApplication Retired βIdentity Removed84 β Perform a Workload Identity Security Assessment
Section titled β84 β Perform a Workload Identity Security AssessmentβReview:
[ ] Dedicated workload identity exists[ ] Human credentials are not used by application[ ] Hard-coded credentials avoided[ ] Permissions follow least privilege[ ] Resource scope is restricted[ ] Workload identity ownership documented[ ] Temporary credentials used where supported[ ] Trust relationship reviewed[ ] Logging available[ ] Failed access tested[ ] Excessive permissions reviewed[ ] Orphaned identities reviewed85 β Build a Workload IAM Findings Register
Section titled β85 β Build a Workload IAM Findings Registerβ| Finding | Risk | Recommendation | Priority |
|---|---|---|---|
| Hard-Coded Access Key | Credential Exposure | Use Workload Identity | Critical |
| Application Uses Admin Role | Excessive Privilege | Create Scoped Role | Critical |
| Shared Service Account | Poor Accountability | Dedicated Identity | High |
| Broad Storage Scope | Excessive Data Access | Restrict Resource Scope | High |
| Unused Service Identity | Unauthorized Access | Review and Remove | Medium |
| Long-Lived Credential | Credential Exposure | Use Temporary Credentials | High |
86 β Compare the Old and New Architecture
Section titled β86 β Compare the Old and New ArchitectureβApplication βDeveloper Access Key βBroad Storage Permission βCloud StorageProblems:
Shared Identity
Permanent Credential
Poor Accountability
Excessive Access
Credential ExposureApplication βDedicated Workload Identity βTemporary Credential βScoped Role βApproved StorageBenefits:
Dedicated Identity
Least Privilege
Reduced Credential Exposure
Better Accountability
Smaller Blast Radius87 β Build the Final Architecture
Section titled β87 β Build the Final Architectureβ Cloud Environment | v Application VM | v Workload Identity | v Scoped IAM Role | +---------+---------+ | | v v Approved Storage Other Resources | | ALLOW DENY | v Audit Logs | v Monitoring88 β Capture Evidence
Section titled β88 β Capture EvidenceβCapture sanitized evidence of:
-
workload identity
-
role assignment
-
permission scope
-
identity-to-workload mapping
-
successful read
-
denied write
-
denied delete
-
denied unrelated resource access
-
workload audit event
-
troubleshooting test
Never capture:
Passwords
Access Keys
Secret Keys
Tokens
Private Keys
Temporary Credential Values89 β Create the Lab Report
Section titled β89 β Create the Lab ReportβUse:
Lab:Workload Identity and Service Account Lab
Objective:
Workload:
Identity:
Required Permissions:
Resource Scope:
Authentication Method:
Temporary Credential Model:
Authorized Test:
Denied Tests:
Logging:
Findings:
Remediation:
Lessons Learned:π§ͺ Final Validation Checklist
Section titled βπ§ͺ Final Validation Checklistβ| Validation | Status |
|---|---|
| Human vs workload identity understood | |
| Workload identity concept understood | |
| Service-account concept understood | |
| Service-role concept understood | |
| Application requirement documented | |
| Workload identity created/configured | |
| Scoped permissions assigned | |
| Identity attached to workload | |
| Static credentials avoided | |
| Authorized storage listing tested | |
| Authorized object read tested | |
| Unauthorized write denied | |
| Unauthorized delete denied | |
| Unrelated resource access denied | |
| Temporary credentials understood | |
| Secret-management concept understood | |
| Credential exposure reviewed | |
| Audit event reviewed | |
| Failed authorization reviewed | |
| Workload access review completed | |
| Trust relationship reviewed | |
| Orphaned identity risk understood | |
| Troubleshooting scenario completed | |
| Findings documented |
90 β Cleanup Decision
Section titled β90 β Cleanup DecisionβIf continuing the Cloud+ lab sequence, retain the workload identity if it will be useful in later application labs.
Otherwise:
Application Removed βReview Workload Identity βRemove Role Assignment βRevoke Credentials if Applicable βDelete Unneeded IdentityDo not leave orphaned service identities behind.
π― Certification Connection
Section titled βπ― Certification ConnectionβA Cloud+ scenario may say:
An application contains a cloud administratorβs access key inside its source code.
Think:
Remove Human Credential βDedicated Workload Identity βLeast PrivilegeAnother may say:
An application only needs to read one object-storage location but currently has administrator access.
Think:
scope the workload permission.
Another:
A workload should access cloud resources without maintaining a permanently stored access key.
Think:
workload identity + temporary credentials.
Another:
Multiple applications share the same service account.
Think about:
accountability and least privilege.
π€ Interview Questions
Section titled βπ€ Interview QuestionsβPractice without notes.
1. What is a workload identity?
Section titled β1. What is a workload identity?β2. What is a service account?
Section titled β2. What is a service account?β3. Human identity vs workload identity?
Section titled β3. Human identity vs workload identity?β4. Why should applications not use employee credentials?
Section titled β4. Why should applications not use employee credentials?β5. Why are hard-coded cloud credentials dangerous?
Section titled β5. Why are hard-coded cloud credentials dangerous?β6. What are temporary credentials?
Section titled β6. What are temporary credentials?β7. Why are temporary credentials preferable to long-lived credentials?
Section titled β7. Why are temporary credentials preferable to long-lived credentials?β8. What is a service role?
Section titled β8. What is a service role?β9. How do you apply least privilege to an application?
Section titled β9. How do you apply least privilege to an application?β10. Why should workloads have dedicated identities?
Section titled β10. Why should workloads have dedicated identities?β11. What is workload identity federation?
Section titled β11. What is workload identity federation?β12. What is a trust relationship?
Section titled β12. What is a trust relationship?β13. Why should service identities have owners?
Section titled β13. Why should service identities have owners?β14. What is an orphaned service identity?
Section titled β14. What is an orphaned service identity?β15. Why should development and production workloads use separate identities?
Section titled β15. Why should development and production workloads use separate identities?β16. What happens if an application has administrator access and becomes compromised?
Section titled β16. What happens if an application has administrator access and becomes compromised?β17. How would you troubleshoot workload access denied?
Section titled β17. How would you troubleshoot workload access denied?β18. What is a secrets manager?
Section titled β18. What is a secrets manager?β19. Does a secrets manager eliminate IAM requirements?
Section titled β19. Does a secrets manager eliminate IAM requirements?β20. Why should workload activity be logged?
Section titled β20. Why should workload activity be logged?β21. How would you detect excessive workload permissions?
Section titled β21. How would you detect excessive workload permissions?β22. Why are shared service accounts problematic?
Section titled β22. Why are shared service accounts problematic?β23. How should a service identity be decommissioned?
Section titled β23. How should a service identity be decommissioned?β24. What is workload privilege creep?
Section titled β24. What is workload privilege creep?β25. How does workload IAM reduce cloud attack blast radius?
Section titled β25. How does workload IAM reduce cloud attack blast radius?βπ¨ Scenario Interview Question 1
Section titled βπ¨ Scenario Interview Question 1βYou discover an application containing a developerβs cloud access key.
A strong response includes:
Identify Exposure βProtect / Revoke Credential βReview Activity βRemove Human Credential βImplement Workload Identity βApply Least Privilegeπ¨ Scenario Interview Question 2
Section titled βπ¨ Scenario Interview Question 2βA VM needs to read one storage location but has full storage-administrator permission.
Use:
Required Action βRead
Required Resource βSpecific Storage
Permission βScoped Readπ¨ Scenario Interview Question 3
Section titled βπ¨ Scenario Interview Question 3βA workload identity can read data but cannot delete it.
Before changing permissions, ask:
Does the application actually need delete permission?
If not:
IAM is working correctly.
π¨ Scenario Interview Question 4
Section titled βπ¨ Scenario Interview Question 4βAn application suddenly begins attempting IAM operations even though it normally only reads storage.
Investigate:
Application βUnexpected Behavior βAudit Logs βWorkload Identity βRecent Activity βPotential Compromise / Misconfigurationπ¨ Scenario Interview Question 5
Section titled βπ¨ Scenario Interview Question 5βAn application works on a developer laptop but receives access denied after deployment.
Check whether:
Developer Laptop βDeveloper Identitywhile:
Cloud Application βWorkload IdentityReview the permissions of the actual deployed identity.
π¨ Scenario Interview Question 6
Section titled βπ¨ Scenario Interview Question 6βAn application has been retired, but its service account still exists with storage access.
This is:
an orphaned workload identity.
Review and remove unnecessary access.
π¨ Scenario Interview Question 7
Section titled βπ¨ Scenario Interview Question 7βThree applications share one highly privileged service account.
Recommend:
Application A β Identity A
Application B β Identity B
Application C β Identity Cwith workload-specific least privilege.
π¨ Scenario Interview Question 8
Section titled βπ¨ Scenario Interview Question 8βA CI/CD pipeline stores a permanent administrator key.
Consider replacing it with:
CI/CD Workload βFederated Identity βTemporary Credential βScoped Deployment Rolewhere supported.
π§ Workload IAM Interview Framework
Section titled βπ§ Workload IAM Interview FrameworkβUse:
WORKLOAD βIDENTITY βAUTHENTICATION βTEMPORARY CREDENTIAL βROLE βMINIMUM PERMISSION βRESOURCE SCOPE βLOGGING βREVIEWπ¬ Interview Tip
Section titled βπ¬ Interview TipβAvoid:
βI would create a service account for the application.β
A stronger answer is:
βI would first identify exactly which cloud resources and API actions the workload requires. I would assign a dedicated workload identity, avoid embedded human or long-lived credentials, use temporary credentials where supported, scope the IAM role to the minimum required actions and resources, validate both authorized and denied operations, enable audit logging, and periodically review the identity for excessive or obsolete permissions.β
That demonstrates Cloud Engineer and Cloud Security Engineer thinking.
π Portfolio Deliverables
Section titled βπ Portfolio DeliverablesβKeep sanitized versions of:
1. Workload Identity Architecture
Section titled β1. Workload Identity ArchitectureβShow:
Application βWorkload Identity βScoped Role βCloud Resource2. Workload Access Matrix
Section titled β2. Workload Access MatrixβDocument:
-
workload
-
identity
-
action
-
resource
-
allow/deny
3. Least-Privilege Validation
Section titled β3. Least-Privilege ValidationβShow:
Read Approved Storage βALLOW
Delete Object βDENY4. Credential Security Assessment
Section titled β4. Credential Security AssessmentβDocument:
-
hard-coded credential risks
-
temporary credential architecture
-
secret-management requirements
5. Workload IAM Troubleshooting Record
Section titled β5. Workload IAM Troubleshooting RecordβShow:
Access Denied βIdentity Review βRole Review βPermission Review βScoped Fix βValidation6. Workload IAM Findings Register
Section titled β6. Workload IAM Findings RegisterβDocument:
-
finding
-
risk
-
recommendation
-
priority
π Resume Examples
Section titled βπ Resume ExamplesβInstead of:
Worked with service accounts.
Use:
Implemented dedicated cloud workload identities and service accounts using scoped IAM roles, temporary credentials, least-privilege resource access, and workload-level audit logging.
Or:
Replaced hard-coded application credential patterns with workload identity architecture and validated authorized and denied cloud-resource operations.
Or:
Performed workload IAM security assessments identifying excessive application permissions, shared service identities, long-lived credentials, broad resource access, and orphaned service accounts.
β Job-Readiness Check
Section titled ββ Job-Readiness CheckβYou should now be able to:
-
explain workload identities
-
explain service accounts
-
distinguish human and machine identities
-
understand service roles
-
understand temporary credentials
-
identify hard-coded credential risks
-
design dedicated application identities
-
apply least privilege to workloads
-
scope workload access
-
validate authorized application access
-
validate denied workload actions
-
understand secret management
-
understand workload identity federation
-
review trust relationships
-
identify workload privilege creep
-
identify orphaned identities
-
review workload audit activity
-
troubleshoot workload IAM
-
reduce workload blast radius
-
document secure workload IAM architecture
π Mission Complete
Section titled βπ Mission CompleteβYou have progressed from:
Application βHard-Coded Credential βCloud Resourceto:
Application βDedicated Workload Identity βTemporary Authentication βLeast-Privilege Role βScoped Cloud Resource βAudit + MonitoringThe key lesson is:
Cloud workloads should authenticate using dedicated machine identities with the minimum permissions required, rather than relying on shared, human, or permanently embedded credentials.
π Whatβs Next?
Section titled βπ Whatβs Next?βYou now have the core identity architecture needed to build a more realistic cloud application.
So far you have created and secured:
Networking+Compute+Storage+Human IAM+Privileged IAM+Workload IAMThe next lab brings these components together into an application architecture.
You will build:
Internet β Web Tier β Application Tier β Data TierYou will work with:
-
three-tier architecture
-
public and private network segments
-
web servers
-
application workloads
-
data services
-
security groups
-
routing
-
workload identities
-
controlled traffic flows
-
architecture validation
-
tier-to-tier troubleshooting
You will move from individual cloud resources to:
a complete multi-tier cloud workload architecture.
β‘οΈ Next: Lab 12 β Build a Three-Tier Cloud Application Architecture