0
0
Cybersecurityknowledge~10 mins

Cloud network security groups in Cybersecurity - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to identify what a security group controls in cloud networking.

Cybersecurity
A security group primarily controls [1] to and from cloud resources.
Drag options to blanks, or click blank then click option'
Abilling details
Bstorage capacity
Cuser permissions
Dnetwork traffic
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing security groups with user access controls.
Thinking security groups manage storage or billing.
2fill in blank
medium

Complete the code to specify the type of rules security groups use.

Cybersecurity
Security groups use [1] rules to allow or deny traffic based on IP addresses and ports.
Drag options to blanks, or click blank then click option'
Astateful
Bstateless
Cencryption
Dauthentication
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing stateful with stateless rules.
Thinking security groups handle encryption or authentication.
3fill in blank
hard

Fix the error in the statement about security group rules.

Cybersecurity
Security groups [1] deny rules; they only allow traffic explicitly.
Drag options to blanks, or click blank then click option'
Aalways include
Bnever include
Csometimes include
Dignore
Attempts:
3 left
💡 Hint
Common Mistakes
Assuming security groups have explicit deny rules.
Confusing security groups with network ACLs that have deny rules.
4fill in blank
hard

Fill both blanks to complete the dictionary comprehension that creates a security group rule set allowing only HTTP and HTTPS traffic.

Cybersecurity
rules = {port: 'allow' for port in [1] if port [2] [80, 443]}
Drag options to blanks, or click blank then click option'
A[80, 443, 22, 25]
Bin
Cnot in
D[22, 25, 53]
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'not in' instead of 'in' causing wrong filtering.
Using a list without the required ports.
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension that maps protocol names to their default ports only if the port number is greater than 20.

Cybersecurity
protocol_ports = [1]: [2] for [3], [2] in [('http', 80), ('ftp', 21), ('ssh', 22)] if [2] > 20
Drag options to blanks, or click blank then click option'
Aproto
Bport
Cproto_port
Dproto_port[0]
Attempts:
3 left
💡 Hint
Common Mistakes
Using inconsistent variable names.
Using port number as key instead of protocol name.