Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to enable Security Command Center for a GCP project.
GCP
gcloud scc settings [1] --organization=123456789
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'activate' instead of 'enable' causes an error.
✗ Incorrect
The correct command to enable Security Command Center is enable.
2fill in blank
mediumComplete the code to list all findings in Security Command Center.
GCP
gcloud scc findings list --source=[1] --organization=123456789
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'source_id' instead of 'source' causes the command to fail.
✗ Incorrect
The correct flag is --source=source to specify the source.
3fill in blank
hardFix the error in the command to create a Security Command Center source.
GCP
gcloud scc sources [1] --organization=123456789 --display-name="My Source"
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'add' or 'new' causes an unknown command error.
✗ Incorrect
The correct verb to create a source is create.
4fill in blank
hardFill both blanks to filter findings by severity and state.
GCP
gcloud scc findings list --organization=123456789 --filter='severity=[1] AND state=[2]'
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'OPEN' as state is invalid; correct is 'ACTIVE'.
✗ Incorrect
Severity can be CRITICAL and state can be ACTIVE to filter important open findings.
5fill in blank
hardFill all three blanks to create a notification config for Security Command Center.
GCP
gcloud scc notification-configs create [1] --organization=123456789 --pubsub-topic=[2] --description=[3]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using a wrong topic format or missing quotes around description.
✗ Incorrect
The notification config needs a name, a Pub/Sub topic, and a description string.