Cloud Security Groups and Network Access Controls
Routing decides whether a network path exists. Security controls decide whether traffic is allowed to use that path.
Welcome to Lab 05 of the CompTIA Cloud+ practical lab sequence.
In the previous lab, you configured:
- route tables
- default routes
- internet connectivity
- private outbound access
- NAT concepts
- subnet associations
- traffic-path validation
You can now answer:
Can traffic reach the destination?
This lab introduces the next question:
Should that traffic be allowed?
You will build and validate cloud network-security controls around the architecture created in the previous labs.
The target environment is:
Internet βPublic / Web Tier βApplication Tier βDatabase TierYour goal is to transform that architecture into:
Internet βHTTPS Only βWeb Tier βRequired Application Port Only βApplication Tier βRequired Database Port Only βDatabase Tierπ― Mission Information
Section titled βπ― Mission Informationβ| Item | Details |
|---|---|
| Lab | 05 β Cloud Security Groups and Network Access Controls |
| Difficulty | Beginner β Intermediate |
| Estimated Time | 60β90 Minutes |
| Certification Alignment | CompTIA Cloud+ |
| Primary Focus | Cloud Network Security |
| Previous Lab | 04 β Configure Cloud Routing and Internet Access |
| Career Alignment | Cloud Administrator, Cloud Engineer, Cloud Security Engineer |
| Major Skills | Security Groups, Inbound/Outbound Rules, Least Privilege, Troubleshooting |
| Deliverable | Least-Privilege Cloud Network Policy + Validation Report |
π’ Scenario
Section titled βπ’ ScenarioβYour organization has completed the basic cloud-network design.
The application contains:
-
public web workloads
-
private application workloads
-
private database workloads
Routing is already configured.
However, the current network-security rules are too broad.
Your manager asks you to implement a least-privilege access model.
The requirements are:
Internet βHTTPS βWeb TierWeb Tier βApplication Service βApplication TierApplication Tier βDatabase Service βDatabase TierEverything else should be reviewed and restricted unless there is a documented requirement.
π― Lab Objectives
Section titled βπ― Lab ObjectivesβBy completing this lab, you should be able to:
-
explain cloud security groups
-
understand virtual-firewall concepts
-
distinguish inbound and outbound rules
-
define source and destination controls
-
use protocol and port restrictions
-
implement least-privilege network access
-
restrict administrative access
-
identify excessive public exposure
-
understand stateful firewall behavior conceptually
-
distinguish security groups from routing
-
distinguish network controls from host firewalls
-
validate allowed and denied traffic
-
troubleshoot broken security rules
-
document traffic requirements
-
explain cloud-network security during interviews
π§ Why This Lab Matters
Section titled βπ§ Why This Lab MattersβA route such as:
0.0.0.0/0 βInternet Gatewaycreates a network path.
But that does not mean every port should be reachable.
A weak design might allow:
Internet βANY βWeb ServerA better design starts with:
Internet βTCP 443 βWeb ServerThe principle is:
Allow only the communication required for the workload to function.
01 β Understand Cloud Security Groups
Section titled β01 β Understand Cloud Security GroupsβCloud providers commonly provide virtual network-security controls attached to:
-
instances
-
network interfaces
-
subnets
-
workloads
Provider terminology varies.
Conceptually:
Traffic βCloud Security Policy βAllow / Deny βWorkloadπ§ Provider-Neutral Thinking
Section titled βπ§ Provider-Neutral ThinkingβFor CompTIA Cloud+, focus on:
Source+Destination+Protocol+Port+Direction=Security Decision02 β Understand Inbound Rules
Section titled β02 β Understand Inbound RulesβInbound rules control traffic entering a protected resource.
Example:
Source:Internet
Protocol:TCP
Port:443
Destination:Web Server
Action:Allow03 β Understand Outbound Rules
Section titled β03 β Understand Outbound RulesβOutbound rules control traffic leaving a protected resource.
Example:
Source:Application Server
Destination:Database
Protocol:TCP
Port:Database Service
Action:AllowThe exact control model depends on the provider.
04 β Understand Stateful Firewall Concepts
Section titled β04 β Understand Stateful Firewall ConceptsβMany cloud security-group implementations behave statefully.
Conceptually:
Client βAllowed Request βServer βReturn TrafficThe return traffic may be automatically recognized as part of the established connection.
π§ Important
Section titled βπ§ ImportantβDo not assume every cloud network control behaves exactly the same.
Some controls may be:
-
stateful
-
stateless
-
workload-level
-
subnet-level
Always understand the providerβs implementation.
05 β Review the Existing Network
Section titled β05 β Review the Existing NetworkβConfirm:
10.10.0.0/16 | βββ Public β 10.10.10.0/24 | βββ Application β 10.10.20.0/24 | βββ Database 10.10.30.0/2406 β Review the Traffic Requirements
Section titled β06 β Review the Traffic RequirementsβBefore creating security rules, use the traffic matrix from Lab 03.
A recommended starting point:
| Source | Destination | Service | Required? |
|---|---|---|---|
| Internet | Web | HTTPS | Yes |
| Internet | Web | SSH | Restricted |
| Internet | App | Any | No |
| Internet | DB | Any | No |
| Web | App | Application Service | Yes |
| Web | DB | Database | No |
| App | DB | Database Service | Yes |
| Admin | Workloads | Management | Controlled |
π§ Security Rule Design
Section titled βπ§ Security Rule DesignβUse:
Business Requirement βRequired Traffic βSecurity Rulenot:
Allow Everything βApplication Works βTry to Secure Later07 β Create a Web-Tier Security Group
Section titled β07 β Create a Web-Tier Security GroupβCreate a security policy for the public web workload.
Example name:
cloudplus-lab-sg-web-01Apply your standard tags.
08 β Allow HTTPS to the Web Tier
Section titled β08 β Allow HTTPS to the Web TierβCreate:
Direction:Inbound
Source:Internet / Approved Sources
Protocol:TCP
Port:443
Action:Allowπ§ Why TCP 443?
Section titled βπ§ Why TCP 443?βHTTPS commonly uses:
TCP 443This allows encrypted web traffic.
09 β Review HTTP Requirement
Section titled β09 β Review HTTP RequirementβAsk:
Does the application require TCP 80?
If HTTP is required only for redirecting users to HTTPS, document that requirement.
If not:
do not open it unnecessarily.
10 β Restrict SSH Administration
Section titled β10 β Restrict SSH AdministrationβAdministrative access should be restricted.
Prefer:
Trusted Admin Source βTCP 22 βWeb VMAvoid:
0.0.0.0/0 βTCP 22 βWeb VMwhere a narrower source is practical.
11 β Record the Web-Tier Rules
Section titled β11 β Record the Web-Tier RulesβExample:
| Direction | Source | Protocol | Port | Purpose |
|---|---|---|---|---|
| Inbound | Internet | TCP | 443 | HTTPS |
| Inbound | Trusted Admin IP | TCP | 22 | Administration |
12 β Review Web-Tier Outbound Access
Section titled β12 β Review Web-Tier Outbound AccessβAsk what the web workload actually needs outbound.
Possible requirements:
-
application-tier communication
-
DNS
-
software updates
-
logging
Avoid assuming:
unrestricted outbound access is always necessary.
13 β Create an Application-Tier Security Group
Section titled β13 β Create an Application-Tier Security GroupβCreate:
cloudplus-lab-sg-app-01The application tier should not accept direct arbitrary internet traffic.
14 β Allow Web-to-App Traffic
Section titled β14 β Allow Web-to-App TrafficβSuppose your lab application uses a test service on:
TCP 8080Then conceptually allow:
Source:Web Tier
Destination:Application Tier
Protocol:TCP
Port:8080π§ Important
Section titled βπ§ ImportantβUse the actual port required by your application.
Do not copy port 8080 into production designs simply because it appears in this lab.
15 β Prefer Security-Group Referencing Where Supported
Section titled β15 β Prefer Security-Group Referencing Where SupportedβSome cloud platforms allow one security group or workload identity to be used as the source instead of a broad IP range.
Conceptually:
Web Security Group βTCP 8080 βApplication Security GroupThis can be easier to maintain than hard-coding many workload IPs.
16 β Block Direct Internet-to-App Access
Section titled β16 β Block Direct Internet-to-App AccessβValidate that the application tier does not have a rule like:
Internet βANY βApplication ServerThe target design is:
Internet XApplication Tierfor direct inbound access.
17 β Review Administrative Access to the App Tier
Section titled β17 β Review Administrative Access to the App TierβThe private application VM should ideally use a controlled management path.
For example:
Administrator βBastion / VPN / Managed Session βApplication VMnot:
Internet βSSH βPrivate App VM18 β Create a Database-Tier Security Group
Section titled β18 β Create a Database-Tier Security GroupβCreate:
cloudplus-lab-sg-db-01This should be the most restrictive tier in the current design.
19 β Define the Database Service
Section titled β19 β Define the Database ServiceβFor a lab database, identify the actual service port.
Examples may include database technologies using ports such as:
-
TCP 3306
-
TCP 5432
-
TCP 1433
Use only the one required by your chosen test environment.
π¨ Important
Section titled βπ¨ ImportantβDo not open every database port.
20 β Allow App-to-Database Traffic
Section titled β20 β Allow App-to-Database TrafficβConceptually:
Application Tier βRequired Database Port βDatabase TierExample:
Source:Application Security Group
Protocol:TCP
Port:Database Service21 β Deny Web-to-Database Communication
Section titled β21 β Deny Web-to-Database CommunicationβYour desired architecture is:
Web XDatabaseunless the application design explicitly requires direct communication.
π§ Why This Matters
Section titled βπ§ Why This MattersβIf a public web workload is compromised, direct database access creates a shorter attack path.
Prefer:
Web βApplication βDatabase22 β Deny Direct Internet-to-Database Access
Section titled β22 β Deny Direct Internet-to-Database AccessβVerify:
Internet XDatabaseThere should be no unnecessary public database exposure.
23 β Build the Final Security Model
Section titled β23 β Build the Final Security ModelβYour desired architecture becomes:
Internet | | TCP 443 v +----------------+ | Web Tier | +----------------+ | | App Port v +----------------+ | App Tier | +----------------+ | | DB Port v +----------------+ | Database Tier | +----------------+24 β Review Administrative Paths
Section titled β24 β Review Administrative PathsβAdministrative traffic should be treated separately from application traffic.
Example:
Administrator βTrusted Management Path βWeb / App / DBπ§ Management Plane Principle
Section titled βπ§ Management Plane PrincipleβAvoid mixing:
Application Traffic+Administrative Trafficwithout reason.
25 β Understand Source Restrictions
Section titled β25 β Understand Source RestrictionsβSuppose SSH access is needed.
Weak rule:
Source:0.0.0.0/0
Port:22Better:
Source:Trusted Administrator IP
Port:22Better enterprise architecture may use:
Admin Identity βVPN / Bastion / Session Service βPrivate Workloads26 β Understand Destination Restrictions
Section titled β26 β Understand Destination RestrictionsβOutbound security policy should also consider:
where workloads need to communicate.
Example:
App Server βDatabase Onlymay be stronger than unrestricted access to all internal systems.
27 β Understand Protocol Restrictions
Section titled β27 β Understand Protocol RestrictionsβCommon protocols include:
TCPUDPICMPDo not select:
all protocols
unless required.
28 β Understand Port Ranges
Section titled β28 β Understand Port RangesβA security policy may allow:
TCP 443or a range.
Avoid broad ranges such as:
TCP 1-65535without documented justification.
π§ Least-Privilege Principle
Section titled βπ§ Least-Privilege PrincipleβPrefer:
Required Source+Required Destination+Required Protocol+Required Port29 β Review Default Security Rules
Section titled β29 β Review Default Security RulesβSome cloud environments create default security policies.
Review whether they allow:
-
all internal traffic
-
all outbound traffic
-
broad inbound traffic
π¨ Important
Section titled βπ¨ ImportantβDo not assume:
default = least privilege.
30 β Validate the Web-Tier Policy
Section titled β30 β Validate the Web-Tier PolicyβFrom an approved external client, test:
HTTPSto the web workload.
Expected:
Allowed.
31 β Test an Unapproved Port
Section titled β31 β Test an Unapproved PortβUse a safe test port where no service is expected.
Expected:
blocked or unreachable.
π§ Validation Principle
Section titled βπ§ Validation PrincipleβDo not merely inspect the configuration.
Test the expected behavior.
32 β Validate Restricted SSH
Section titled β32 β Validate Restricted SSHβAttempt SSH from:
-
approved source
-
unapproved source where safely possible
Expected:
Approved Source βAllowedand:
Unapproved Source βBlocked33 β Validate Web-to-App Traffic
Section titled β33 β Validate Web-to-App TrafficβFrom the web workload, test the required application port.
For example:
nc -vz <app-private-ip> 8080if nc is available and your test service is listening.
Use the actual configured test service.
34 β Validate Web-to-Database Restriction
Section titled β34 β Validate Web-to-Database RestrictionβFrom the web workload, attempt the database service connection.
Expected:
denied or unreachable.
35 β Validate App-to-Database Traffic
Section titled β35 β Validate App-to-Database TrafficβFrom the application workload, test the required database service.
Expected:
allowed.
36 β Validate Internet-to-App Restriction
Section titled β36 β Validate Internet-to-App RestrictionβConfirm there is no direct public inbound path to the application tier.
Check:
-
public IP
-
route design
-
security-group rules
37 β Validate Internet-to-Database Restriction
Section titled β37 β Validate Internet-to-Database RestrictionβConfirm:
Internet XDatabase38 β Build a Validation Matrix
Section titled β38 β Build a Validation Matrixβ| Test | Expected | Result |
|---|---|---|
| Internet β Web HTTPS | Allow | |
| Internet β Web SSH from trusted source | Allow | |
| Internet β Web SSH from untrusted source | Deny | |
| Internet β App | Deny | |
| Internet β DB | Deny | |
| Web β App | Allow | |
| Web β DB | Deny | |
| App β DB | Allow |
39 β Understand Security Groups vs Route Tables
Section titled β39 β Understand Security Groups vs Route TablesβThis distinction is critical.
Route Table
Section titled βRoute TableβAnswers:
Where does traffic go?
Security Group
Section titled βSecurity GroupβAnswers:
Is traffic allowed?
π§ Example
Section titled βπ§ ExampleβYou can have:
Valid Route+Blocked Security Rule=No ConnectivityYou can also have:
Allowed Security Rule+Missing Route=No Connectivity40 β Understand Cloud Security vs Host Firewall
Section titled β40 β Understand Cloud Security vs Host FirewallβYour workload may also have an operating-system firewall.
Conceptually:
Network βCloud Security Rule βOS Firewall βApplicationAll layers must support the intended communication.
π§ Troubleshooting Principle
Section titled βπ§ Troubleshooting PrincipleβIf the cloud security group allows TCP 443 but the OS firewall blocks it:
the service remains unreachable.
41 β Review Listening Services
Section titled β41 β Review Listening ServicesβOn a Linux test workload, inspect:
ss -tulnConfirm the expected service is actually listening.
42 β Understand the Complete Traffic Path
Section titled β42 β Understand the Complete Traffic PathβFor HTTPS:
Internet Client βDNS βPublic IP βRoute βCloud Security Rule βOS Firewall βTCP 443 Listener βWeb Application43 β Deliberately Break the HTTPS Rule
Section titled β43 β Deliberately Break the HTTPS RuleβIn the isolated lab, temporarily remove the inbound HTTPS rule.
Test again.
Expected:
HTTPS fails.
44 β Troubleshoot the Failure
Section titled β44 β Troubleshoot the FailureβUse:
Route? βSecurity Group? βOS Firewall? βService?Identify:
missing security-group rule.
45 β Restore the HTTPS Rule
Section titled β45 β Restore the HTTPS RuleβRecreate the required rule.
Test again.
Expected:
service restored.
46 β Document the Security Incident
Section titled β46 β Document the Security IncidentβRecord:
Problem:Web application unreachable.
Expected Traffic:Internet β TCP 443 β Web
Observed Behavior:
Root Cause:Missing/incorrect security-group rule.
Remediation:
Validation:47 β Deliberately Create an Overly Broad Rule
Section titled β47 β Deliberately Create an Overly Broad RuleβIn the lab only, temporarily create something broad such as:
Source:Anywhere
Protocol:AllReview how much access this potentially creates.
Then remove it.
π¨ Important
Section titled βπ¨ ImportantβDo not leave the broad rule active.
The objective is to understand:
why broad rules create unnecessary attack surface.
48 β Perform a Public Exposure Review
Section titled β48 β Perform a Public Exposure ReviewβFor every public workload ask:
Which Ports Are Open? βWhy? βFrom Which Sources? βIs Each One Required?49 β Perform an East-West Security Review
Section titled β49 β Perform an East-West Security ReviewβReview:
Web β AppApp β DBWeb β DBThe goal is not merely:
internal = trusted.
Internal traffic also requires policy.
π§ Lateral Movement Connection
Section titled βπ§ Lateral Movement ConnectionβIf one workload is compromised, excessive east-west access can allow attackers to move toward other systems.
50 β Review Database Exposure
Section titled β50 β Review Database ExposureβThe database tier should ideally satisfy:
Internet:No
Web:No
Application:Required DB Port Only
Administration:Controlled51 β Review Outbound Access
Section titled β51 β Review Outbound AccessβFor each workload ask:
Web Tier
Section titled βWeb TierβWhat external destinations are required?
App Tier
Section titled βApp TierβDoes it need:
-
repositories
-
APIs
-
logging destinations?
Database Tier
Section titled βDatabase TierβDoes it need external access at all?
π§ Outbound Security
Section titled βπ§ Outbound SecurityβInbound security receives most attention, but uncontrolled outbound access can also create risk.
52 β Create a Least-Privilege Traffic Matrix
Section titled β52 β Create a Least-Privilege Traffic MatrixβDocument:
| Source | Destination | Protocol | Port | Action | Business Reason |
|---|---|---|---|---|---|
| Internet | Web | TCP | 443 | Allow | User Access |
| Admin | Web | TCP | 22 | Allow | Administration |
| Web | App | TCP | App Port | Allow | Application |
| App | DB | TCP | DB Port | Allow | Database |
| Web | DB | Any | Any | Deny | Not Required |
| Internet | App | Any | Any | Deny | Private Tier |
| Internet | DB | Any | Any | Deny | Private Tier |
53 β Create a Security Rule Naming Standard
Section titled β53 β Create a Security Rule Naming StandardβWhere your provider supports descriptions or rule names, use meaningful labels.
Example:
allow-https-from-internetallow-ssh-from-adminallow-web-to-appallow-app-to-dbAvoid:
rule1rule2test54 β Add Rule Descriptions
Section titled β54 β Add Rule DescriptionsβFor each rule document:
-
purpose
-
owner
-
source
-
destination
-
service
π§ Why Descriptions Matter
Section titled βπ§ Why Descriptions MatterβSix months later, someone should be able to answer:
Why does this rule exist?
55 β Identify Stale Rules
Section titled β55 β Identify Stale RulesβSuppose a rule exists for:
TCP 8080but the application moved to:
TCP 8443The old rule may now be unnecessary.
π§ Security Rule Lifecycle
Section titled βπ§ Security Rule LifecycleβUse:
Create βUse βReview βModify βRemove56 β Review Temporary Rules
Section titled β56 β Review Temporary RulesβTemporary administrative rules should not become permanent by accident.
Document:
Temporary Rule:
Owner:
Reason:
Created:
Expiration:57 β Understand Network ACL Concepts
Section titled β57 β Understand Network ACL ConceptsβSome providers also support subnet-level network controls or ACL-style mechanisms.
Conceptually:
Subnet Traffic βNetwork ACL / Equivalent βWorkload Security Group βHost Firewallπ§ Security Layers
Section titled βπ§ Security LayersβCloud environments may use multiple layers:
Routing+Subnet-Level Controls+Workload-Level Controls+Host Firewall+Application Security58 β Stateful vs Stateless Review
Section titled β58 β Stateful vs Stateless ReviewβUnderstand the broad distinction.
Stateful
Section titled βStatefulβTracks connection state.
Stateless
Section titled βStatelessβEvaluates traffic independently according to rules.
π§ Why This Matters
Section titled βπ§ Why This MattersβWith stateless controls, you may need to consider:
both directions explicitly.
59 β Troubleshooting Scenario β HTTPS Does Not Work
Section titled β59 β Troubleshooting Scenario β HTTPS Does Not WorkβUse:
DNS βPublic IP βRoute βSecurity Group βOS Firewall βApplication Listener60 β Troubleshooting Scenario β App Cannot Reach DB
Section titled β60 β Troubleshooting Scenario β App Cannot Reach DBβCheck:
Source IP βSource Security Rule βRoute βDB Security Rule βHost Firewall βDB Listener βReturn Path61 β Troubleshooting Scenario β Rule Looks Correct
Section titled β61 β Troubleshooting Scenario β Rule Looks CorrectβSuppose the rule says:
Source:10.10.10.0/24
Port:8080but the web workload actually resides in:
10.10.11.0/24The rule is technically valid but does not match the real source.
π§ Troubleshooting Lesson
Section titled βπ§ Troubleshooting LessonβAlways compare:
intended architecture
with:
actual deployed state.
62 β Troubleshooting Scenario β Wrong Port
Section titled β62 β Troubleshooting Scenario β Wrong PortβSuppose the security group allows:
TCP 8080but the application listens on:
TCP 8443No amount of route-table changes will solve the problem.
63 β Troubleshooting Scenario β OS Firewall Blocking
Section titled β63 β Troubleshooting Scenario β OS Firewall BlockingβCloud rule:
TCP 443 Allowedbut service remains unavailable.
Review the host firewall.
64 β Troubleshooting Scenario β Service Not Listening
Section titled β64 β Troubleshooting Scenario β Service Not ListeningβBoth network and host firewall allow the traffic.
Still unavailable.
Check:
ss -tulnIf no service listens on the expected port:
the issue is application/service related.
65 β Troubleshooting Scenario β Everything Open but App Still Fails
Section titled β65 β Troubleshooting Scenario β Everything Open but App Still FailsβAvoid opening more ports.
Review:
-
application
-
dependencies
-
DNS
-
authentication
-
logs
π§ Cloud Security Troubleshooting Framework
Section titled βπ§ Cloud Security Troubleshooting FrameworkβUse:
Source βRoute βCloud Network Control βHost Firewall βListening Port βApplication βReturn Path66 β Perform a Security Review of the Web Tier
Section titled β66 β Perform a Security Review of the Web TierβCheck:
[ ] HTTPS required[ ] Administrative access restricted[ ] No unnecessary ports[ ] Source restrictions documented[ ] Outbound requirements reviewed67 β Perform a Security Review of the App Tier
Section titled β67 β Perform a Security Review of the App TierβCheck:
[ ] No direct public exposure[ ] Web-to-app traffic limited[ ] Admin access controlled[ ] Outbound requirements reviewed68 β Perform a Security Review of the DB Tier
Section titled β68 β Perform a Security Review of the DB TierβCheck:
[ ] No public IP[ ] No direct internet access[ ] App-to-db only[ ] Web-to-db blocked[ ] Administrative access controlled69 β Update the Architecture Diagram
Section titled β69 β Update the Architecture DiagramβYour final design should show both routes and security policy.
Internet | TCP 443 | v +------------------+ | Web Tier | | 10.10.10.0/24 | +------------------+ | App Port | v +------------------+ | Application Tier | | 10.10.20.0/24 | +------------------+ | DB Port | v +------------------+ | Database Tier | | 10.10.30.0/24 | +------------------+70 β Create Your Network Security Record
Section titled β70 β Create Your Network Security RecordβDocument:
Web Security Group:cloudplus-lab-sg-web-01
Application Security Group:cloudplus-lab-sg-app-01
Database Security Group:cloudplus-lab-sg-db-01
Public HTTPS:Allowed
Public SSH:Trusted Sources Only
Internet β App:Blocked
Internet β DB:Blocked
Web β App:Required Port Only
Web β DB:Blocked
App β DB:Required Port Only71 β Update the Resource Inventory
Section titled β71 β Update the Resource InventoryβAdd:
| Resource | Type | Purpose | Status |
|---|---|---|---|
| cloudplus-lab-sg-web-01 | Security Group | Web Tier | Active |
| cloudplus-lab-sg-app-01 | Security Group | App Tier | Active |
| cloudplus-lab-sg-db-01 | Security Group | DB Tier | Active |
72 β Capture Evidence
Section titled β72 β Capture EvidenceβCapture sanitized evidence of:
-
web security rules
-
application security rules
-
database security rules
-
validation tests
-
denied traffic tests
Do not capture:
-
secrets
-
private keys
-
sensitive account identifiers
73 β Perform Final Validation
Section titled β73 β Perform Final ValidationβVerify:
Internet β Web HTTPS ALLOW
Internet β App DENY
Internet β DB DENY
Web β App ALLOW
Web β DB DENY
App β DB ALLOWπ§ͺ Final Validation Checklist
Section titled βπ§ͺ Final Validation Checklistβ| Validation | Status |
|---|---|
| Web security group created | |
| App security group created | |
| DB security group created | |
| HTTPS allowed | |
| SSH restricted | |
| Internet-to-app blocked | |
| Internet-to-db blocked | |
| Web-to-app allowed | |
| Web-to-db blocked | |
| App-to-db allowed | |
| Public exposure reviewed | |
| Host firewall considered | |
| Listening services validated | |
| Broad rule tested and removed | |
| Security matrix documented | |
| Troubleshooting case completed | |
| Resource inventory updated |
74 β Cleanup Decision
Section titled β74 β Cleanup DecisionβKeep these security groups if you are continuing the Cloud+ lab sequence.
They will be useful for later:
-
DNS
-
three-tier architecture
-
load balancing
-
monitoring
-
incident investigation
Remove only temporary test rules.
π― Certification Connection
Section titled βπ― Certification ConnectionβCloud+ questions may ask:
A VM has correct routing but remains unreachable.
Think:
Route βNetwork Security Rule βHost Firewall βServiceAnother scenario may ask:
Which control best reduces unnecessary exposure?
Look for:
Least Privilege+Specific Source+Specific Portinstead of broad ANY access.
π€ Interview Questions
Section titled βπ€ Interview QuestionsβPractice without notes.
1. What is a cloud security group?
Section titled β1. What is a cloud security group?β2. What is a virtual firewall?
Section titled β2. What is a virtual firewall?β3. Inbound vs outbound rule?
Section titled β3. Inbound vs outbound rule?β4. Why restrict source IP ranges?
Section titled β4. Why restrict source IP ranges?β5. Why restrict ports?
Section titled β5. Why restrict ports?β6. What does least-privilege network access mean?
Section titled β6. What does least-privilege network access mean?β7. Why should SSH not normally be open to everyone?
Section titled β7. Why should SSH not normally be open to everyone?β8. Why should databases not be publicly exposed?
Section titled β8. Why should databases not be publicly exposed?β9. Why separate web, application, and database security policies?
Section titled β9. Why separate web, application, and database security policies?β10. Routing vs security group?
Section titled β10. Routing vs security group?β11. Cloud security group vs host firewall?
Section titled β11. Cloud security group vs host firewall?β12. What is a stateful firewall?
Section titled β12. What is a stateful firewall?β13. What is a stateless control?
Section titled β13. What is a stateless control?β14. Why validate denied traffic?
Section titled β14. Why validate denied traffic?β15. Why review outbound rules?
Section titled β15. Why review outbound rules?β16. Why document business reasons for firewall rules?
Section titled β16. Why document business reasons for firewall rules?β17. What is a stale security rule?
Section titled β17. What is a stale security rule?β18. What is east-west security?
Section titled β18. What is east-west security?β19. How can excessive internal access enable lateral movement?
Section titled β19. How can excessive internal access enable lateral movement?β20. How would you troubleshoot a blocked cloud connection?
Section titled β20. How would you troubleshoot a blocked cloud connection?βπ¨ Scenario Interview Question 1
Section titled βπ¨ Scenario Interview Question 1βA web server has HTTPS open to the internet and SSH open to
0.0.0.0/0.
What would you change?
Keep:
HTTPSInternet β TCP 443Review and restrict:
SSHTrusted Admin Source β TCP 22π¨ Scenario Interview Question 2
Section titled βπ¨ Scenario Interview Question 2βThe application server is reachable directly from the internet even though it should be private.
Review:
-
public IP
-
routing
-
security rules
-
workload placement
Do not treat this as only a firewall issue.
π¨ Scenario Interview Question 3
Section titled βπ¨ Scenario Interview Question 3βWeb users cannot reach the application.
Use:
Route βWeb Security Group βApp Security Group βApp Host Firewall βListening Portπ¨ Scenario Interview Question 4
Section titled βπ¨ Scenario Interview Question 4βThe web tier can access the database directly.
Ask:
Is that required by the architecture?
If not, remove the path and require:
Web βApplication βDatabaseπ¨ Scenario Interview Question 5
Section titled βπ¨ Scenario Interview Question 5βA developer requests
ANYprotocol fromANYsource because the application is not working.
Do not immediately approve it.
Determine:
Required Source+Required Destination+Required Port+Actual Failureπ¨ Scenario Interview Question 6
Section titled βπ¨ Scenario Interview Question 6βThe cloud rule allows TCP 443, but HTTPS still fails.
Check:
-
route
-
host firewall
-
service status
-
listening port
-
application health
π¨ Scenario Interview Question 7
Section titled βπ¨ Scenario Interview Question 7βThe database security group allows only the app tier, but connectivity still fails.
Check whether:
-
the app is using the expected source identity/IP
-
the database listener uses the expected port
-
host firewall permits it
-
routes and return paths are valid
π§ Cloud Network Security Interview Framework
Section titled βπ§ Cloud Network Security Interview FrameworkβUse:
Business Requirement βSource βDestination βProtocol βPort βNetwork Path βSecurity Rule βValidationπ¬ Interview Tip
Section titled βπ¬ Interview TipβAvoid:
βI would open the port and see if it works.β
A stronger answer is:
βI would first confirm the required source, destination, protocol, and port from the application architecture. I would verify the routing path, review workload and subnet-level security controls, check the host firewall and listening service, and then implement the narrowest rule required before validating both allowed and denied traffic.β
That demonstrates Cloud Security Engineer thinking.
π Portfolio Deliverables
Section titled βπ Portfolio DeliverablesβKeep sanitized versions of:
1. Security Architecture Diagram
Section titled β1. Security Architecture DiagramβShow:
Internet β HTTPSWeb β App PortApplication β DB PortDatabase2. Traffic Matrix
Section titled β2. Traffic MatrixβDocument every required communication flow.
3. Security Rule Register
Section titled β3. Security Rule RegisterβInclude:
-
source
-
destination
-
protocol
-
port
-
business reason
4. Public Exposure Review
Section titled β4. Public Exposure ReviewβShow which services are externally accessible and why.
5. Troubleshooting Record
Section titled β5. Troubleshooting RecordβDocument one intentionally broken security rule and its remediation.
π Resume Examples
Section titled βπ Resume ExamplesβInstead of:
Configured cloud security groups.
Use:
Implemented least-privilege cloud network-security controls across public web, private application, and database tiers using source restrictions, protocol and port filtering, controlled administrative access, and validated allowed/denied traffic paths.
Or:
Troubleshot cloud connectivity across routing, workload security groups, host firewalls, listening services, and application dependencies while documenting root cause and remediation.
β Job-Readiness Check
Section titled ββ Job-Readiness CheckβYou should now be able to:
-
explain cloud security groups
-
understand inbound and outbound rules
-
define source restrictions
-
define port restrictions
-
apply least privilege
-
restrict administrative access
-
secure public web workloads
-
protect private application tiers
-
protect database tiers
-
distinguish routing from network security
-
distinguish cloud controls from host firewalls
-
understand stateful firewall concepts
-
review public exposure
-
review east-west communication
-
identify broad security rules
-
validate allowed traffic
-
validate denied traffic
-
troubleshoot security-rule failures
-
document security policy professionally
π Mission Complete
Section titled βπ Mission CompleteβYou have now progressed from:
Routing βTraffic Has a Pathto:
Security Policy βOnly Required Traffic Uses That PathYour current environment now reflects a much stronger cloud design:
Internet βHTTPS βWeb βApplication Service βApplication βDatabase Service βDatabaseThe key lesson is:
Good cloud security is not about blocking everything. It is about permitting exactly what the workload requires and being able to explain why every access path exists.
π Whatβs Next?
Section titled βπ Whatβs Next?βYour compute, subnets, routing, and network-security controls are now established.
The next lab focuses on DNS and cloud name resolution.
You will work with:
-
DNS architecture
-
hostname-to-IP resolution
-
public DNS
-
private DNS
-
DNS records
-
resolver concepts
-
workload name resolution
-
DNS testing
-
broken DNS troubleshooting
-
distinguishing DNS failures from routing failures
You will move from:
10.10.20.15to:
app.cloudplus.laband understand how that name is resolved to the correct destination.
β‘οΈ Next: Lab 06 β Cloud DNS and Name Resolution