wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Security Quiz Chapter 12

Total questions: 100

Worksheet time: 50mins

Name
Class
Date
1.

What are the three elements of data that need to be ensured for effective protection, collectively known as "CIA"?

a)

Confidentiality, Integrity, Authorization

b)

Confidentiality, Identity, Availability

c)

Confidentiality, Integrity, Availability

d)

Confidentiality, Integration, Access

2.

Which two mechanisms are commonly used for enforcing data confidentiality?

a)

Encryption and Access Control Lists (ACLs)

b)

Hashing and Logging

c)

Usernames and Passwords

d)

Firewalls and Antivirus Software

3.

What is the primary goal of cryptographic hashing and logging in terms of data security?

a)

To validate the integrity of data

b)

To ensure data availability

c)

To encrypt data

d)

To control user access

4.

What is the first step in protecting your AWS credentials according to the text?

a)

To manage services and edit resources

b)

To protect them from accidental exposure and unauthorized use

c)

To ensure that users have only the permissions they need

d)

To log into the AWS management console

5.

What is the second step to ensure when managing AWS credentials?

a)

To give users more permissions than they need

b)

To ensure that users have only the permissions they need, and no more

c)

To frequently change user permissions

d)

To monitor user activity continuously

6.

What is a principal in AWS IAM terminology?

a)

A set of credentials used to authenticate with AWS resources

b)

A password policy

c)

An entity that can take an action on an AWS resource

d)

A multi-factor authentication device

7.

Which of the following is recommended to secure the root user in AWS?

a)

Enabling a password policy for all IAM users

b)

Creating an IAM user and attaching the AdministratorAccess policy

c)

Using the root user for routine administrative tasks

d)

Requiring an administrator to reset an expired password

8.

What is the minimum password length that you can set for IAM users in AWS?

a)

Four characters

b)

Six characters

c)

Eight characters

d)

Ten characters

9.

What is the principle of least privilege in information security?

a)

Giving IAM principals permissions to all resources

b)

Assigning an MFA token to every user

c)

Giving IAM principals permissions to only the resources they need and no more

d)

Enforcing a password policy to all IAM users

10.

By default, what permissions do IAM principals have when they are created?

a)

Full access to AWS resources

b)

No permissions

c)

Read-only permissions

d)

Limited permissions based on common job roles

11.

What does an IAM policy consist of at a minimum?

a)

One or more users

b)

One or more roles

c)

One or more permission statements

d)

One or more groups

12.

What is the effect of an IAM policy statement?

a)

It specifies the AWS service to be used

b)

It allows or denies access to a resource

c)

It designates the principal that will receive the permissions

d)

It lists the actions that can be performed on a resource

13.

What can the 'Action/Operation' element of an IAM policy specify?

a)

The user who performs the action

b)

The resource that the action can be performed on

c)

The set of actions or operations that can be performed on AWS resources

d)

The conditions under which the policy is effective

14.

What is a customer-managed policy in AWS IAM?

a)

A policy managed by AWS for common job roles

b)

A standalone policy created and managed by the customer

c)

A policy that automatically applies to all AWS accounts

d)

A policy that grants full access to AWS resources

15.

What is an inline policy in the context of IAM?

a)

A policy that is attached to multiple IAM principals simultaneously

b)

A set of permissions embedded in an IAM principal or group

c)

A managed policy that exists independently of any IAM principals

d)

A document that outlines the structure of IAM within an organization

16.

What is the purpose of permissions boundaries?

a)

To define the structure of IAM roles and responsibilities

b)

To grant all permissions available in AWS to a user

c)

To limit the maximum permissions an IAM principal can be assigned

d)

To attach a policy to the wrong principal

17.

What happens if you attach the AdministratorAccess policy to a user with a permissions boundary that only allows actions in EC2?

a)

The user will have full access to all AWS services

b)

The user will only be able to perform actions in EC2

c)

The user's permissions boundary will be overridden by the AdministratorAccess policy

d)

The user will not be able to perform any actions in AWS

18.

What is the name of the customer-managed policy that needs to be created according to EXERCISE 12.1?

a)

AdministratorAccessPolicy

b)

LimitedUserPolicyBoundary

c)

LimitedAdminPolicyBoundary

d)

FullAccessPolicyBoundary

19.

Which AWS service is specifically mentioned in the permissions policy content provided in EXERCISE 12.1?

a)

DynamoDB

b)

EC2

c)

S3

d)

IAM

20.

According to the text under "Roles," what is a role in IAM?

a)

A user with a password and access key

b)

An IAM principal without a password or access key

c)

A resource within AWS

d)

A type of AWS service

21.

What does the AdministratorAccess permissions policy allow according to the exercise instructions?

a)

Full access to all AWS services

b)

Limited access to EC2 instances only

c)

Access to DynamoDB only

d)

No access to AWS services

22.

What does the permissions boundary policy override according to the exercise instructions?

a)

It overrides the AdministratorAccess policy to limit actions to EC2 only.

b)

It grants additional permissions beyond the AdministratorAccess policy.

c)

It removes all access to AWS services.

d)

It has no effect on the AdministratorAccess policy.

23.

What does the "Effect": "Allow" in the permissions policy JSON indicate?

a)

It denies access to the specified actions

b)

It allows access to the specified actions

c)

It is irrelevant to the access level

d)

It encrypts the specified actions

24.

Which AWS service is specified in the "Principal" element of the trust policy JSON?

a)

Amazon S3

b)

Amazon EC2

c)

Amazon DynamoDB

d)

Amazon RDS

25.

What is the purpose of a trust policy in an IAM role?

a)

To define the actions a user can perform

b)

To encrypt data stored in AWS

c)

To allow an AWS resource to assume the role

d)

To monitor AWS resource usage

26.

What action is allowed by the trust policy for the EC2 service?

a)

sts:TerminateInstance

b)

sts:AssumeRole

c)

ec2:ModifyInstance

d)

ec2:StartInstances

27.

When IAM automatically creates an instance profile with the same name as the role, what is the purpose of this instance profile?

a)

To provide billing details for the EC2 instance

b)

To allow the EC2 instance to assume the role

c)

To restrict the EC2 instance from accessing other services

d)

To log the activities performed by the EC2 instance

28.

Which AWS CLI command is used to view the instance profile associated with a specific role?

a)

aws iam get-instance-profile --role-name MyAppRole

b)

aws iam list-instance-profiles-for-role --role-name MyAppRole

c)

aws iam describe-instance-profiles --role MyAppRole

d)

aws iam show-instance-profile --role MyAppRole

29.

What does the "Action" field in the AssumeRolePolicyDocument specify in the provided JSON output?

a)

The permission to launch an EC2 instance

b)

The permission to delete the IAM role

c)

The permission to assume the IAM role

d)

The permission to modify the IAM role

30.

What is the effect of the policy statement included in the AssumeRolePolicyDocument in the JSON output?

a)

Deny

b)

Queue

c)

Allow

d)

Reject

31.

Which AWS service places the temporary credentials in the instance metadata when an instance is associated with an instance profile?

a)

AWS Identity and Access Management (IAM)

b)

AWS Security Token Service (STS)

c)

AWS Key Management Service (KMS)

d)

AWS Directory Service

32.

How often are the temporary credentials granted by a role named MyappRole updated?

a)

Every hour

b)

Every six hours

c)

Every twelve hours

d)

Once a day

33.

What is the purpose of the credentials shown in the example?

a)

To authenticate to the AWS API for performing operations

b)

To encrypt data stored in AWS

c)

To increase the security of the AWS Management Console

d)

To monitor AWS service usage

34.

What should be done to ensure the security of the access key ID, secret access key, and session token?

a)

Store them in a database

b)

Share them publicly

c)

Be very careful to avoid exposing them

d)

Use them frequently

35.

Which AWS CLI command correctly exports the ACCESS_KEY_ID from the given example?

a)

export AWS_ACCESS_KEY_ID=ASIAT5J6QWJME3E2SJ56C

b)

export AWS_ACCESS_KEY_ID=MyAppRole

c)

export AWS_ACCESS_KEY_ID=Success

d)

export AWS_ACCESS_KEY_ID=2018-10-14T20:47:19Z

36.

What is the potential risk if a user may use the credentials to attempt to enumerate resources using the AWS CLI?

a)

They can perform operations with no limitations

b)

They can gain unauthorized access

c)

They can encrypt the AWS data

d)

They can delete the AWS account

37.

What AWS CLI command is used to list all DynamoDB tables?

a)

aws dynamodb describe-tables

b)

aws dynamodb get-tables

c)

aws dynamodb list-tables

d)

aws dynamodb show-tables

38.

What error message is returned when an unauthorized attempt is made to describe EC2 instances?

a)

UnauthorizedOperation

b)

AccessDeniedException

c)

InvalidPermission

d)

OperationNotPermitted

39.

What principle should be followed to avoid granting a role more permissions than it requires?

a)

Principle of least privilege

b)

Principle of maximum access

c)

Principle of necessary access

d)

Principle of sufficient privilege

40.

What can you do as an additional precaution to ensure IAM roles are not overly permissive?

a)

Enable Amazon GuardDuty

b)

Disable Security Token Service on a per-region basis

c)

Increase the permissions of the IAM user

d)

Grant all permissions to the IAM user

41.

What is the first step to create and assume a role as an IAM user according to Exercise 12.2?

a)

Click the Switch Role button.

b)

Enter your AWS account number.

c)

Click Roles on the menu on the left side of the IAM Dashboard screen and then click the Create Role button.

d)

Select the AmazonEC2ReadOnlyAccess AWS managed policy.

42.

What should you do after selecting the AmazonEC2ReadOnlyAccess AWS managed policy when creating a role?

a)

Click the Create Role button.

b)

Click the Review button.

c)

Click the Switch Role button.

d)

Enter a name for the role.

43.

What is the name suggested for the new role in Exercise 12.2?

a)

IAMFullAccessRole

b)

EC2FullAccessRole

c)

EC2ReadOnlyRole

d)

EC2ReadOnlyRole

44.

According to the instructions in Exercise 12.2, how do you access the Switch Role feature in the AWS Management Console?

a)

Click on the IAM Dashboard.

b)

Click on the navigation bar at the top of the AWS Management Console and select your IAM account name.

c)

Click on the Roles menu and select the newly created role.

d)

Click on the Create Role button.

45.

What is the final step in Exercise 12.2 to assume a role as an IAM user?

a)

Click the Review button.

b)

Click the Create Role button.

c)

Click the Switch Role button.

d)

Enter your AWS account number.

46.

What will happen if you try to launch an EC2 instance with a role that doesn't have the RunInstances permission?

a)

The instance will launch without any issues.

b)

The instance will launch, but with limited functionality.

c)

The instance launch will fail.

d)

The instance will launch, but it will not be accessible.

47.

Which AWS service offers optional bucket policies that control access to objects or entire buckets?

a)

Key Management Service (KMS)

b)

Simple Notification Service (SNS)

c)

Simple Queue Service (SQS)

d)

S3

48.

What type of policy allows you to define who can publish messages or subscribe to a topic in SNS?

a)

Identity-based IAM policies

b)

Resource-based policies

c)

User-based policies

d)

Group-based policies

49.

Which service uses resource-based SQS access policies to control who can send to and receive messages from a queue?

a)

Key Management Service (KMS)

b)

Simple Notification Service (SNS)

c)

Simple Queue Service (SQS)

d)

S3

50.

Users without AWS credentials typically consume AWS services that offer what type of policies?

a)

Identity-based IAM policies

b)

Resource-based policies

c)

User-based policies

d)

Group-based policies

51.

What is the purpose of detective controls in AWS?

a)

To modify the security settings of your AWS environment

b)

To keep a record of the events that occur in your AWS environment and alert you to security incidents or potential threats

c)

To provide a backup service for your AWS data

d)

To manage the computational resources of your AWS environment

52.

Which AWS service allows you to log activities on your AWS account and is discussed in Chapter 7?

a)

CloudWatch Logs

b)

CloudTrail

c)

S3 Bucket

d)

Simple Notification Service (SNS)

53.

What can you decide to log with CloudTrail?

a)

Only management events

b)

Only data events

c)

Both management and data events

d)

Neither management nor data events

54.

How long can it take for CloudTrail to deliver a log file to the S3 bucket after an event occurs?

a)

Instantly

b)

Up to 5 minutes

c)

Up to 10 minutes

d)

Up to 15 minutes

55.

What additional security feature can you enable when creating a trail in CloudTrail?

a)

S3 Bucket encryption

b)

SSE-KMS encryption and log file integrity validation

c)

Global services logging

d)

Simple Notification Service (SNS) encryption

56.

What can CloudWatch Logs aggregate?

a)

Logs from a single AWS service

b)

Logs from multiple AWS services for easy storage and searching

c)

Only CloudTrail logs

d)

Only S3 bucket logs

57.

What information do VPC flow logs include?

a)

DHCP traffic only

b)

Network interface, source and destination IP addresses, ports, protocols, and packet and byte counts

c)

Usernames and passwords

d)

Encrypted data packets

58.

Which AWS service can be used to stream logs from database engines like MariaDB, MySQL, Aurora with MySQL compatibility, and Oracle?

a)

Lambda

b)

CloudTrail

c)

RDS Logs

d)

Athena

59.

What can you configure Route 53 to log?

a)

VPC flow logs

b)

DHCP traffic

c)

DNS queries for a hosted zone

d)

Encrypted data packets

60.

Where does Lambda automatically stream log events to?

a)

A log group derived from the name of the function, using the format /aws/lambda/

b)

A log group named after the user

c)

A log group named FlowLogs

d)

A log group in S3

61.

What is the role of Athena in the context of AWS logs?

a)

It automatically deletes old logs.

b)

It encrypts log data.

c)

It uses the Structured Query Language (SQL) to search data stored in S3.

d)

It streams logs to CloudWatch.

62.

What is the filter pattern used to search for DetachVolume, AttachVolume, and DeleteVolume events in a CloudWatch log stream containing CloudTrail logs?

a)

{ $.eventName = "AttachVolume" && $.eventName = "DetachVolume" && $.eventName = "DeleteVolume" }

b)

{ $.eventName = "AttachVolume" || $.eventName = "DetachVolume" || $.eventName = "DeleteVolume" }

c)

{ $.eventName == "AttachVolume" || $.eventName == "DetachVolume" || $.eventName == "DeleteVolume" }

d)

{ $.eventName == "Attach*" || $.eventName == "Detach*" || $.eventName == "Delete*" }

63.

Why might someone use Amazon Athena with CloudWatch Logs?

a)

To filter logs by specific event names only

b)

To read each matching event in its native JSON format

c)

To query it using SQL, sort it, and display only specific columns

d)

To increase the storage capacity of CloudWatch Logs

64.

What is inherently difficult about the way CloudWatch Logs displays matching events?

a)

It displays them in a compressed format

b)

It displays them in an alphabetical order

c)

It displays them in their native JSON format

d)

It displays them without timestamps

65.

What can you use Amazon Athena for in the context of CloudWatch Logs?

a)

To automatically delete old logs

b)

To visualize the logs in a graphical format

c)

To convert JSON format into CSV format

d)

To select only a few key elements from the logs

66.

Which SQL statement is used to define the structure of the data in Athena?

a)

SELECT

b)

INSERT

c)

CREATE TABLE

d)

UPDATE

67.

What data formats does Athena support for importing multiple logs into a single database? (Choose two)

a)

CSV and TSV

b)

TXT and DOC

c)

BMP and JPG

d)

XML and HTML

68.

What is the purpose of the ec2-volume-inuse-check rule in AWS Config?

a)

To check if an EBS volume is attached to any instance

b)

To monitor the network traffic

c)

To validate the security group configurations

d)

To report the CPU usage of EC2 instances

69.

What action will AWS Config report as non-compliant if an EBS volume is not attached to an instance?

a)

Starting an EC2 instance

b)

Detaching the EBS volume

c)

Attaching the EBS volume

d)

Stopping an EC2 instance

70.

What storage formats for Apache Hadoop does Athena support?

a)

ORC and Parquet

b)

MP3 and WAV

c)

AVI and MP4

d)

ZIP and RAR

71.

What is the main benefit of using AWS Config to view the configuration timeline for a resource?

a)

It provides real-time monitoring of network traffic.

b)

It allows viewing specific API events that triggered the configuration change.

c)

It automatically updates the resource to the latest configuration.

d)

It enhances the computational performance of the resource.

72.

What does AWS Config check in the "ec2-volume-inuse-check" according to Figure 12.3?

a)

It checks if the EC2 instances are running the latest version of AWS software.

b)

It checks whether EBS volumes are attached to EC2 instances and optionally checks if EBS volumes are marked for deletion when an instance is terminated.

c)

It checks the network configuration of attached EBS volumes.

d)

It monitors the performance metrics of EBS volumes.

73.

What is the compliance status of the EBS volume shown in the AWS Config timeline in Figure 12.4?

a)

Compliant

b)

Noncompliant

c)

Not applicable

d)

Under review

74.

What does Amazon GuardDuty analyze?

a)

It analyzes the performance of AWS services.

b)

It analyzes AWS Config rules and their compliance status.

c)

It analyzes VPC flow logs, CloudTrail management event logs, and Route 53 DNS query logs, looking for known malicious IP addresses, domain names, and potentially malicious activity.

d)

It provides a timeline of user activities and permissions within AWS.

75.

What does a GuardDuty finding indicating 'Backdoor' suggest about an EC2 instance?

a)

The instance is communicating on an unusual protocol and port.

b)

The instance has been compromised by malware that can be used for DDoS attacks.

c)

The instance is exhibiting network activity related to Bitcoin operations.

d)

The instance is sending an abnormally large amount of traffic to an external host.

76.

What type of GuardDuty finding is generated when an EC2 instance communicates on TCP port 25 or resolves the domain name of a known command-and-control server?

a)

Behavior

b)

Backdoor

c)

Cryptocurrency

d)

Unauthorized access

77.

Which GuardDuty finding type is associated with an EC2 instance sending an abnormally large amount of traffic to an external host?

a)

Backdoor

b)

Unauthorized access

c)

Behavior

d)

Cryptocurrency

78.

What does a GuardDuty finding indicating 'Cryptocurrency' suggest about an EC2 instance?

a)

The instance is being used for Bitcoin mining activities.

b)

The instance is sending an abnormally large amount of traffic to an external host.

c)

The instance has been compromised by malware that can be used for DDoS attacks.

d)

The instance is communicating on an unusual protocol and port.

79.

What does the term 'Persistence' indicate in the context of AWS security findings?

a)

An IAM user is launching an EC2 instance despite having no history of doing so.

b)

An IAM user with no prior history of doing so has modified user or resource permissions, security groups, routes, or network ACLs.

c)

Root user credentials were used or S3 block public access was disabled.

d)

CloudTrail logging was disabled or modified, or CloudTrail logs were deleted.

80.

What behavior is indicative of a 'Recon' finding type?

a)

An IAM user has modified user or resource permissions without prior history.

b)

An EC2 instance is showing behavior that suggests a Trojan might be installed.

c)

A host from a known malicious IP address is probing an EC2 instance on a port that’s not blocked by a security group or network ACL.

d)

An IAM user has launched an EC2 instance despite having no history of doing so.

81.

Which finding type suggests that an IAM user has launched an EC2 instance without any prior history of such activity?

a)

Persistence

b)

ResourceConsumption

c)

UnauthorizedAccess

d)

Stealth

82.

What does the 'Stealth' finding type indicate?

a)

An IAM user has launched an EC2 instance without any prior history of such activity.

b)

A possible unauthorized attempt to access your AWS resources via an API call or console login.

c)

Password policy was weakened, CloudTrail logging was disabled or modified, or CloudTrail logs were deleted.

d)

An EC2 instance is showing behavior that suggests a Trojan might be installed.

83.

What is a 'Trojan' finding type associated with in AWS security?

a)

An IAM user with no prior history of doing so has modified user or resource permissions.

b)

An EC2 instance is exhibiting behavior that indicates a Trojan may be installed.

c)

Root user credentials were used or S3 block public access was disabled.

d)

A possible unauthorized attempt to access your AWS resources via an API call or console login.

84.

What does 'UnauthorizedAccess' finding type usually indicate?

a)

An IAM user has modified user or resource permissions without prior history.

b)

An EC2 instance is showing behavior that suggests a Trojan might be installed.

c)

A possible unauthorized attempt to access your AWS resources via an API call or console login.

d)

An IAM user has launched an EC2 instance despite having no history of doing so.

85.

What is the purpose of Amazon Inspector?

a)

To monitor the performance of applications

b)

To look for vulnerabilities on EC2 instances

c)

To manage user access and permissions

d)

To store data in the cloud

86.

Which of the following is NOT one of the five rules packages offered by Amazon Inspector?

a)

Common Vulnerabilities and Exposures

b)

Security Best Practices

c)

Runtime Behavior Analysis

d)

Data Encryption Standards

87.

What does the Runtime Behavior Analysis rules package detect?

a)

Use of insecure client and server protocols

b)

Network configurations that make resources in your VPC vulnerable

c)

Security best practices for Linux and Windows operating system configurations

d)

Performance metrics of EC2 instances

88.

What kind of threats does GuardDuty look for compared to Amazon Inspector?

a)

Vulnerabilities on EC2 instances

b)

Security threats by inspecting network traffic to and from instances

c)

Insecure permissions on system directories

d)

Use of insecure client and server protocols

89.

What severity level should be resolved immediately according to Amazon Inspector?

a)

Low

b)

Medium

c)

High

d)

Informational

90.

What does a finding with a severity level of 'Informational' indicate in Amazon Inspector?

a)

The issue should be resolved at your convenience.

b)

The issue should be resolved immediately.

c)

The issue should be resolved at the next possible opportunity.

d)

A security configuration detail that isn't likely to result in your system being compromised.

91.

What is required to be enabled for Amazon Detective to function?

a)

VPC flow logs

b)

CloudTrail

c)

GuardDuty

d)

AWS Config

92.

What is the purpose of Amazon Detective?

a)

To automatically resolve security vulnerabilities.

b)

To create new AMIs from instances.

c)

To help correlate events and investigate activities against AWS resources.

d)

To increase the availability of information.

93.

What is the purpose of Security Hub in AWS?

a)

To provide a user-friendly dashboard for tracking application performance

b)

To serve as a one-stop shop for the security status of your entire AWS environment

c)

To manage network access to and from AWS resources

d)

To create custom fraud-detection engines

94.

Which AWS service allows you to create custom fraud-detection engines?

a)

Security Hub

b)

AWS Audit Manager

c)

Amazon Fraud Detector

d)

Protecting Network Boundaries

95.

What does Amazon Fraud Detector use to establish a normal baseline?

a)

Network configurations

b)

Machine learning

c)

User-defined security rules

d)

Predefined security templates

96.

What does AWS Audit Manager help with?

a)

It helps in tracking application performance metrics.

b)

It assists in creating user-friendly security dashboards.

c)

It is a tool for assessing your controls and generating audit reports.

d)

It provides a defense against attacks on network boundaries.

97.

What is the primary defense against attacks in AWS according to the text?

a)

Machine learning algorithms

b)

User-friendly dashboards

c)

The network

d)

Custom fraud-detection engines

98.

What do Network ACLs define within a VPC?

a)

The type of traffic that can access the Internet Gateway

b)

What traffic is allowed to and from a subnet

c)

The security protocols for AWS resources

d)

The list of instances and elastic load balancer listeners

99.

What is the purpose of a VPC's Internet Gateway?

a)

To monitor HTTP and HTTPS requests to an application

b)

To provide a target for route tables

c)

To allow resources in the VPC to access the Internet

d)

To protect against DDoS attacks

100.

What does AWS WAF primarily protect against?

a)

Unauthorized access to route tables

b)

DDoS attacks on Internet-facing applications

c)

Denial of service and unauthorized access to your application

d)

Traffic that does not comply with the route table