Courseiva

AWS Certified Security - Specialty (SCS-C03) — Questions 175

99 questions total · 2pages · All types, answers revealed

Page 1 of 2

Page 2
1
Multi-Selecthard

An organization is deploying a multi-tier application. Which TWO of the following configurations are required to ensure that the backend application tier in a private subnet can securely communicate with an RDS database instance while preventing direct internet access?

Select 2 answers
A.Configure the RDS Security Group to allow inbound traffic on the database port from the Application Security Group ID.
B.Attach an Internet Gateway to the route table associated with the private subnet containing the RDS instance.
C.Configure the RDS Security Group to allow inbound traffic from the CIDR block of the VPC.
D.Deploy the RDS instance in a private subnet and ensure no route to the Internet Gateway exists.
E.Enable Public Accessibility on the RDS instance to allow the Application tier to resolve the endpoint.
AnswersA, D

Referencing the Security Group ID of the application tier is the most secure method for allowing traffic. It avoids relying on IP addresses, which can change in dynamic environments. This ensures that only resources associated with the application tier can reach the database, effectively isolating the database from unauthorized network segments.

Why this answer

Proper infrastructure security relies on network isolation through private subnets and restrictive Security Group rules. By placing the RDS instance in a private subnet and configuring the application tier's security group to only permit inbound traffic on the database port from the application tier's specific security group, you minimize the attack surface. This defense-in-depth approach ensures lateral movement is blocked even if one tier is compromised.

2
Multi-Selecthard

A large enterprise wants to implement SAML 2.0-based federation to allow employees to access the AWS Management Console using their existing corporate credentials. Which TWO steps are required to establish this trust relationship and enable user access?

Select 2 answers
A.Create an IAM SAML identity provider in the AWS account using the metadata document provided by the corporate IdP.
B.Configure the corporate IdP to send SAML assertions that include the 'Role' and 'RoleSessionName' attributes.
C.Install the AWS CLI on each employee's local machine and configure it with their corporate username and password.
D.Enable Multi-Factor Authentication (MFA) on the AWS root user to allow SAML assertions to be processed securely.
E.Create individual IAM users for every employee and map them to their corresponding corporate identities using tags.
AnswersA, B

The IAM SAML identity provider is a resource that tells AWS about your external IdP. By uploading the XML metadata document from your IdP, AWS can verify the digital signatures on SAML assertions sent by your organization. This is the foundational step for establishing the cryptographic trust between both parties.

Why this answer

Establishing SAML federation requires a mutual trust between the Identity Provider (IdP) and AWS. This involves exchanging metadata and mapping SAML attributes to AWS IAM roles. These steps ensure that AWS can verify the identity of the incoming user and assign them the correct permissions based on their corporate group membership.

3
MCQmedium

An organization wants to rotate their KMS customer-managed keys every 90 days. What is the most effective way to implement this?

A.Modify the KMS key's rotation policy to 90 days.
B.Use an AWS Lambda function to trigger the rotation of the KMS key backing material.
C.Perform manual key rotation by creating a new key every 90 days.
D.Use AWS Secrets Manager to rotate the KMS key every 90 days.
AnswerC

Since automatic rotation is fixed at 365 days, manual rotation is the only way to satisfy a 90-day requirement. This involves creating a new KMS key, updating application references, and retaining the previous key for decryption of legacy data, ensuring compliance with internal security policies.

Why this answer

AWS KMS automatic rotation occurs every 365 days and cannot be configured for a 90-day interval. To meet a 90-day requirement, the organization must perform manual rotation. This involves creating a new key, updating the application's key ID configuration (or using an alias), and keeping the old key active only for decrypting existing data, which is a standard procedure for strict compliance.

4
Multi-Selectmedium

During a security incident involving suspected data exfiltration from an S3 bucket, which THREE sources provide the most relevant telemetry to determine what files were accessed?

Select 3 answers
A.CloudTrail Data Events
B.VPC Flow Logs
C.AWS WAF Logs
D.S3 Server Access Logs
E.AWS Trusted Advisor reports
AnswersA, B, D

CloudTrail Data Events capture object-level API operations like GetObject, PutObject, and DeleteObject. These logs are crucial for identifying exactly which files were accessed or modified by an attacker, as standard management events do not track data-plane operations for S3 buckets.

Why this answer

Determining S3 data access requires combining different logging layers. S3 Server Access Logs provide basic request data, while CloudTrail Data Events provide granular information about specific object-level API calls. VPC Flow Logs are essential if the access was routed through a VPC endpoint.

Using these three sources allows the investigator to correlate network traffic with specific identity-based API requests, providing a comprehensive view of the exfiltration activity.

5
MCQhard

Your company has a multi-account environment managed by AWS Organizations. A security incident reveals that a member account has been compromised. You must prevent the attacker from disabling CloudTrail or deleting logs in that account while maintaining central visibility. What is the most effective approach?

A.Create an IAM policy in the compromised account to deny CloudTrail deletion.
B.Use an Service Control Policy (SCP) to deny CloudTrail and log deletion.
C.Use AWS Config Rules to automatically re-enable CloudTrail if disabled.
D.Enable S3 Object Lock in compliance mode for all log buckets.
AnswerB

SCPs are applied at the Organization or OU level and restrict the permissions of all principals, including administrators within member accounts. By applying an SCP that denies 'cloudtrail:StopLogging' and 's3:DeleteObject', you create a mandatory guardrail that the compromised local administrator cannot override, ensuring logs are preserved for investigation.

Why this answer

Implementing an SCP at the Organizational Unit level is the most effective way to enforce security guardrails that cannot be circumvented by account administrators. By explicitly denying the ability to modify CloudTrail or S3 logging buckets, you ensure that the audit trail remains intact regardless of the level of access the attacker gains within the member account, thereby preserving forensic integrity across the enterprise environment.

6
Multi-Selecthard

Which THREE actions are best practices for managing root user account security? (Select THREE)

Select 3 answers
A.Enable multi-factor authentication (MFA) on the root account.
B.Store the root access keys in a secure, encrypted S3 bucket.
C.Use the root account for daily administrative tasks to simplify management.
D.Delete the root access keys and do not create new ones.
E.Set up a strong password and rotate it at least once every 90 days.
AnswersA, D, E

MFA is the most critical defense against compromised root credentials. Without MFA, a leaked password grants full control over the AWS account. Requiring a hardware or virtual MFA device adds a necessary layer of protection, ensuring that even if the password is stolen, the attacker cannot access the account.

Why this answer

The root user has unrestricted access to all resources. Therefore, it must be protected with the highest level of security. Enabling MFA, deleting access keys, and avoiding day-to-day tasks are essential.

These actions minimize the risk of a full account takeover. By following these, you ensure that the root account is reserved for critical tasks like closing the account or managing specific billing configurations that cannot be delegated through IAM.

7
MCQeasy

A company wants to aggregate security findings from AWS GuardDuty, AWS Inspector, and AWS Macie into a single dashboard for prioritized viewing. Which service should be used to provide this consolidated view of security alerts?

A.Amazon CloudWatch ServiceLens
B.AWS Security Hub
C.AWS Trusted Advisor
D.AWS Config Aggregator
AnswerB

Security Hub acts as a central repository for security findings from various AWS services and partner tools. It automatically normalizes finding data into the AWS Security Finding Format (ASFF), allowing security teams to analyze and respond to threats more efficiently across multiple accounts and regions.

Why this answer

AWS Security Hub is the primary service for aggregating, organizing, and prioritizing security findings from multiple AWS services. It provides a comprehensive view of the security state of an AWS environment by collecting data from GuardDuty, Inspector, Macie, and third-party products, facilitating a more effective incident response and compliance monitoring process.

8
Multi-Selectmedium

An organization is using Amazon Macie to protect sensitive data in S3. They want to ensure they are alerted to the presence of PII across all buckets. Which TWO actions are required to configure Macie to identify sensitive data effectively?

Select 2 answers
A.Create a sensitive data discovery job to scan the S3 buckets, specifying the depth and frequency of the analysis.
B.Enable the Macie service-linked role in IAM to allow the service to access and analyze objects in the S3 buckets.
C.Install the Macie agent on all EC2 instances that write data to the S3 buckets to classify data in real-time.
D.Configure S3 Event Notifications to send every new object to a Lambda function that calls the Macie 'ScanObject' API.
E.Enable S3 Object Lock on all buckets to allow Macie to generate findings without the risk of data being deleted during a scan.
AnswersA, B

A discovery job is the mechanism Macie uses to inspect objects in S3. You can configure it to run once or on a recurring basis, and you can define which buckets to include. This job performs the actual analysis of the data against managed or custom data identifiers.

Why this answer

Amazon Macie requires both a discovery job and the proper permissions to analyze data. Discovery jobs allow you to define the scope and frequency of the scan, while the service-linked role ensures Macie has the necessary access to read the objects in your S3 buckets for analysis and classification.

9
MCQmedium

An incident response team discovers an unauthorized IAM user created an access key in a production environment. The team must identify the exact time of key creation and the IP address used for the call. Which AWS service provides this forensic detail?

A.AWS Config
B.Amazon GuardDuty
C.AWS CloudTrail
D.AWS CloudWatch Metrics
AnswerC

CloudTrail maintains a complete history of AWS API calls made by users, roles, or services. By querying CloudTrail event logs via CloudWatch Logs Insights or Athena, investigators can pinpoint the exact timestamp, user identity, and source IP address associated with the specific IAM access key creation event.

Why this answer

AWS CloudTrail is the primary service for auditing API calls within an AWS account. It logs the identity of the caller, the time of the event, the source IP address, and the specific request parameters. In incident response, CloudTrail is critical for reconstructing a timeline of events and determining the scope of unauthorized access, ensuring that remediation efforts are targeted and effective based on accurate forensic data.

10
MCQhard

Refer to the exhibit. The log entry shows a denied 'DeleteTable' attempt. Which service, if configured, would have automatically triggered an alert based on this specific log entry?

A.Amazon GuardDuty.
B.Amazon CloudWatch Metric Filters and Alarms.
C.AWS Security Hub.
D.AWS Trusted Advisor.
AnswerB

CloudWatch Metric Filters allow users to search CloudTrail logs for specific patterns, such as denied API calls. Once a pattern is matched, a metric can be incremented and an alarm can be configured to notify security personnel, providing an automated way to detect high-risk denied actions.

Why this answer

This log entry represents an unauthorized attempt to modify critical infrastructure. To alert on this, one must integrate CloudTrail with Amazon CloudWatch Logs and establish a Metric Filter that matches the 'Denied' status and the 'DeleteTable' action. This pattern is essential for incident response, as it allows security teams to distinguish between accidental user error and potential malicious reconnaissance or destructive intent by an insider.

11
MCQmedium

A company wants to implement a governance strategy that prevents any member account in the organization from disabling CloudTrail or deleting the organization-level trail. What is the most effective way to implement this while allowing account administrators to manage their own local resources?

A.Create an IAM role in each member account that only the security team can assume to manage CloudTrail.
B.Enable AWS Config in all accounts and create a custom rule to restart CloudTrail if it is stopped.
C.Enable an organization trail in the management account and apply an SCP to deny CloudTrail modification in member accounts.
D.Use AWS CloudFormation StackSets to deploy a local trail in each account with a strict resource-based policy.
AnswerC

Creating a trail at the organization level ensures uniform logging across all accounts. The SCP provides the necessary guardrail by explicitly denying destructive actions on CloudTrail resources for all principals in member accounts. This ensures that the audit trail remains active and protected from unauthorized changes throughout the organization.

Why this answer

To maintain governance in a multi-account environment, organizational trails should be used. By creating the trail at the organization level, it is automatically deployed to all accounts. Combining this with a Service Control Policy (SCP) that denies 'cloudtrail:StopLogging' and 'cloudtrail:DeleteTrail' ensures that member accounts cannot tamper with the audit logs, providing immutable governance across the enterprise.

12
MCQhard

A financial institution requires that all data stored in S3 buckets be immutable for five years to comply with regulatory requirements. They also need to ensure that even the root user cannot delete the data or shorten the retention period. Which configuration should the security engineer implement?

A.Enable S3 Versioning and implement an S3 Lifecycle policy to transition objects to Glacier Deep Archive with a five-year expiration rule.
B.Enable S3 Object Lock on the bucket and set a Default Retention period of five years using Governance mode.
C.Enable S3 Object Lock on the bucket and set a Default Retention period of five years using Compliance mode.
D.Apply a Bucket Policy with a Deny effect on the s3:DeleteObject action for all principals, including a condition that checks the current date.
AnswerC

Compliance mode ensures that an object cannot be deleted or its retention settings modified by any user, including the AWS account root user. This mode is specifically designed for environments where strict data integrity and non-rewriteable, non-erasable storage are required for a fixed period to satisfy legal mandates.

Why this answer

S3 Object Lock in Compliance mode provides the strongest immutability guarantee by preventing any user, including the root user, from deleting objects or reducing the retention period. This is essential for meeting strict regulatory requirements like SEC Rule 17a-4. Using Compliance mode ensures that the protection remains absolute throughout the entire specified duration.

13
MCQmedium

During an investigation into an EC2 instance compromise, a security analyst needs to understand the relationship between different AWS resources, such as which IAM roles were used and which IP addresses interacted with the instance. Which service should the analyst use to perform this graph-based investigation?

A.Amazon CloudWatch Logs Insights
B.AWS CloudTrail
C.Amazon Detective
D.AWS Security Hub
AnswerC

Amazon Detective simplifies the investigation process by aggregating data from CloudTrail, VPC Flow Logs, and GuardDuty. It creates a unified, interactive view that shows how resources interact over time, helping analysts quickly identify the scope and impact of a potential security incident.

Why this answer

Amazon Detective automatically collects log data from AWS resources and uses machine learning, statistical analysis, and graph theory to build a linked data set. This allows analysts to visualize and investigate the root cause of security findings by exploring the relationships and activities between users, roles, and IP addresses.

14
MCQeasy

A company wants to eliminate the need for managing SSH keys and bastion hosts while still allowing administrators to securely access EC2 instances in private subnets. Which AWS service provides this capability and allows for centralized IAM-based access control?

A.AWS Systems Manager Session Manager
B.Amazon EC2 Instance Connect
C.AWS CloudShell
D.AWS Directory Service
AnswerA

Session Manager allows for secure instance management without bastion hosts. Since it doesn't require inbound ports to be open in security groups, it significantly reduces the attack surface. All sessions are logged to CloudWatch Logs or S3, providing detailed visibility into administrative actions for compliance and security auditing.

Why this answer

AWS Systems Manager Session Manager provides a secure way to manage EC2 instances without needing to open inbound ports like 22 (SSH) or 3389 (RDP). It uses the SSM Agent to establish a secure tunnel, and access is controlled entirely through IAM policies, providing a robust audit trail of all commands.

15
MCQmedium

A security engineer needs to ensure that all EC2 instances are patched against critical vulnerabilities without exposing them to the public internet. Which architecture is most appropriate for this task?

A.Deploy a NAT Gateway in a public subnet to allow outbound traffic for patching.
B.Use Systems Manager with VPC endpoints to manage instances in a private subnet.
C.Enable public IP addresses on instances and use Security Groups to restrict outbound traffic.
D.Manually download patches to an S3 bucket and have instances pull them locally.
AnswerB

VPC endpoints for Systems Manager allow private communication between your EC2 instances and the SSM service. This eliminates the need for an IGW or NAT Gateway, keeping instance traffic entirely off the public internet. This architecture perfectly satisfies the requirement for security and patch management in a restricted network environment.

Why this answer

Using a combination of AWS Systems Manager (SSM) and a VPC endpoint for SSM enables management of instances in private subnets without an Internet Gateway or NAT Gateway. This setup allows the SSM agent to communicate with the AWS Systems Manager service securely over the internal AWS network. This is the optimal infrastructure security design for maintaining patching compliance while adhering to strict network isolation requirements.

16
MCQeasy

Which AWS IAM best practice ensures that users have only the permissions necessary to perform their specific business roles?

A.Assign the 'AdministratorAccess' policy to all users.
B.Apply the Principle of Least Privilege.
C.Use only root account credentials for all tasks.
D.Allow all traffic in Security Groups.
AnswerB

This principle is the cornerstone of IAM security. By granting only the specific permissions needed for a job, you limit the potential for error and malicious activity. This approach is standard for all security governance frameworks, ensuring that every identity is constrained to its legitimate scope of operation.

Why this answer

The 'Principle of Least Privilege' is the foundational concept in security governance. By ensuring that identities are granted the minimum level of access required to complete their tasks, organizations significantly reduce the blast radius if an account is compromised. This strategy prevents lateral movement and unauthorized data access, creating a much more resilient environment where security controls are proportional to the user's operational needs.

17
Multi-Selecthard

A security architect is designing a cross-account data sharing solution. Account A owns a KMS Customer Managed Key (CMK) that must be used by an IAM role in Account B to decrypt S3 objects. Which TWO steps are required to enable this cross-account access?

Select 2 answers
A.Modify the KMS key policy in Account A to grant the IAM role in Account B permission to use the key.
B.Attach an IAM policy to the role in Account B that allows the 'kms:Decrypt' action on the Key ARN in Account A.
C.Create a VPC Peering connection between Account A and Account B to allow KMS traffic.
D.Configure the IAM role in Account B to assume a role in Account A that has KMS permissions.
E.Enable 'KMS Multi-Region' support on the key in Account A to allow it to be seen by Account B.
AnswersA, B

The key policy is the primary gatekeeper for a KMS key. For cross-account access, the key policy in the owning account must explicitly allow the external account (or a specific principal in that account) to perform cryptographic operations. Without this explicit grant, AWS identity-based policies in Account B will have no effect.

Why this answer

Cross-account access to a KMS key requires permissions to be granted in two places: the key policy (resource-based) and the IAM policy (identity-based). The key owner must trust the external account in the key policy, and the external account's administrator must then grant specific users or roles permission to use that key.

18
Multi-Selecteasy

A security engineer is using Service Control Policies (SCPs) to manage permissions across an AWS Organization. Which TWO statements accurately describe the behavior and limitations of SCPs?

Select 2 answers
A.SCPs can grant permissions to an IAM user that hasn't been given access by an identity-based policy.
B.SCPs affect all users and roles in the member account, including the account's root user.
C.SCPs are applied to the management account of the organization to restrict its own administrator activities.
D.An explicit Deny in an SCP overrides any Allow in an IAM policy within the member account.
E.SCPs are used to manage resource-level permissions for cross-account access between different organizations.
AnswersB, D

Unlike identity-based policies which do not apply to the root user, SCPs explicitly restrict the root user of a member account. This makes them an extremely powerful tool for enforcing organizational security standards and preventing even administrative users from performing prohibited actions.

Why this answer

SCPs are a key component of AWS Organizations for implementing guardrails across multiple accounts. They do not grant permissions but define the maximum available permissions for IAM users and roles within the targeted accounts. Understanding how SCPs interact with identity-based and resource-based policies is essential for maintaining a secure and compliant multi-account environment.

19
Multi-Selecthard

A security engineer is troubleshooting an IAM policy evaluation issue where an explicit deny statement inside a permissions boundary is failing to restrict permissions as expected for a developer role. Which TWO factors must the engineer verify during the evaluation process?

Select 2 answers
A.Verify whether the attached identity-based policy contains an explicit deny that overrides the permissions boundary constraints.
B.Confirm that the evaluated request is not using AWS account root user credentials, as permissions boundaries do not apply to the root user.
C.Check if an active service control policy in the organization enables permissions boundaries to be bypassed for trusted administrative roles.
D.Ensure that the principal is not performing an action that is exempted from permissions boundaries, such as setting up specific IAM policies.
E.Verify that the request is not originating from a trusted service making service-linked role calls that inherently bypass permissions boundaries.
AnswersB, E

Permissions boundaries can be applied to IAM users and roles, but they cannot restrict the AWS account root user. If testing is inadvertently performed using root credentials, permissions boundaries and their contained denies will be completely ignored.

Why this answer

Understanding IAM evaluation logic is critical for debugging complex access control models. Permissions boundaries limit the maximum permissions an IAM entity can have, but they do not grant permissions on their own. Explicit denies anywhere in the evaluation chain will always take precedence over allows.

20
MCQmedium

A company is implementing a new internal web application and needs to use SSL/TLS certificates. Due to regulatory requirements, the certificates must be issued by a private Certificate Authority (CA) managed by the company, rather than a public CA. Which AWS service should be used to meet this requirement?

A.AWS Private Certificate Authority (AWS Private CA)
B.AWS Certificate Manager (ACM) with public certificates.
C.AWS CloudHSM to store and manage the private keys of the web application.
D.AWS Secrets Manager to store and rotate the SSL/TLS certificates.
AnswerA

AWS Private CA is the correct service for managing a private CA hierarchy. It allows you to issue and revoke certificates that are trusted within your organization but not by the public internet. It integrates with ACM, making it easy to deploy these private certificates to resources like Load Balancers.

Why this answer

AWS Private Certificate Authority (AWS Private CA) allows organizations to create a private CA hierarchy and issue certificates for internal use. This is essential for securing communication between internal services, devices, and users where a public trust chain is not required or is explicitly prohibited by security policies.

21
MCQmedium

A security team needs to identify which IAM users have not used their credentials for more than 90 days. Which service should be used to provide this information?

A.AWS CloudTrail.
B.IAM Credential Report.
C.AWS Config.
D.AWS Trusted Advisor.
AnswerB

The IAM Credential Report generates a report that lists all users and includes fields like 'password_last_used' and 'access_key_1_last_used'. This is the most direct and efficient way to identify users who haven't performed any actions in a specific time frame for compliance auditing.

Why this answer

IAM credential reports are the standard way to audit account security. They provide a comprehensive, comma-separated file that contains information about all users in the account and the status of their credentials, including password, access keys, and MFA status. This is critical for security hygiene and compliance, as it allows administrators to proactively disable or remove stale accounts, reducing the risk of unauthorized access via forgotten credentials.

22
MCQmedium

A security engineer needs to detect if any EC2 instances in an account have been launched with a public IP address. Which service should be used to automate this detection?

A.AWS CloudTrail.
B.AWS Config.
C.Amazon GuardDuty.
D.AWS Systems Manager.
AnswerB

AWS Config provides managed rules that continuously monitor resource configurations. By evaluating instances against the 'ec2-instance-no-public-ip' rule, it can automatically detect and alert on any instance that has an assigned public IP, fulfilling the requirement for automated detection of network exposure.

Why this answer

AWS Config is a powerful tool for enforcing compliance with infrastructure policies. By using managed rules like 'ec2-instance-no-public-ip', the engineer can automatically flag any instance that violates the policy. This is a critical detective control for preventing unauthorized network exposure, enabling the team to remediate the violation before a security incident occurs, which is essential for maintaining a hardened, private-by-default cloud environment.

23
MCQhard

A security engineer needs to identify and protect Personally Identifiable Information (PII) stored in thousands of S3 buckets across multiple AWS accounts. The solution must provide a centralized dashboard and use machine learning to classify data. Which service is best suited for this task?

A.Amazon Macie
B.Amazon GuardDuty
C.AWS Glue DataBrew
D.AWS Security Hub
AnswerA

Amazon Macie is specifically designed for S3 data discovery and classification. It uses machine learning to identify sensitive data like credit card numbers or names. Macie integrates with AWS Organizations, allowing a security hub account to manage discovery jobs across thousands of buckets and accounts from a single centralized dashboard.

Why this answer

Amazon Macie is a fully managed data security and data privacy service that uses machine learning and pattern matching to discover and protect sensitive data in Amazon S3. Macie automatically provides an inventory of S3 buckets and can be configured to scan objects for PII, providing a centralized view of data risks.

24
MCQmedium

A security engineer wants to enable manual remediation of Security Hub findings directly from the AWS console. They want to be able to select a finding and trigger a specific Lambda function to isolate an instance. What is the correct way to configure this?

A.Create a Security Hub Custom Action and an EventBridge rule that triggers the Lambda function based on the Action ID.
B.Use the Security Hub 'Auto-Remediate' feature to link a finding type directly to a Lambda function.
C.Configure a CloudWatch Alarm to monitor Security Hub findings and trigger an SNS topic for remediation.
D.Enable the 'Remediation' standard in Security Hub and select the 'Isolate EC2' managed rule.
AnswerA

Custom Actions provide a way to integrate human-led decisions into automated workflows. By defining a custom action in Security Hub, you create a target for findings. When triggered, the finding is sent to EventBridge, which then invokes the Lambda function to perform the isolation.

Why this answer

Security Hub Custom Actions allow users to create custom response and remediation workflows. When a custom action is triggered by a user in the console, Security Hub sends the selected finding(s) to Amazon EventBridge. An EventBridge rule then matches the custom action ARN and triggers the associated Lambda function.

25
Multi-Selecthard

A company wants to implement a robust governance framework for their AWS accounts using AWS Control Tower. They need to ensure that specific security guardrails are applied to their 'Financial-Apps' Organizational Unit (OU). Which TWO types of guardrails can be applied within Control Tower?

Select 2 answers
A.Preventive guardrails using Service Control Policies (SCPs).
B.Detective guardrails using AWS Config rules.
C.Reactive guardrails using AWS Systems Manager Automation documents.
D.Proactive guardrails using IAM Permission Boundaries.
E.Administrative guardrails using AWS IAM Identity Center (Succeeded AWS SSO).
AnswersA, B

Preventive guardrails in Control Tower use SCPs to enforce policies by preventing actions that violate compliance. For example, a preventive guardrail might stop users from deleting log archives or changing critical network settings. These are enforced at the organization level and cannot be bypassed by local account administrators.

Why this answer

AWS Control Tower provides two types of guardrails: preventive and detective. Preventive guardrails are implemented using Service Control Policies (SCPs) to block unauthorized actions. Detective guardrails are implemented using AWS Config rules to monitor and alert on non-compliant resource configurations.

Together, they provide a comprehensive governance layer for managing account compliance and security.

26
MCQmedium

A company is experiencing a high volume of SQL injection attempts against its web application. The application is behind an Application Load Balancer (ALB). The security team wants to block these attacks while ensuring that legitimate traffic containing technical documentation (which may include SQL-like snippets) is not accidentally blocked. What is the best approach?

A.Enable the AWS Managed Rules SQL database rule set and immediately set the action to Block.
B.Create a custom WAF rule with a regex pattern for SQL keywords and apply it to the ALB.
C.Deploy the SQLi managed rule in Count mode, analyze the logs, and then apply a scope-down statement to exclude specific documentation paths.
D.Use a Network ACL to block the source IP addresses of the attackers identified in the ALB access logs.
AnswerC

Using Count mode allows the team to monitor which requests would have been blocked without impacting users. By analyzing WAF logs, they can identify legitimate documentation paths that trigger the rule and use scope-down statements to exempt those specific paths, ensuring high security with minimal false positives.

Why this answer

AWS WAF Managed Rules provide robust protection against common threats like SQL injection. However, to avoid false positives on legitimate technical content, running rules in 'Count' mode first allows for analysis of the impact. Once legitimate patterns are identified, exclusions or scope-down statements can be implemented before switching the rule to 'Block' mode.

27
MCQmedium

An organization is using AWS Secrets Manager to store database credentials. The security policy requires that these credentials be rotated every 30 days. The database is hosted on Amazon RDS. What is the most secure and automated way to implement this requirement?

A.Enable rotation in Secrets Manager and use a provided Lambda template to update the RDS credentials.
B.Use an Amazon EventBridge rule to trigger a manual password reset on the RDS instance every 30 days.
C.Store the credentials in an S3 bucket with versioning and use a Lifecycle policy to rotate the files.
D.Configure the RDS instance to automatically pull new credentials from Secrets Manager using IAM roles.
AnswerA

Using the built-in Secrets Manager rotation feature with a Lambda function is the AWS-recommended approach. The Lambda function handles the multi-step rotation process, which includes creating a new secret version, updating the database password, and testing the new credentials before finalizing the rotation to prevent application downtime.

Why this answer

AWS Secrets Manager integrates directly with Lambda to automate the rotation of secrets. For supported services like Amazon RDS, AWS provides pre-written Lambda templates that handle the complex logic of updating the password in the database and the secret value in Secrets Manager simultaneously, ensuring no service interruption occurs during the process.

28
MCQhard

Refer to the exhibit. An incident responder needs to access the production-data bucket to investigate a breach. They apply this policy to their IAM user, but get 'Access Denied' when running 'aws s3 ls s3://production-data'. Why?

A.The user is missing the 's3:GetObject' permission.
B.The policy is missing the 'kms:Decrypt' permission for encrypted objects.
C.The resource ARN is incorrectly formatted for S3.
D.The user needs the 's3:PutObject' permission to list files.
AnswerB

If the bucket uses SSE-KMS, the user requires the 'kms:Decrypt' permission on the specific key used to encrypt the data. Without this permission, the S3 service cannot decrypt the bucket metadata required to list the objects, causing the command to fail with an Access Denied error.

Why this answer

The policy provided only grants the 's3:ListBucket' permission, which allows the user to see the objects within the bucket. However, the 'aws s3 ls' command often requires additional permissions, such as 's3:GetBucketLocation' or 's3:ListBucket'. More importantly, if the bucket is encrypted with a KMS key, the user must also have 'kms:Decrypt' permissions, which are absent here.

This is a common stumbling block in granular IAM policy management.

29
MCQmedium

Refer to the exhibit. An IAM user with the 'Finance' tag is trying to upload an object to the 'production-data' bucket. The upload is failing. What is the most likely cause?

A.The user is missing the required S3 permission in their IAM policy.
B.The user does not have the 'Department' tag attached to their IAM principal.
C.The S3 bucket policy is not allowing the action.
D.The S3 bucket is in a different AWS region.
AnswerB

The Condition uses StringNotEquals. If the tag is missing, the condition evaluates to true for the Deny, because 'null' is not equal to 'Finance'. Therefore, the Deny policy takes effect. ABAC implementations often fail when principals lack the necessary tags required by the policy logic, resulting in unexpected access denial.

Why this answer

The policy uses a Deny effect with a StringNotEquals condition. If the principal tag 'Department' is anything other than 'Finance', the action is denied. However, if the user's tag is missing or the principal does not have the expected tag during the request, the condition evaluates to true, triggering the Deny.

This exhibit highlights how attribute-based access control (ABAC) relies heavily on accurate, consistent tagging across all principal entities.

30
MCQeasy

Which AWS service is best suited for providing a comprehensive, searchable audit trail of every API call made in an AWS account?

A.Amazon CloudWatch Logs
B.AWS CloudTrail
C.AWS Config
D.AWS Systems Manager
AnswerB

CloudTrail is specifically designed to log all API calls made within an AWS account. It records the identity of the caller, the time of the call, the source IP, and the request parameters, providing a complete audit trail that is essential for security auditing and operational troubleshooting.

Why this answer

AWS CloudTrail is the definitive service for tracking user activity and API usage. By recording events as log files, it provides an immutable history of actions taken by users, roles, or services. This is a foundational governance requirement, as it allows security teams to reconstruct events during investigations, verify identity actions, and comply with regulatory requirements regarding data access and infrastructure modifications.

31
MCQeasy

Which AWS service uses machine learning to detect unusual activity, such as unauthorized access to S3 buckets or atypical API calls?

A.AWS Macie.
B.AWS GuardDuty.
C.AWS WAF.
D.AWS CloudTrail.
AnswerB

GuardDuty uses machine learning, anomaly detection, and integrated threat intelligence to monitor and protect AWS accounts. It is specifically designed to identify anomalous activity, such as unusual API calls or unauthorized access to sensitive resources like S3 buckets, based on baseline behavioral patterns.

Why this answer

AWS GuardDuty is an intelligent threat detection service that continuously monitors for malicious or unauthorized behavior. It leverages machine learning to analyze CloudTrail events, VPC Flow Logs, and DNS logs. This is essential for organizations because it identifies threats without requiring the management of complex rule sets, helping teams respond quickly to compromised accounts or malicious instances within the environment.

32
Multi-Selectmedium

A company is setting up SAML 2.0 federation to allow employees to log into the AWS Management Console using their corporate credentials. Which TWO components are required to establish this trust relationship in AWS?

Select 2 answers
A.An IAM User with programmatic access keys for the Identity Provider.
B.A CloudFront distribution to cache the SAML assertion responses.
C.An IAM SAML Identity Provider entity created in the AWS account.
D.An Amazon Cognito User Pool to store the federated user profiles.
E.An IAM Role with a trust policy that allows the 'sts:AssumeRoleWithSAML' action.
AnswersC, E

You must create a SAML Identity Provider entity in IAM to establish the trust between your AWS account and your external IdP. This entity is configured by uploading the SAML metadata document provided by your IdP, which contains the public keys and endpoints needed for secure communication.

Why this answer

SAML 2.0 federation allows users to use their existing corporate credentials to access the AWS Management Console. This centralizes identity management and reduces the need for multiple sets of credentials. Configuring the trust relationship involves exchanging metadata between the Identity Provider and AWS, ensuring that the assertion contains the necessary attributes for role mapping and session management.

33
MCQmedium

A security engineer must protect a multi-tier web application hosted in Amazon EC2 instances inside a private subnet. The application requires outbound internet access to download software updates, but malicious actors must never be able to initiate inbound connections to the instances. Which architecture satisfies these requirements securely?

A.Attach an Elastic IP directly to each EC2 instance and remove the default route pointing to the internet gateway in the route table.
B.Deploy an Internet Gateway in the private subnet and associate it with the route table used by the application instances.
C.Provision a NAT Gateway in a public subnet, and configure the private subnet route table to direct 0.0.0.0/0 traffic to that NAT Gateway.
D.Configure a VPC endpoint for every external repository and remove all internet route entries from the VPC route tables entirely.
AnswerC

NAT Gateways allow private instances to send outbound requests to the internet for updates while blocking all unsolicited inbound connection attempts. This architecture maintains strict workload isolation while fulfilling operational update prerequisites safely.

Why this answer

Routing outbound traffic through a NAT Gateway ensures that instances can initiate communication with external endpoints while remaining entirely unreachable from the outside. NAT Gateways do not support inbound traffic initiation, providing a robust boundary. This design prevents direct exposure of private workloads, aligning with defense-in-depth principles for infrastructure security in AWS environments.

34
MCQhard

An organization is running critical workloads on Amazon EKS and wants to detect suspicious activity at the container runtime level, such as unauthorized process execution or unexpected file access. Which GuardDuty feature should be enabled to achieve this level of visibility?

A.GuardDuty EKS Audit Log Monitoring
B.GuardDuty Runtime Monitoring
C.Amazon Inspector Container Scanning
D.VPC Traffic Mirroring for EKS Worker Nodes
AnswerB

Runtime Monitoring uses a security agent to collect telemetry from individual containers and the underlying host. It identifies malicious behavior by monitoring system calls, providing detection for threats like crypto-mining, reverse shells, and privilege escalation that happen during the execution phase of a container.

Why this answer

GuardDuty Runtime Monitoring for EKS provides deep visibility into container-level activities. It uses a lightweight agent (GuardDuty security agent) deployed as a DaemonSet to monitor system calls and process execution. This allows GuardDuty to detect threats that occur within the container itself, which standard VPC Flow Logs or CloudTrail cannot see.

35
MCQeasy

According to the AWS Shared Responsibility Model, which of the following security tasks is the sole responsibility of the customer when using Amazon EC2 instances?

A.Patching the underlying virtualization software on the physical host.
B.Maintaining the physical security of the data centers where instances reside.
C.Managing and patching the guest operating system installed on the instance.
D.Disposing of decommissioned physical storage drives in a secure manner.
AnswerC

When a customer launches an EC2 instance, they have full administrative control over the guest operating system. Therefore, the customer is responsible for installing security updates, managing user access, and configuring the OS-level firewall. This is a primary example of security 'in' the cloud.

Why this answer

The Shared Responsibility Model distinguishes between security 'of' the cloud (AWS) and security 'in' the cloud (customer). For infrastructure services like EC2, AWS manages the physical hardware, virtualization layer, and facility security. The customer is responsible for everything from the operating system up, including patching the OS, managing firewall rules, and protecting their data.

36
MCQhard

Refer to the exhibit. A developer is attempting to upload an object to 'my-secure-bucket' using the AWS CLI but receives an 'Access Denied' error. The developer's command was: 'aws s3 cp file.txt s3://my-secure-bucket/file.txt'. What is the most likely cause of the failure?

A.The developer does not have the kms:GenerateDataKey permission for the default KMS key used by the bucket.
B.The developer failed to include the '--sse aws:kms' parameter in the CLI command, violating the bucket policy condition.
C.The bucket policy is missing a 'Sid' (Statement ID) which makes the policy invalid and causes S3 to default to a 'Deny' for all requests.
D.The 'Resource' ARN in the policy is incorrectly formatted because it uses a wildcard, which is not allowed for s3:PutObject actions.
AnswerB

The bucket policy requires the encryption header to be set to 'aws:kms'. By default, the S3 CLI 'cp' command does not add this header. The developer must explicitly specify the server-side encryption method to satisfy the condition in the bucket policy and avoid the Deny effect.

Why this answer

The bucket policy explicitly denies any s3:PutObject request that does not include the SSE-KMS encryption header. The CLI command used by the developer did not specify an encryption method, causing the request to lack the required 's3:x-amz-server-side-encryption' header, which triggered the 'Deny' effect in the bucket policy.

37
Multi-Selectmedium

An organization wants to improve their ability to respond to security incidents. Which TWO of the following services provide centralized visibility and management for security findings?

Select 2 answers
A.AWS Security Hub
B.Amazon Detective
C.Amazon CloudWatch
D.AWS Artifact
E.AWS Systems Manager
AnswersA, B

Security Hub aggregates security findings from across AWS services and partner products into a single location. It provides a centralized view of an organization's security posture and compliance status, which is vital for prioritizing and managing incident response workflows during a security event.

Why this answer

AWS Security Hub and Amazon Detective are designed to aggregate, manage, and investigate security data. Security Hub acts as the central pane of glass for findings from various AWS services, while Detective provides the visualization tools needed to investigate the root cause of those findings. Together, they streamline the identification and triage process, allowing responders to move quickly from alert to conclusion during a security incident.

38
MCQhard

An organization is preparing for a potential incident and wants to ensure that responders can quickly access logs across multiple accounts. Which architecture is recommended for centralized log management?

A.Store logs locally in each account within a private S3 bucket.
B.Aggregate logs into a dedicated, centralized security account.
C.Enable CloudTrail logs to be sent directly to an on-premises SIEM.
D.Use CloudWatch Logs to stream all data to an Amazon OpenSearch cluster.
AnswerB

Centralizing logs into a dedicated account provides an immutable and secure audit trail. By separating the log storage from the production environment, the organization ensures that logs are protected even if an attacker gains administrative privileges within a production account, facilitating faster and more reliable incident investigations.

Why this answer

Creating a dedicated, separate Log Archive account is the industry standard for centralized log management. By aggregating CloudTrail and other logs into a single, hardened account with restricted access, the organization ensures that even if a production account is fully compromised, the audit trail remains secure and available for forensic investigation. This architecture prevents an attacker from destroying the evidence of their actions within the production environments.

39
Multi-Selecthard

A developer in Account A needs to use an AWS KMS customer managed key (CMK) located in Account B to encrypt data. Which TWO configuration steps are necessary to allow this cross-account access?

Select 2 answers
A.The KMS key policy in Account B must grant the developer's IAM ARN in Account A permission to use the key.
B.The developer's IAM policy in Account A must grant permission to use the KMS key ARN from Account B.
C.The developer must assume a role in Account B that has permissions to the KMS key.
D.The KMS key in Account B must be converted to a multi-Region key to be accessible from Account A.
E.An IAM Peering Connection must be established between Account A and Account B.
AnswersA, B

KMS key policies are the primary way to control access to keys. For cross-account access, the policy in the account that owns the key (Account B) must specifically list the external IAM principal from Account A and grant it the necessary actions like 'kms:Encrypt' or 'kms:GenerateDataKey'.

Why this answer

Accessing a KMS key in a different account requires coordination between the IAM policy in the calling account and the key policy in the owning account. KMS is unique because the key policy must explicitly allow the use of the key even if an IAM policy provides permission. This double-check mechanism ensures that key owners maintain strict control over who can decrypt data.

40
MCQmedium

A security engineer is configuring AWS Network Firewall to protect a VPC. They need to implement a rule that inspects the 'Host' header of HTTP traffic to block specific unauthorized domains. Which type of rule group should be used?

A.Stateless rule group with 5-tuple filtering.
B.Stateful rule group with domain list filtering.
C.AWS WAF with a web ACL associated with the VPC.
D.VPC Endpoint Policy associated with an S3 gateway.
AnswerB

Stateful rule groups can be configured with domain lists, which use the Suricata engine to inspect the SNI in TLS handshakes or the Host header in HTTP requests. This allows the firewall to block or allow traffic based on fully qualified domain names (FQDNs) rather than just static IP addresses.

Why this answer

AWS Network Firewall supports both stateless and stateful rule groups. Stateful rule groups use the Suricata compatible engine, which allows for deep packet inspection (DPI) of application-layer protocols like HTTP. This enables the firewall to inspect headers, such as the 'Host' header, to enforce domain-based filtering policies.

41
MCQmedium

A company uses AWS Organizations with all features enabled. A security engineer has applied a Service Control Policy (SCP) at the Organizational Unit (OU) level that explicitly denies the 'iam:CreateUser' action. However, a specific IAM user in a member account within that OU has an administrator policy attached. What is the resulting behavior when this user attempts to create a new IAM user?

A.The user will successfully create the new IAM user because the administrator policy provides full access that overrides the SCP.
B.The request will fail because the SCP acts as a filter that restricts the maximum permissions available to any identity in the account.
C.The request will succeed only if the user uses the AWS Management Console, but it will fail if they use the AWS CLI or SDK.
D.The request will be sent to the master account for approval before the new IAM user is created in the member account.
AnswerB

Service Control Policies establish the permission boundaries for the entire account. Even if a user has an 'Allow' in their identity-based policy, the lack of an 'Allow' in the SCP or an 'Explicit Deny' in the SCP will result in the action being blocked during the evaluation.

Why this answer

In AWS IAM evaluation logic, an explicit deny always overrides any allow, regardless of where the deny is defined. Since SCPs act as a guardrail for the entire account, any action denied at the SCP level cannot be performed by any principal within that account, including those with full administrator privileges.

42
Multi-Selectmedium

An organization wants to enforce encryption at rest for all S3 buckets using AWS Organizations. Which TWO actions should the security team perform to ensure consistent governance?

Select 2 answers
A.Create an SCP that denies s3:PutObject if x-amz-server-side-encryption is not present.
B.Enable S3 Block Public Access on all accounts via AWS Organizations.
C.Deploy an SCP that denies s3:CreateBucket unless the request includes default encryption configuration.
D.Use AWS Trusted Advisor to manually audit all buckets for encryption status.
E.Apply a bucket policy to every S3 bucket in the account.
AnswersA, C

This SCP effectively prevents any user or service from uploading data to S3 without specifying server-side encryption. By denying the write action at the account boundary level, you ensure that even if a bucket policy is missing, the data cannot be stored in an unencrypted state.

Why this answer

Using Service Control Policies (SCPs) allows for the enforcement of security guardrails across an entire organization. By denying the 'PutObject' operation if encryption headers are missing, and creating an SCP to restrict 'CreateBucket' unless encryption is specified, the organization ensures that all new and existing data remains encrypted. This proactive governance approach prevents developers from accidentally launching non-compliant storage resources, effectively maintaining a secure infrastructure footprint.

43
MCQeasy

A company is using AWS IAM Identity Center (successor to AWS Single Sign-On) to manage access to their AWS accounts. They want to automate the process of adding and removing users based on their status in an external identity provider. Which protocol should they use?

A.SAML 2.0 (Security Assertion Markup Language)
B.LDAP (Lightweight Directory Access Protocol)
C.OpenID Connect (OIDC)
D.SCIM (System for Cross-domain Identity Management)
AnswerD

SCIM is an open standard protocol specifically designed to automate the exchange of user identity information between identity domains or IT systems. AWS IAM Identity Center supports SCIM to allow external identity providers like Okta or Azure AD to automatically provision and deprovision users and groups.

Why this answer

AWS IAM Identity Center is the recommended service for managing single sign-on access to AWS accounts and business applications. It provides a centralized place to manage user identities and their access levels. For organizations with existing directories like Active Directory, Identity Center simplifies the process of provisioning users and mapping them to specific permission sets across the entire AWS Organization.

44
MCQmedium

Refer to the exhibit. A security engineer notices that despite the IP restriction, users are still unable to access the S3 bucket from within the corporate network. What is the most likely cause of this issue?

A.The VPC endpoint for S3 is not configured to allow the corporate IP range.
B.The 'Action' element is missing from the policy, causing it to be invalid.
C.The 'aws:SourceIp' condition key is not supported for Amazon S3 bucket policies.
D.The S3 bucket does not have the 'Block Public Access' feature disabled.
AnswerB

The provided JSON is missing the 'Action' key, which is a required component of any IAM policy statement. Without specifying which S3 operations (e.g., s3:GetObject) are allowed, the policy parser will reject the statement, and no access will be granted to any principal attempting to interact with the S3 bucket.

Why this answer

The policy exhibit is incomplete because it lacks the 'Action' field, which is mandatory in AWS IAM and bucket policies. Without defining the action, the policy is syntactically invalid and will result in an 'Access Denied' error. Ensuring policy syntax is correct is a fundamental step in infrastructure security to prevent accidental service outages caused by misconfigured permissions or invalid JSON structures in resource-based policies.

45
MCQmedium

A company is setting up a private Public Key Infrastructure (PKI) on AWS to issue certificates for internal microservices. They need to ensure that the private keys of the CA are protected by a FIPS 140-2 Level 3 validated Hardware Security Module (HSM). Which service should they use?

A.AWS Certificate Manager (ACM) with a public certificate request.
B.AWS Private CA.
C.AWS CloudHSM with a custom-built OpenSSL CA on EC2.
D.AWS Key Management Service (KMS) with an asymmetric key pair.
AnswerB

AWS Private CA is designed specifically for creating private CA hierarchies. It uses managed HSMs that are FIPS 140-2 Level 3 validated to protect the CA's private keys. This service allows you to issue and revoke certificates for internal resources securely while offloading the HSM management to AWS.

Why this answer

AWS Private CA (formerly ACM Private CA) uses FIPS 140-2 Level 3 validated HSMs to protect the private keys of the CA. This level of security is necessary for organizations that must meet high compliance standards for their internal certificate issuance and management, providing a secure, managed PKI solution.

46
MCQmedium

A company needs to log all DNS queries made by EC2 instances within their VPC to identify potential data exfiltration via DNS tunneling. Which feature should the security engineer enable?

A.VPC Flow Logs for all subnets.
B.Route 53 Resolver Query Logging.
C.CloudTrail management events.
D.Amazon GuardDuty DNS Security.
AnswerB

Query logging captures detailed information about every DNS request, including the domain name, query type, and response code. These logs can be sent to CloudWatch Logs, S3, or Kinesis Data Firehose, where they can be analyzed for patterns indicative of data exfiltration or communication with malicious domains.

Why this answer

Route 53 Resolver Query Logging allows you to log all DNS queries made by resources within your VPC. This includes queries for public domain names, internal VPC domain names, and even queries made via Route 53 Resolver DNS Firewall, providing the visibility needed to detect anomalies like DNS tunneling.

47
MCQhard

A security engineer needs to prevent IAM users from disabling CloudTrail. Which policy element is most appropriate?

A.Create an IAM policy that denies 'cloudtrail:StopLogging' to all users.
B.Use an SCP to explicitly deny 'cloudtrail:StopLogging' for the organization.
C.Enable MFA Delete on all CloudTrail S3 buckets.
D.Restrict access to the CloudTrail console via IAM groups.
AnswerB

SCPs are the perfect tool for organizational-wide guardrails. By applying a 'Deny' on 'cloudtrail:StopLogging' at the organization level, you ensure that no user or role, including administrative roles, can disable CloudTrail. This provides a central, immutable security control that meets stringent regulatory requirements for consistent logging across the entire enterprise.

Why this answer

Using an explicit 'Deny' on the 'cloudtrail:StopLogging' action in a Service Control Policy (SCP) or a Permission Boundary is the most effective way to prevent even administrators from disabling logging. By applying this as a guardrail, you ensure that audit integrity is maintained regardless of individual user privileges. This is crucial for compliance, as it creates an immutable audit trail that security teams can rely on during incident investigations.

48
MCQmedium

An organization's security team detects an active data exfiltration event originating from a compromised Amazon EC2 Linux instance. The instance contains critical forensic evidence that must be preserved. What is the most effective immediate containment action that prevents external communication while retaining the memory state for forensic analysis?

A.Stop the EC2 instance immediately to disconnect it from the network and preserve the attached Amazon EBS root volume for offline examination.
B.Terminate the compromised instance and launch a replacement instance from a clean AMI to maintain high availability and service uptime.
C.Modify the security groups attached to the EC2 instance to block all inbound and outbound traffic while keeping the operating system running.
D.Detach the primary Amazon EBS volume from the running instance and attach it to an isolated analysis instance for live scanning.
AnswerC

Applying a restrictive security group containing explicit deny rules or zero allowable traffic isolates the instance instantly. Keeping the instance powered on maintains the volatile memory state, allowing forensic specialists to capture RAM dumps safely before shutdown.

Why this answer

Isolating the compromised instance using a dedicated security group ensures complete network containment while preventing any state loss. Stopping or terminating the instance would wipe volatile RAM memory, permanently destroying crucial artifacts required for deep forensic investigation. Preserving memory is critical for identifying intrusion vectors and achieving root cause analysis compliance during major security incidents.

49
MCQmedium

An organization is concerned about detecting potential SQL injection attacks against their web application hosted on Application Load Balancer. Which service provides the best native detection capability?

A.Amazon GuardDuty.
B.AWS WAF with SQL injection rule sets.
C.Amazon Inspector.
D.AWS CloudTrail.
AnswerB

AWS WAF specifically includes managed rule sets and custom rule capabilities to detect SQL injection patterns in HTTP headers and request bodies. By deploying WAF in front of an ALB, organizations can detect and block these attacks automatically, which is the standard industry approach for web application layer protection.

Why this answer

AWS WAF provides native inspection of web traffic and can detect common patterns of SQL injection. It is the most effective tool to stop these attacks at the edge, before they reach the backend application. Proper configuration of WAF rules is a critical detective and preventative control, ensuring that malicious payloads are identified and filtered in real-time, which protects application databases from compromise and unauthorized data access.

50
MCQeasy

A company wants to ensure that all new Amazon EBS volumes created in their account are automatically encrypted, regardless of whether the developer specifies encryption during the volume creation process. Which AWS feature should be used?

A.Enable 'EBS encryption by default' in the EC2 dashboard for each specific AWS region.
B.Create an IAM policy that denies the 'ec2:CreateVolume' action if the 'Encrypted' parameter is false.
C.Use an AWS Config rule to automatically delete any EBS volume that is found to be unencrypted.
D.Configure an S3 Bucket Policy to only allow encrypted EBS snapshots to be uploaded.
AnswerA

EBS encryption by default is a regional setting that, once enabled, automatically encrypts all new volumes and snapshots using a specified KMS key. This is the most effective way to enforce encryption at rest for block storage without requiring developers to change their existing workflows or deployment scripts.

Why this answer

EBS encryption by default is a region-specific setting that ensures every new EBS volume and snapshot copy created in the account is encrypted. This provides a safety net for security compliance, ensuring that no unencrypted data is inadvertently stored on block storage due to human error or misconfigured automation scripts.

51
MCQmedium

An auditor needs to verify which IAM policies are attached to a specific user. Which command provides this information?

A.aws iam list-user-policies --user-name <username>
B.aws iam list-attached-user-policies --user-name <username>
C.aws iam get-user-policy --user-name <username>
D.aws iam describe-user --user-name <username>
AnswerB

This is the correct CLI command to list all managed policies attached to an IAM user. Managed policies are the most common way to grant permissions, so listing them is the first step in assessing a user's permission set. This command provides a clear, concise list for audit reporting.

Why this answer

The AWS CLI is the primary tool for querying IAM metadata. The 'list-attached-user-policies' command specifically returns a list of all managed policies attached to the specified user. This is critical for security audits, where verifying the effective permissions of a principal is essential to ensure they match the requirements of their role and that no excessive privileges have been granted accidentally over time.

52
MCQmedium

A financial institution requires that all CloudTrail logs be stored for seven years for compliance audits. They also need the ability to run complex SQL queries against these logs to identify specific user actions across all regions. What is the most cost-effective and operationally simple solution?

A.Store logs in an S3 bucket and use Amazon Athena to run SQL queries.
B.Use CloudTrail Lake to create an event data store with a seven-year retention period.
C.Stream logs to Amazon OpenSearch Service for real-time indexing and visualization.
D.Enable CloudWatch Logs for CloudTrail and use Logs Insights for querying.
AnswerB

CloudTrail Lake allows for the creation of an event data store that natively handles ingestion, storage, and querying. It supports the required seven-year retention and provides a familiar SQL interface, making it the most streamlined option for long-term compliance and ad-hoc security investigations.

Why this answer

CloudTrail Lake is a managed data lake that simplifies the storage and analysis of CloudTrail events. It eliminates the need to build complex ETL pipelines between S3, Glue, and Athena. It provides a built-in SQL query engine and supports long-term retention policies suitable for compliance requirements.

53
Multi-Selectmedium

A company is preparing for an annual regulatory audit and needs to collect evidence of their compliance with the SOC 2 framework across multiple AWS accounts. Which TWO AWS services or features should the security team use to automate the collection of evidence and download official compliance reports?

Select 2 answers
A.AWS Artifact
B.AWS Audit Manager
C.AWS Security Hub
D.AWS CloudTrail
E.AWS Trusted Advisor
AnswersA, B

AWS Artifact is the go-to central resource for compliance-related information. It provides on-demand access to AWS's security and compliance reports, such as SOC, PCI, and ISO certifications. Auditors require these documents to verify that the underlying AWS infrastructure meets the necessary regulatory standards and security controls for the organization.

Why this answer

AWS Audit Manager and AWS Artifact are the primary services for governance and compliance evidence management. Audit Manager automates the process of gathering evidence from various AWS services to assess compliance with frameworks. AWS Artifact provides a central repository for on-demand access to AWS’s own security and compliance reports, which are essential for satisfying external auditors' requirements.

54
Multi-Selecthard

A company is building a mobile application that requires users to authenticate before accessing private data stored in Amazon S3 and Amazon DynamoDB. Which THREE components or features of Amazon Cognito should be used to implement this securely?

Select 3 answers
A.Cognito User Pools to provide a sign-in and sign-up directory for the application users.
B.Cognito Identity Pools to exchange authentication tokens for temporary AWS credentials.
C.IAM roles with trust policies that allow the Cognito Identity Pool service principal to assume them.
D.Cognito Sync to store all user files directly from the mobile device to the cloud.
E.AWS Secrets Manager to store the Cognito User Pool Client Secret on the mobile device.
AnswersA, B, C

User Pools act as your identity provider, managing the user directory, authentication, and security features like MFA and password policies. They issue JSON Web Tokens (JWTs) upon successful login, which are then used by the application to prove the user's identity to other services or backends.

Why this answer

Amazon Cognito provides a robust framework for mobile and web authentication. User Pools handle the management of user identities (sign-up/sign-in), while Identity Pools (Federated Identities) provide the mechanism to exchange those identities for temporary AWS credentials. Together with IAM roles, they ensure secure, scoped access to AWS resources.

55
MCQmedium

Which service should be used to protect sensitive data from being exfiltrated via API calls to unauthorized services?

A.AWS WAF
B.VPC Endpoint Policies
C.AWS CloudTrail
D.AWS Shield
AnswerB

VPC Endpoint Policies are attached to VPC endpoints and allow you to define which AWS service actions are permitted. This is a highly effective way to prevent unauthorized data exfiltration by ensuring that only approved AWS services can be accessed from within your VPC.

Why this answer

VPC endpoints, specifically Interface Endpoints (powered by AWS PrivateLink), allow you to restrict traffic to specific AWS services. By using a VPC Endpoint Policy, you can restrict API calls to only those services you explicitly authorize. This provides a robust preventative control that stops data from being sent to unauthorized accounts or services, even if an identity is compromised.

56
MCQmedium

A security engineer must ensure that no developer in a specific AWS Organizations member account can delete Amazon S3 buckets, even if they have AdministratorAccess. Which governance mechanism provides the most efficient and centralized way to enforce this restriction across the organizational unit?

A.Apply a resource-based policy to every S3 bucket that denies the s3:DeleteBucket action.
B.Attach a Service Control Policy (SCP) to the Organizational Unit with a Deny statement for s3:DeleteBucket.
C.Create an IAM Permission Boundary and apply it to every IAM user and role within the member account.
D.Configure AWS Config rules to automatically remediate and recreate any deleted S3 buckets.
AnswerB

SCPs allow administrators to set the maximum permissions for all accounts within an Organizational Unit. By applying a Deny statement for the delete action at the OU level, the restriction is inherited by all member accounts. This ensures that no identity, including the root user, can delete buckets regardless of their IAM permissions.

Why this answer

Service Control Policies (SCPs) function as a central guardrail within AWS Organizations, defining the maximum available permissions for accounts. They do not grant permissions but rather filter what can be granted by IAM policies. Mastering SCPs is critical for governance because they ensure that even administrative users cannot bypass organizational security mandates, providing a secondary layer of defense against unauthorized resource deletion across the entire environment.

57
Multi-Selecthard

A company is designing a hub-and-spoke network architecture using AWS Transit Gateway. They want to centralize inbound and outbound internet traffic inspection using a fleet of firewalls in a dedicated 'Security VPC'. Which TWO steps are required to ensure traffic is correctly routed for inspection? (Select TWO.)

Select 2 answers
A.Enable 'Appliance Mode' on the Transit Gateway VPC attachment for the Security VPC.
B.Configure a default route (0.0.0.0/0) in the spoke VPC subnets pointing to the Transit Gateway.
C.Disable 'Source/Destination Check' on all Transit Gateway attachments.
D.Use VPC Peering between all spoke VPCs and the Security VPC to bypass the Transit Gateway.
E.Create a separate NAT Gateway in every spoke VPC to handle the inspection traffic locally.
AnswersA, B

Appliance Mode ensures that the Transit Gateway maintains flow symmetry by sending both the request and response traffic through the same Availability Zone in the Security VPC. This is critical for stateful firewalls to correctly track connections and prevent packets from being dropped due to out-of-order or missing state information.

Why this answer

In a centralized inspection model, Transit Gateway (TGW) acts as the hub. Traffic from spoke VPCs must be routed to the TGW, which then uses a specific route table to forward traffic to the Security VPC. Appliance Mode must be enabled on the TGW attachment to ensure session stickiness for stateful firewalls.

58
Multi-Selecthard

A company stores sensitive PII in RDS MySQL databases. The security team wants to ensure that data is encrypted at rest and that the encryption keys are rotated annually. Which TWO actions fulfill these requirements?

Select 2 answers
A.Enable RDS encryption using an AWS managed key and configure annual rotation.
B.Enable RDS encryption using a customer-managed key during instance creation.
C.Configure the customer-managed KMS key to perform automatic annual key rotation.
D.Modify the existing RDS instance to enable encryption after the initial launch.
E.Enable Transparent Data Encryption (TDE) via the RDS option group.
AnswersB, C

Enabling encryption during the RDS instance launch is the only way to ensure the underlying storage volume is encrypted. By selecting a customer-managed key, you gain the authority to manage the key's lifecycle, including setting the necessary rotation policies to meet your specific security requirements.

Why this answer

Enabling RDS encryption at the time of instance creation is mandatory for at-rest protection, as this cannot be added to an existing unencrypted instance. Additionally, using AWS KMS customer-managed keys allows the administrator to control the rotation schedule manually or via automatic rotation features, ensuring the underlying cryptographic material is refreshed regularly to maintain compliance and reduce the potential impact of a compromised key.

59
MCQmedium

A security auditor requires a centralized view of security findings across all AWS accounts in an organization. Which service should be enabled to aggregate and prioritize these findings?

A.AWS Config
B.AWS Security Hub
C.Amazon GuardDuty
D.AWS IAM Access Analyzer
AnswerB

Security Hub provides a comprehensive view of security alerts and compliance status across an entire AWS Organization. It integrates with native AWS services and third-party partner products to normalize data into the AWS Security Finding Format, facilitating efficient monitoring, prioritization, and automated remediation workflows for security teams.

Why this answer

AWS Security Hub serves as the central hub for security posture management. By enabling Security Hub in the management account and configuring it to aggregate data from member accounts, auditors gain a unified dashboard. This is essential for maintaining governance and compliance at scale, as it correlates findings from GuardDuty, Inspector, and IAM Access Analyzer into a single actionable view, significantly reducing the operational overhead of manual account-by-account reviews.

60
MCQmedium

An organization requires centralized monitoring of security findings from multiple AWS accounts. Which service should be used to aggregate these findings into a single dashboard?

A.AWS CloudWatch Dashboards.
B.AWS Security Hub.
C.AWS Systems Manager OpsCenter.
D.AWS Config Advanced Query.
AnswerB

Security Hub is specifically designed to aggregate, organize, and prioritize security alerts and findings from various AWS services and partner products. It offers a centralized dashboard that provides a comprehensive view of the security state across all accounts in an AWS Organization, fulfilling the requirement.

Why this answer

AWS Security Hub acts as a central hub for security posture management. By aggregating findings from GuardDuty, Inspector, IAM Access Analyzer, and third-party partners, it provides a unified view of security threats. This consolidation is critical for large-scale environments, as it allows security teams to prioritize alerts effectively, reduce operational overhead, and ensure consistent compliance monitoring across the entire organization via AWS Organizations integration.

61
MCQhard

A company requires all outbound internet traffic from its VPC to be inspected by a fleet of third-party firewall appliances. The solution must scale horizontally and ensure that traffic is symmetric, meaning requests and responses pass through the same firewall instance. Which architecture should the security engineer implement?

A.Deploy the firewalls behind an Application Load Balancer and use host-based routing.
B.Deploy a Gateway Load Balancer and create a GWLB endpoint in the traffic-originating subnets.
C.Use a Transit Gateway with VPC Peering and ECMP enabled for load balancing.
D.Set up a Network Load Balancer with Proxy Protocol enabled for the firewall instances.
AnswerB

A Gateway Load Balancer simplifies the insertion of security appliances into the network path. By using GWLB endpoints and updating VPC route tables, traffic is transparently routed to the firewall fleet. The GWLB ensures high availability and flow consistency, which is essential for stateful firewalls to function correctly.

Why this answer

Gateway Load Balancer (GWLB) is designed for deploying, scaling, and managing third-party virtual appliances. It uses the GENEVE protocol to wrap packets and maintain flow affinity, ensuring that both directions of a traffic flow are handled by the same appliance, which is critical for stateful inspection and security monitoring.

62
MCQmedium

A company requires that all cloud resources be tagged with a 'Department' code for cost allocation and security reporting. How should they enforce this?

A.Use AWS Budgets to force tagging.
B.Use AWS Config rules to monitor tagging compliance.
C.Use an IAM policy to prevent resource creation.
D.Use AWS Trusted Advisor to tag resources.
AnswerB

AWS Config is designed for continuous assessment and compliance monitoring. By setting up a 'required-tags' rule, the organization can automatically audit all resources for the presence of the required 'Department' tag, enabling automated reporting and alerting on any resources that fail to meet the company's tagging policy.

Why this answer

AWS Config is the primary tool for auditing and ensuring resource compliance. By defining a custom or managed Config rule that checks for the existence of the 'Department' tag on resources, the organization can receive alerts when non-compliant resources are created. This ensures visibility into the state of the infrastructure and allows for timely remediation of tagging errors, supporting both financial governance and security-focused asset management.

63
Multi-Selectmedium

A company is migrating a legacy database to Amazon RDS for MySQL and must ensure the data is protected according to strict compliance standards. The security team requires that the data at rest is encrypted and that the encryption cannot be disabled after the instance is created. Which TWO statements accurately describe RDS encryption behavior?

Select 2 answers
A.Encryption at rest can be enabled for an existing unencrypted RDS DB instance by modifying the instance settings.
B.Snapshots and automated backups of an encrypted RDS instance are automatically encrypted using the same KMS key.
C.Read replicas of an encrypted RDS instance must also be encrypted using the same KMS key as the primary instance.
D.Encryption at rest can be disabled on an RDS instance to improve performance during large data imports.
E.RDS encryption at rest only protects the database tables and does not apply to logs or temporary files.
AnswersB, C

When you encrypt an RDS DB instance, all its subsequent snapshots and automated backups are automatically encrypted using the same KMS key as the parent instance. This ensures consistent data protection throughout the entire lifecycle of the data, including recovery points and archival storage in Amazon S3.

Why this answer

Amazon RDS encryption at rest is a foundational security feature that must be decided at the time of resource creation. It uses the AES-256 encryption algorithm to protect data stored on the underlying volumes, as well as backups and snapshots. Understanding the lifecycle of encrypted instances is critical for maintaining a secure data environment.

64
MCQeasy

A company wants to identify any S3 buckets or IAM roles in their AWS account that are accessible by external AWS accounts or public users. Which AWS service provides this functionality by analyzing resource-based policies?

A.AWS Trusted Advisor
B.Amazon GuardDuty
C.AWS Config
D.AWS IAM Access Analyzer
AnswerD

IAM Access Analyzer is designed to identify resources shared with external principals. It uses mathematical proof-based reasoning to analyze resource-based policies and provides findings for S3 buckets, IAM roles, KMS keys, Lambda functions, and SQS queues that are accessible from outside your account or organization.

Why this answer

AWS IAM Access Analyzer helps identify resources in your organization and accounts that are shared with an external entity. This includes S3 buckets, IAM roles, and KMS keys. By analyzing resource-based policies, it provides findings that allow security engineers to verify if the access is intended, helping to prevent accidental data exposure or unauthorized cross-account access.

65
MCQmedium

An organization wants to centralize the management of Amazon GuardDuty across 50 AWS accounts. They want the security team to be able to view and manage findings for all accounts from a single dashboard. What is the recommended governance approach?

A.Use an AWS CloudFormation StackSet to enable GuardDuty and an SNS topic in every account.
B.Designate a security account as the GuardDuty delegated administrator through the AWS Organizations management account.
C.Manually send invitations from the security account to each of the 49 member accounts to link them.
D.Configure an Amazon S3 bucket in each account to store findings and use Athena for centralized querying.
AnswerB

This is the AWS-recommended approach for multi-account governance. The delegated administrator can manage GuardDuty for the entire organization, including auto-enrolling new accounts. This provides a single pane of glass for findings and centralizes the administration of threat detection without requiring manual cross-account configuration.

Why this answer

AWS Organizations allows for delegated administration of security services. By designating a security account as the GuardDuty delegated administrator, the organization centralizes finding management. This allows the security team to enable GuardDuty in member accounts, view all findings, and manage suppression rules from one place, ensuring consistent threat detection governance across the entire enterprise.

66
MCQmedium

Which IAM configuration helps prevent the 'confused deputy' problem when accessing cross-account resources?

A.MFA requirement on the role.
B.External ID.
C.Role session name.
D.Source IP condition.
AnswerB

The External ID is the primary mechanism for preventing the confused deputy problem in cross-account role assumptions. It serves as a secret value shared only between the trustor and the trustee, ensuring that the trust relationship is validated correctly during the assume-role process and preventing unauthorized access to resources.

Why this answer

The 'External ID' is specifically designed to mitigate the confused deputy problem. When a third party assumes a role in your account, they must provide a unique identifier that you have pre-shared with them. This ensures that the third party is acting on behalf of the correct customer, preventing an attacker from tricking the service into accessing the wrong account's resources.

It is a critical security control for cross-account integrations.

67
Multi-Selecthard

A security engineer is hardening an Amazon VPC environment. To achieve defense-in-depth, the engineer needs to implement network filtering mechanisms that apply stateful inspection at the instance level and stateless inspection at the subnet boundary. Which TWO AWS features should the engineer configure to meet these requirements? (Choose two)

Select 2 answers
A.AWS Network Firewall
B.Amazon VPC security groups
C.AWS Shield Advanced
D.Amazon VPC Network ACLs
E.Amazon Route 53 Resolver DNS Firewall
AnswersB, D

Security groups operate as stateful virtual firewalls for EC2 instances and network interfaces, tracking the state of connections to automatically permit return traffic without requiring separate rules for outbound responses.

Why this answer

Security groups provide stateful packet filtering directly at the elastic network interface level, automatically allowing return traffic for established connections. Network Access Control Lists (NACLs) provide stateless packet filtering at the subnet boundary, requiring explicit rules for both inbound and outbound traffic. Using both provides complementary layers of defense.

68
MCQmedium

A company wants to detect when an IAM user executes a command from a suspicious IP address. Which tool can analyze historical CloudTrail data to establish a baseline of normal behavior and trigger alerts upon deviations?

A.CloudWatch Contributor Insights.
B.Amazon GuardDuty.
C.AWS CloudTrail Insights.
D.AWS Config.
AnswerB

GuardDuty is the purpose-built threat detection service in AWS. It continuously analyzes data sources to detect anomalies like unusual IP activity or API calls from unauthorized locations. Its machine learning models are continuously updated with threat intelligence, making it highly effective at detecting modern credential abuse patterns that bypass traditional firewalls.

Why this answer

Amazon GuardDuty provides automated anomaly detection based on CloudTrail, VPC Flow Logs, and DNS logs. It uses machine learning to profile typical user behavior and detects deviations such as logins from unusual locations or IP addresses associated with known malicious actors. This is crucial for environments where manual rule creation is impossible due to the sheer volume of users, as it identifies threats without requiring static IP allow-lists.

69
Multi-Selecthard

A security incident indicates an EC2 instance is likely compromised and communicating with a C2 server. The security team needs to perform memory forensics and isolate the instance while preserving evidence. Which TWO actions should the team perform?

Select 2 answers
A.Terminate the EC2 instance immediately to stop the data exfiltration.
B.Snapshot the EBS volumes attached to the instance.
C.Attach a new IAM role with administrative privileges to the instance.
D.Capture the instance memory state before isolation.
E.Remove the VPC flow logs to save storage costs during the investigation.
AnswersB, D

Taking an EBS snapshot preserves the state of the file system at the time of the incident. This allows the security team to mount the volume to a separate, isolated forensic workstation for detailed analysis without alerting the attacker or modifying the original data on the production instance.

Why this answer

In an incident response scenario, capturing the volatile state of an instance is vital before isolation or termination occurs. Snapshotting the EBS volume allows for offline disk forensics, while memory dumps capture active threats that do not persist on disk. These actions follow standard digital forensics procedures to ensure evidence integrity, enabling a thorough investigation into the root cause of the compromise without losing critical data residing only in RAM.

70
MCQhard

Refer to the exhibit. An administrator applied this policy to a bucket, but users are still able to upload unencrypted objects. Why is this occurring?

A.The policy lacks a wildcard in the resource ARN.
B.The condition only checks the header if it exists in the request.
C.The 'Effect' should be changed to 'Allow'.
D.The policy needs an 'Action' of 's3:PutObjectTagging'.
AnswerB

In AWS IAM policy logic, if a header is missing from the request, the 'StringNotEquals' condition does not evaluate to true, so the 'Deny' effect is not applied. The request proceeds as if the condition were not there, allowing unencrypted uploads to bypass the security check.

Why this answer

The policy uses the 's3:x-amz-server-side-encryption' condition key, which is only present if the client specifically sends that header. If a user performs a standard 'PutObject' without the encryption header, the request does not match the condition, and the 'Deny' effect is not triggered. To fix this, the policy must explicitly deny requests where the header is absent, ensuring that all uploads are forced to include mandatory encryption headers.

71
MCQmedium

A security engineer is tasked with granting a developer in Account A access to an Amazon S3 bucket located in Account B. The developer needs to perform PutObject and GetObject operations. According to security best practices for cross-account access, which configuration provides the most secure and manageable solution?

A.Create an IAM user in Account B for the developer and provide the static access keys to the developer in Account A.
B.Define a resource-based policy on the S3 bucket in Account B that grants the developer's IAM ARN in Account A direct access.
C.Create an IAM role in Account B with the required S3 permissions and a trust policy allowing Account A, then let the developer assume it.
D.Configure a VPC Peering connection between Account A and Account B to allow the developer to access the S3 bucket privately.
AnswerC

This method follows the principle of least privilege and uses AWS Security Token Service for temporary access. The trust policy defines who can assume the role, and the identity-based policy defines what they can do. This architecture is scalable and aligns with the AWS Well-Architected Framework security pillar.

Why this answer

Cross-account access is best managed by assuming an IAM role in the destination account. This approach generates temporary security credentials via AWS STS, reducing the risk associated with long-term credentials. It centralizes permission management within the account owning the resource while allowing the source account to control which identities can initiate the switch.

72
MCQmedium

An application running on EC2 needs to access DynamoDB tables. What is the most secure way to provide these permissions?

A.Embed IAM access keys directly into the application code.
B.Store IAM access keys in a configuration file on the EC2 instance.
C.Assign an IAM role to the EC2 instance via an instance profile.
D.Create a public DynamoDB table to allow unauthenticated access.
AnswerC

Using IAM roles with instance profiles is the gold standard for EC2 security. It provides temporary, short-lived credentials that are automatically rotated by the AWS environment. The application uses the AWS SDK to retrieve these credentials, ensuring no sensitive data is stored on the disk or exposed in the code.

Why this answer

Assigning an IAM role to an EC2 instance is the secure, standard AWS approach. The instance profile automatically provides temporary credentials that the SDK uses, eliminating the need for manual key rotation or storage. This method follows the principle of least privilege by scoping access strictly to the necessary DynamoDB resources, preventing exposure of long-term credentials and simplifying maintenance for the application developers and security administrators.

73
MCQmedium

A security team needs to perform deep packet inspection (DPI) on traffic entering and leaving a specific EC2 instance to look for complex attack signatures that VPC Flow Logs cannot detect. Which AWS feature should they use to facilitate this?

A.VPC Flow Logs with custom format fields.
B.VPC Traffic Mirroring
C.Amazon GuardDuty Network Monitoring
D.AWS Network Firewall with stateless rules.
AnswerB

Traffic Mirroring effectively acts as a 'virtual tap' in the cloud. It duplicates the L2 traffic from a source ENI and encapsulates it in VXLAN to be sent to a target (like another EC2 instance or a Network Load Balancer) where specialized security software can analyze the packets.

Why this answer

VPC Traffic Mirroring allows you to copy network traffic from an elastic network interface (ENI) of an EC2 instance and send it to a security appliance for inspection. This is essential for deep packet inspection (DPI), as it provides the actual packet payloads, unlike Flow Logs which only provide metadata.

74
MCQhard

Refer to the exhibit. This S3 bucket policy is applied to a bucket named 'marketing-data'. What is the effect of this policy regarding access to the objects in the bucket?

A.It allows any IAM user or role within any account belonging to the AWS Organization 'o-1234567890' to read objects.
B.It makes the bucket public to anyone on the internet as long as they are using an AWS account.
C.It allows access only if the S3 bucket itself is owned by the organization 'o-1234567890'.
D.It requires that the request must originate from a VPC endpoint that is tagged with the organization ID.
AnswerA

The 'aws:PrincipalOrgID' condition key filters the 'Principal: *' to only include identities that are part of the specified AWS Organization. This effectively restricts access to all members of the organization while granting them the 's3:GetObject' permission for the objects in the 'marketing-data' bucket.

Why this answer

The PrincipalOrgID condition key is a powerful tool for restricting resource access to identities within a specific AWS Organization. This allows for broad 'Allow' statements that are still safely scoped to internal users only. Mastering this condition helps in creating scalable resource-based policies that don't require listing individual account IDs, thus reducing complexity and manual errors.

75
Multi-Selectmedium

An organization wants to improve its vulnerability management posture by ensuring that all Amazon EC2 instances are regularly scanned for software vulnerabilities and unintended network exposure. Which TWO features of Amazon Inspector help achieve this?

Select 2 answers
A.Continuous scanning for software vulnerabilities in installed packages.
B.Network reachability analysis to detect open ports and exposure.
C.Automated remediation of insecure Security Group rules.
D.Real-time detection of brute-force login attempts.
E.Malware scanning for EBS volumes attached to instances.
AnswersA, B

Amazon Inspector uses the AWS Systems Manager (SSM) Agent to collect the inventory of installed software on EC2 instances. It then automatically compares this inventory against known vulnerability databases (CVEs) to identify and report any software that requires patching or updates.

Why this answer

Amazon Inspector is an automated vulnerability management service. It continuously scans EC2 instances for software vulnerabilities (using the SSM Agent) and network reachability issues. This dual approach ensures that both internal software flaws and external configuration weaknesses are identified and reported to the security team.

Page 1 of 2

Page 2

All pages