Courseiva

CCNA Security and Compliance Questions

71 of 221 questions · Page 3/3 · Security and Compliance · Answers revealed

151
MCQmedium

A company runs a web application on an Application Load Balancer (ALB) in the us-east-1 Region. The application serves HTTPS traffic. The company uses a third-party certificate authority to issue SSL/TLS certificates, but these certificates expire every year and require manual renewal. The company wants to use a managed AWS service to automatically provision, renew, and manage the SSL/TLS certificates for the ALB at no additional cost (no extra charge beyond the ALB usage). Which AWS service should the company use?

A.AWS Key Management Service (AWS KMS)
B.AWS WAF
C.AWS Certificate Manager (ACM)
D.AWS Secrets Manager
AnswerC

AWS Certificate Manager (ACM) provisions, manages, and automatically renews public SSL/TLS certificates for use with an Application Load Balancer. You can issue a certificate, then associate it with an ALB HTTPS listener in the same region, and ACM handles renewals and redeployment with no direct cost for the certificate itself. This makes ACM the correct choice for offloading HTTPS termination and encrypting client-to-load-balancer traffic.

Why this answer

AWS Certificate Manager (ACM) is the correct service because it can provision, manage, and automatically renew public SSL/TLS certificates for use with an Application Load Balancer at no additional cost. ACM integrates directly with ALB to handle certificate deployment and renewal, eliminating the need for manual renewal of third-party certificates. The service is free for public certificates used with supported AWS services like ALB, CloudFront, and API Gateway.

Exam trap

The trap here is that candidates may confuse AWS KMS as a certificate management service because it deals with encryption, but KMS manages symmetric and asymmetric keys for data encryption, not SSL/TLS certificates for HTTPS termination.

Why the other options are wrong

A

AWS KMS is a service for creating and managing encryption keys, not for provisioning or renewing SSL/TLS certificates. It does not automate certificate renewal or integrate with ALB for HTTPS termination.

B

AWS WAF is a web application firewall that protects against common web exploits, not a service for managing SSL/TLS certificates. It does not provision or renew certificates.

D

AWS Secrets Manager is designed to securely store and rotate secrets like database credentials, API keys, and other sensitive configuration data, not to manage SSL/TLS certificates for load balancers. It does not automatically provision or renew certificates for use with AWS services like ALB.

152
MCQmedium

A company uses AWS Organizations to manage multiple accounts. The security team wants a preventive control to ensure that nobody in any account, including account root users, can disable AWS CloudTrail or delete Amazon S3 bucket policies. Which AWS feature should the security team use?

A.IAM roles with multi-factor authentication (MFA)
B.AWS Config rules with automatic remediation
C.Service control policies (SCPs)
D.AWS Shield Advanced
AnswerC

SCPs are a feature of AWS Organizations that allow central administrators to set permission guardrails for all accounts in the organization. SCPs can explicitly deny actions like cloudtrail:StopLogging or s3:DeleteBucketPolicy, even for the root user of member accounts. This provides a preventive control that cannot be overridden by account administrators.

Why this answer

Service control policies (SCPs) are the correct choice because they provide centralized preventive controls over the maximum available permissions for all IAM users, roles, and root users in member accounts within AWS Organizations. SCPs can explicitly deny actions such as cloudtrail:StopLogging, cloudtrail:DeleteTrail, and s3:PutBucketPolicy, ensuring that even root users cannot disable CloudTrail or delete S3 bucket policies. This makes SCPs the only AWS feature that can enforce such restrictions across all accounts in an organization.

Exam trap

The trap here is that candidates often confuse detective/corrective controls (like AWS Config rules) with preventive controls (like SCPs), or they mistakenly think IAM MFA can block API actions, when in reality MFA only adds an authentication requirement and does not restrict specific service operations.

Why the other options are wrong

A

IAM roles with MFA control user access but cannot enforce preventive restrictions across all accounts, including root users, in an AWS Organization.

B

AWS Config rules with automatic remediation are detective and reactive, not preventive. They can detect noncompliant changes and trigger remediation actions, but they cannot prevent root users or others from making changes in the first place.

D

AWS Shield Advanced is a DDoS protection service, not a preventive control for restricting actions like disabling CloudTrail or deleting S3 bucket policies across all accounts in an organization.

153
MCQeasy

Which AWS service provides automated security assessments of EC2 instances against a library of security best practices and common vulnerabilities?

A.AWS Trusted Advisor
B.Amazon Inspector
C.AWS Security Hub
D.AWS Config
AnswerB

Amazon Inspector is the correct answer because it is purpose-built to perform automated vulnerability discovery on EC2 instances and container images in Amazon ECR, referencing CVE databases to detect software vulnerabilities and also assessing network exposure for the workloads. It continuously monitors and can be scheduled on a recurring basis, generating findings that integrate with Security Hub and EventBridge for responsive actions. Its agentless and agent-based scanning options give broad coverage of the compute environment, which is precisely what the scenario requires.

Why this answer

Amazon Inspector is the correct AWS service because it is specifically designed to perform automated security assessments of EC2 instances. It uses a library of rules mapped to common security best practices (e.g., CIS benchmarks) and common vulnerabilities (e.g., CVEs) to scan the instance's OS and network configuration, generating a detailed findings report.

Exam trap

The trap here is that candidates confuse AWS Security Hub (which aggregates findings) with the service that actually performs the vulnerability scan, leading them to pick Security Hub instead of Amazon Inspector.

How to eliminate wrong answers

Option A is wrong because AWS Trusted Advisor provides general best-practice checks across your AWS account (e.g., cost optimization, performance, fault tolerance), but it does not perform deep, agent-based vulnerability scanning of EC2 instances. Option C is wrong because AWS Security Hub aggregates and prioritizes security alerts from multiple AWS services (like Amazon Inspector, GuardDuty, etc.) and provides a centralized view, but it does not itself perform automated vulnerability assessments on EC2 instances. Option D is wrong because AWS Config evaluates resource configurations against desired policies (e.g., compliance rules) and tracks configuration changes, but it does not scan for software vulnerabilities or security best practices at the OS/application level.

154
MCQmedium

A company manages multiple AWS accounts using AWS Organizations. The security team needs to enforce a policy that prevents any user, including the root user, in any member account from disabling the 'Block Public Access' setting on Amazon S3 buckets. The policy must be centrally managed and automatically applied to all existing and future member accounts. Which AWS feature should the security team use?

A.AWS Identity and Access Management (IAM) policy
B.AWS Service Control Policy (SCP)
C.AWS Config rule with automatic remediation
D.AWS Trusted Advisor
AnswerB

SCPs are a feature of AWS Organizations that allow you to centrally manage permissions for all accounts in the organization. They can deny specific actions (like disabling S3 Block Public Access) for all users, including the root user, in every member account. SCPs are automatically applied to all existing and future accounts in the organizational unit to which they are attached, meeting all the requirements.

Why this answer

AWS Service Control Policies (SCPs) are the correct choice because they allow central management of permissions across all accounts in an AWS Organization. SCPs can explicitly deny actions like s3:PutBucketPublicAccessBlock at the root, OU, or account level, and they apply to all principals, including the root user, in member accounts. SCPs are automatically inherited by new accounts added to the organization, ensuring consistent enforcement without per-account configuration.

Exam trap

The trap here is that candidates often confuse AWS Config with a preventive control, but Config is detective and reactive, not preventive, and cannot block the root user or centrally enforce policies across accounts like an SCP can.

Why the other options are wrong

A

IAM policies are attached to IAM users, groups, or roles within a single account and cannot be centrally applied across all member accounts in an organization. They also cannot prevent actions by the root user.

C

AWS Config rules with automatic remediation can detect and fix non-compliant S3 public access settings, but they cannot prevent the root user from making changes, and they apply only after the fact, not as a preventive control. Additionally, they are not centrally managed across all accounts in an organization without additional setup.

D

AWS Trusted Advisor provides best-practice recommendations but cannot enforce policies or prevent actions like disabling S3 Block Public Access across accounts.

155
MCQmedium

A company stores sensitive documents in Amazon S3. The security team wants a preventive control that ensures no S3 bucket in the AWS account can ever be configured with a bucket policy that grants public read or write access. This control must apply automatically to all newly created buckets and to existing buckets, without requiring changes to individual bucket policies. Which AWS feature should the security team use?

A.AWS Config with the s3-bucket-public-read-prohibited managed rule
B.Amazon S3 Block Public Access at the account level
C.AWS Identity and Access Management (IAM) policy with a condition that denies s3:PutBucketPolicy for any action that grants public access
D.Amazon GuardDuty with a finding suppression rule for S3 public access events
AnswerB

Amazon S3 Block Public Access provides centralized controls that can be applied at the account level. When enabled, these settings override any bucket-level policies that grant public access, preventing both new and existing buckets from ever being made publicly accessible. This is the preventive control described in the scenario.

Why this answer

Amazon S3 Block Public Access at the account level is a preventive control that, when enabled, overrides any bucket policies or ACLs that would grant public read or write access. It applies automatically to all existing and newly created buckets in the account without requiring changes to individual bucket policies. This meets the security team's requirement for a blanket, account-wide preventive control.

Exam trap

The trap here is that candidates often confuse detective controls (like AWS Config rules) with preventive controls (like S3 Block Public Access), or they assume an IAM policy can universally block public access without considering that it must be attached to every principal and does not cover ACL-based public access.

Why the other options are wrong

A

AWS Config is a detective control that evaluates and reports on compliance, but it does not prevent the creation of public buckets. It can only detect and alert after a bucket has been made public, not block the action proactively.

C

An IAM policy with a condition denying s3:PutBucketPolicy for actions granting public access is not a preventive control that applies automatically to all buckets without changes to individual bucket policies. It only restricts who can set bucket policies, but does not prevent existing public access or apply to buckets created by users who are not bound by that IAM policy.

D

GuardDuty is a detective control that identifies threats and generates findings, not a preventive control that blocks public access. It cannot prevent S3 buckets from being configured with public access; it only alerts after the fact.

156
MCQmedium

A healthcare company stores patient records in Amazon S3 buckets across multiple accounts and needs to automatically discover and classify any objects containing personally identifiable information (PII) or protected health information (PHI). Which AWS service provides this capability?

A.Amazon GuardDuty
B.AWS CloudTrail
C.Amazon Inspector
D.Amazon Macie
AnswerD

Amazon Macie is a fully managed data security service that uses machine learning and pattern matching to automatically discover, classify, and protect sensitive data stored in Amazon S3. It continuously monitors S3 buckets for personally identifiable information (PII) and protected health information (PHI), generating detailed findings when sensitive data is detected. These findings help security teams quickly remediate exposure, and Macie integrates with EventBridge for automated response workflows.

Why this answer

Amazon Macie is a fully managed data security and data privacy service that uses machine learning and pattern matching to automatically discover, classify, and protect sensitive data stored in Amazon S3. It is specifically designed to identify personally identifiable information (PII) and protected health information (PHI) by analyzing object metadata and content, making it the correct choice for this healthcare compliance use case.

Exam trap

The trap here is that candidates often confuse Amazon Macie with Amazon GuardDuty, assuming both detect threats, but GuardDuty focuses on security threats and anomalies, not on data classification or sensitive content discovery in S3 objects.

How to eliminate wrong answers

Option A is wrong because Amazon GuardDuty is a threat detection service that monitors for malicious activity and unauthorized behavior using VPC Flow Logs, DNS logs, and CloudTrail events, not for data classification or sensitive content discovery in S3 objects. Option B is wrong because AWS CloudTrail records API activity and governance events for auditing, but it does not inspect or classify the contents of S3 objects for PII or PHI. Option C is wrong because Amazon Inspector is an automated vulnerability management service that scans EC2 instances and container workloads for software vulnerabilities and network exposure, not for data classification in S3 buckets.

157
MCQeasy

A company runs a web application on Amazon EC2 instances. Under the AWS Shared Responsibility Model, who is responsible for patching the operating system on the EC2 instances?

A.AWS, because they own and operate all EC2 infrastructure
B.The customer, because OS patching is in the customer's area of responsibility for IaaS services
C.Both AWS and the customer equally share this responsibility
D.A third-party managed service provider designated by AWS
AnswerB

EC2 is an Infrastructure as a Service (IaaS) offering, and the shared responsibility model places the guest OS squarely in the customer's domain. The customer selects the AMI, configures the OS, and must apply security patches, updates, and compliance fixes. AWS's responsibility ends at the hypervisor and physical hardware, so the correct party is the customer.

Why this answer

Under the AWS Shared Responsibility Model, for Infrastructure as a Service (IaaS) like EC2, the customer is responsible for managing the guest operating system, including patching and security updates. AWS is responsible for the physical infrastructure and the hypervisor layer, but not for the OS running inside the EC2 instance. Therefore, option B is correct.

Exam trap

The trap here is that candidates often assume AWS handles all patching for EC2 because it is a managed service, but the Shared Responsibility Model clearly assigns guest OS patching to the customer for IaaS services like EC2.

How to eliminate wrong answers

Option A is wrong because AWS is responsible for the physical infrastructure and hypervisor, but not for patching the guest OS on EC2 instances; that is the customer's responsibility under IaaS. Option C is wrong because the responsibility is not shared equally; AWS handles the host OS and hypervisor, while the customer handles the guest OS. Option D is wrong because AWS does not designate a third-party managed service provider for OS patching; customers may choose their own third-party tools, but the responsibility remains with the customer.

158
MCQmedium

A company's security policy requires that all IAM user access keys be rotated every 90 days. The security team wants to automatically identify any IAM user in the company's AWS account whose access keys are older than 90 days and trigger a notification to the security team. They need a managed AWS service that continuously evaluates the access key age against this requirement and generates findings. Which AWS service should the security team use?

A.AWS Trusted Advisor
B.AWS Config
C.Amazon Inspector
D.AWS IAM Access Analyzer
AnswerB

AWS Config is a managed service that evaluates your AWS resource configurations against desired policies. The managed rule 'access-keys-rotated' continuously checks whether active IAM access keys have been rotated within the specified maximum age (e.g., 90 days). Non-compliant resources are identified, and you can configure Amazon SNS notifications to alert the security team. This meets the requirement for continuous evaluation and automated notification.

Why this answer

AWS Config is a managed service that continuously evaluates your AWS resource configurations against desired policies (e.g., access keys older than 90 days) using the managed rule 'access-keys-rotated'. It generates compliance findings and can trigger notifications via Amazon EventBridge or SNS, meeting the requirement for continuous evaluation and alerting.

Exam trap

The trap here is that candidates confuse AWS Config's continuous compliance evaluation with AWS Trusted Advisor's one-time or periodic checks, or mistakenly think IAM Access Analyzer covers all IAM-related security checks, when it only focuses on external access analysis.

Why the other options are wrong

A

AWS Trusted Advisor provides best practice checks and recommendations, but it does not continuously evaluate IAM user access key age against a custom 90-day policy and generate findings. It offers a limited set of predefined checks, not custom compliance rules.

C

Amazon Inspector is a vulnerability management service that scans for software vulnerabilities and unintended network exposure, not for evaluating IAM user access key age or compliance with rotation policies.

D

AWS IAM Access Analyzer identifies resources shared with external entities, not the age of IAM user access keys. It does not evaluate access key rotation compliance.

159
MCQmedium

A company uses Amazon GuardDuty for threat detection, Amazon Inspector for vulnerability scanning, and Amazon Macie for sensitive data discovery. The security team needs a centralized dashboard that aggregates findings from all these services, provides a security score, and tracks compliance against industry standards such as CIS AWS Foundations. Which AWS service should the security team use?

A.AWS Config
B.AWS Security Hub
C.Amazon Detective
D.AWS Trusted Advisor
AnswerB

AWS Security Hub is the correct answer because it is designed as a central cloud security posture management (CSPM) service that ingests findings from Amazon GuardDuty, Amazon Inspector, and Amazon Macie, as well as third-party tools, using the AWS Security Finding Format (ASFF). It provides a single dashboard with a security score, insight summaries, and automated compliance checks against standards like CIS AWS Foundations, PCI DSS, and GDPR. This cross-service aggregation capability directly addresses the requirement to consolidate threat detection findings from GuardDuty and other security services.

Why this answer

AWS Security Hub is the correct service because it provides a centralized dashboard that aggregates findings from multiple AWS security services, including GuardDuty, Inspector, and Macie. It also offers a consolidated security score and supports automated compliance checks against standards like CIS AWS Foundations, making it the ideal choice for this use case.

Exam trap

The trap here is that candidates may confuse AWS Security Hub with AWS Config, thinking Config provides a centralized findings dashboard, but Config focuses on resource configuration compliance rather than aggregating security service findings.

Why the other options are wrong

A

AWS Config is a service for evaluating resource configurations against desired policies, not for aggregating security findings from GuardDuty, Inspector, and Macie or providing a security score and compliance tracking against CIS AWS Foundations.

C

Amazon Detective is designed for root-cause analysis of security findings, not for aggregating findings from multiple services or providing a security score and compliance tracking.

160
MCQmedium

A company manages 20 AWS accounts under AWS Organizations. The security team wants to ensure that no security group in any account allows unrestricted inbound RDP access (0.0.0.0/0). They need to automatically detect any security group that violates this rule and receive a notification. They also want to track the configuration history of security group changes for forensic analysis. Which AWS service should they use to achieve these requirements?

A.AWS Config
B.Amazon GuardDuty
C.AWS Security Hub
D.AWS CloudTrail
AnswerA

AWS Config records configuration changes of supported AWS resources, evaluates them against configurable rules (including managed rules for security group permissions), and provides a history of changes. It integrates with Amazon SNS to send notifications when resources are noncompliant.

Why this answer

AWS Config is the correct service because it provides managed rules like 'restricted-common-ports' or a custom Lambda rule to detect security groups with inbound RDP access from 0.0.0.0/0. It continuously evaluates resource configurations, sends Amazon SNS notifications on noncompliant resources, and automatically records a configuration history of all security group changes, enabling forensic analysis. This directly meets the requirements for detection, notification, and historical tracking.

Exam trap

The trap here is that candidates confuse AWS Security Hub's aggregation and dashboard capabilities with the underlying compliance evaluation and history recording that only AWS Config provides, leading them to choose Security Hub instead of the service that actually performs the detection and tracking.

Why the other options are wrong

C

AWS Security Hub aggregates findings from multiple services but does not itself track configuration history or provide compliance rules for security group changes. It cannot detect unrestricted RDP access or maintain a configuration history for forensic analysis.

D

AWS CloudTrail records API activity for governance and audit, but it does not evaluate security group rules against compliance rules or send notifications for non-compliant configurations. It also does not track configuration history of resources like security groups; it tracks API calls, not resource state changes.

161
MCQmedium

Which AWS service provides a central place to manage security alerts and automate compliance checks across an AWS Organization?

A.Amazon GuardDuty
B.AWS Security Hub
C.AWS Trusted Advisor
D.AWS Config
AnswerB

AWS Security Hub is a cloud security posture management (CSPM) service that aggregates high-priority security findings from multiple AWS services, including GuardDuty, Inspector, Macie, Firewall Manager, and from partner products, into a single standardized format. It also runs continuous automated compliance checks against industry standards and best practices like CIS AWS Foundations, NIST SP 800-53, and PCI DSS, producing a cross-account, cross-service scorecard. This dual capability—findings aggregation plus compliance standard checks—makes Security Hub exactly the right tool for the organization's requirements.

Why this answer

AWS Security Hub is the correct answer because it provides a single, central location for aggregating, organizing, and prioritizing security alerts (findings) from multiple AWS services (like Amazon GuardDuty, Amazon Inspector, and AWS Macie) and third-party tools. It also enables automated compliance checks against standards such as CIS AWS Foundations, PCI DSS, and AWS Foundational Security Best Practices across all accounts in an AWS Organization, using built-in or custom controls.

Exam trap

The trap here is that candidates often confuse AWS Security Hub with Amazon GuardDuty, thinking that GuardDuty's threat detection and alerting also covers compliance checks and centralized management of all security alerts, but GuardDuty only handles threat detection findings and lacks the multi-service aggregation and compliance automation that Security Hub provides.

How to eliminate wrong answers

Option A is wrong because Amazon GuardDuty is a threat detection service that monitors for malicious activity using machine learning and threat intelligence, but it does not provide a central place to manage security alerts from multiple sources or automate compliance checks across an organization. Option C is wrong because AWS Trusted Advisor is an advisory service that inspects your AWS environment and makes recommendations for cost optimization, performance, security, fault tolerance, and service limits, but it does not aggregate security alerts from other services or automate compliance checks against specific standards. Option D is wrong because AWS Config is a service that evaluates your resource configurations against desired policies (using rules) and tracks configuration changes, but it does not serve as a central hub for security findings or automate compliance checks across multiple security standards.

162
MCQmedium

A company's security policy prohibits opening SSH (port 22) or RDP (port 3389) to the internet for any Amazon EC2 instance. The operations team needs a way to establish secure shell sessions to manage instances directly from the AWS Management Console without managing bastion hosts or SSH keys. Which AWS service provides this capability?

A.AWS Systems Manager Session Manager
B.AWS Certificate Manager
C.AWS CloudHSM
D.Amazon GuardDuty
AnswerA

Correct. Session Manager offers browser-based shell access to EC2 instances through the AWS Management Console or CLI, using the SSM Agent and without requiring any inbound open ports. It is designed for secure, agent-based instance management.

Why this answer

AWS Systems Manager Session Manager enables secure shell access to EC2 instances directly from the AWS Management Console without opening inbound ports (22 or 3389) or managing bastion hosts. It uses the SSM Agent and AWS Identity and Access Management (IAM) policies to establish a bidirectional connection over HTTPS (port 443), eliminating the need for SSH keys or public IP addresses. This fully satisfies the security policy requirement while providing the desired management capability.

Exam trap

The trap here is that candidates may confuse AWS Certificate Manager (a certificate provisioning service) or AWS CloudHSM (a hardware security module) with a secure access tool, when the correct answer is a systems management service that operates over HTTPS without opening traditional remote access ports.

Why the other options are wrong

B

AWS Certificate Manager manages SSL/TLS certificates, not secure shell sessions. It does not provide remote access to EC2 instances.

C

AWS CloudHSM provides hardware security modules for cryptographic key storage, not remote shell access to EC2 instances. It cannot establish SSH or RDP sessions.

D

Amazon GuardDuty is a threat detection service that monitors for malicious activity, not a tool for establishing secure shell sessions to manage EC2 instances.

163
MCQmedium

A company stores database passwords for their RDS instances and API keys for third-party services in their application code, which is a security risk. They want a managed service that securely stores these secrets, makes them available to applications via API, and automatically rotates database passwords. Which AWS service should they use?

A.AWS KMS
B.AWS Systems Manager Parameter Store
C.AWS Secrets Manager
D.Amazon Cognito
AnswerC

AWS Secrets Manager is purpose-built for securely storing, retrieving, and automatically rotating database credentials. It encryptes secrets with KMS keys, retrieves them via API to eliminate hardcoded passwords, and integrates natively with RDS to rotate passwords on a configurable schedule. The service manages both the stored secret and the database password in sync, ensuring applications continue to work during rotation without downtime.

Why this answer

AWS Secrets Manager is the correct choice because it is a fully managed service specifically designed to securely store, retrieve, and automatically rotate secrets such as database passwords and API keys. It provides built-in integration with RDS for automatic rotation of database credentials without custom code, and it serves secrets via a secure API call, eliminating the need to hardcode secrets in application code.

Exam trap

The trap here is that candidates often confuse AWS Systems Manager Parameter Store with Secrets Manager because both can store secrets, but Parameter Store lacks native automatic rotation for RDS passwords, which is the key requirement in the question.

How to eliminate wrong answers

Option A is wrong because AWS KMS is a key management service for creating and controlling encryption keys, not for storing or rotating secrets like passwords or API keys. Option B is wrong because AWS Systems Manager Parameter Store can store secrets but lacks native automatic rotation for database passwords; it requires custom Lambda functions to implement rotation, whereas Secrets Manager provides built-in rotation. Option D is wrong because Amazon Cognito is an identity and user management service for authentication and authorization, not a secret storage or rotation service for application credentials.

164
MCQhard

A company runs a payment processing application on AWS that must comply with the Payment Card Industry Data Security Standard (PCI DSS). An external auditor requests a copy of the AWS SOC 2 report and the PCI DSS Attestation of Compliance (AOC) to verify the security controls of the underlying AWS infrastructure. The company needs to obtain these documents directly from AWS. Which AWS service should the company use?

A.AWS Artifact
B.AWS Config
C.AWS Audit Manager
D.AWS Trusted Advisor
AnswerA

AWS Artifact is the correct service for this requirement because it is a self-service portal that provides on-demand access to AWS compliance reports and agreements, including SOC 1, SOC 2, SOC 3, PCI DSS Attestations of Compliance, ISO certifications, and GDPR Data Processing Agreements. For a payment processing application, the customer can download the AWS PCI DSS AOC from Artifact to demonstrate that AWS's portion of the shared responsibility model meets the required security controls. Artifact consolidates both compliance reports and executed agreements, making it the authoritative source for AWS's own compliance documentation.

Why this answer

AWS Artifact is the correct service because it provides on-demand access to AWS compliance reports, including SOC 2 reports and PCI DSS Attestations of Compliance (AOC). These documents are published directly by AWS and can be downloaded from the AWS Artifact console without needing to contact AWS support, meeting the auditor's requirement for direct retrieval.

Exam trap

The trap here is that candidates may confuse AWS Artifact with AWS Audit Manager, mistakenly thinking Audit Manager provides the same compliance documents, when in fact Audit Manager is for creating custom audit frameworks, not for retrieving AWS's own published reports.

Why the other options are wrong

B

AWS Config is a service for assessing, auditing, and evaluating configurations of AWS resources, not for providing compliance reports like SOC 2 or PCI DSS AOC. The question specifically asks for obtaining these documents directly from AWS, which is the function of AWS Artifact.

C

AWS Audit Manager helps audit evidence collection and report generation, but it does not provide direct access to AWS compliance reports like SOC 2 or PCI DSS AOC. The question specifically asks for obtaining these documents directly from AWS, which is the function of AWS Artifact.

D

AWS Trusted Advisor provides recommendations for cost optimization, performance, security, and fault tolerance, but it does not provide compliance reports like SOC 2 or PCI DSS AOC.

165
MCQeasy

A retail company processes credit card payments and must comply with the Payment Card Industry Data Security Standard (PCI DSS). The company's compliance officer needs to obtain an official document from AWS that details the security controls AWS has implemented to support PCI DSS compliance for services such as Amazon RDS and Amazon EC2. The document must be downloadable as a PDF for review and audit purposes. Which AWS service should the compliance officer use to retrieve this document?

A.AWS Security Hub
B.AWS Artifact
C.AWS Config
D.AWS Trusted Advisor
AnswerB

AWS Artifact is the correct service because it is the central repository for AWS's own compliance reports, including PCI DSS, SOC 1/2/3, ISO 27001, and FedRAMP. Users can browse and download these PDF documents on demand, and also manage agreements like the Business Associate Addendum (BAA) for regulated workloads. This directly satisfies the audit requirement to obtain AWS's certifications and attestations without needing to request them from support or search through scattered documentation.

Why this answer

AWS Artifact is the correct service because it provides on-demand access to AWS compliance reports and security documents, including the PCI DSS compliance attestation and responsibility summary. The compliance officer can download the AWS PCI DSS compliance package as a PDF directly from the AWS Artifact console, which is specifically designed for audit and review purposes.

Exam trap

The trap here is that candidates may confuse AWS Security Hub’s ability to run PCI DSS automated checks with the need to obtain the official AWS PCI DSS attestation document, which is only available through AWS Artifact.

Why the other options are wrong

A

AWS Security Hub provides a comprehensive view of security alerts and compliance status across accounts, but it does not offer downloadable PDFs of AWS compliance reports like PCI DSS. The question specifically requires an official document that can be downloaded as a PDF, which is a feature of AWS Artifact.

C

AWS Config is used for resource inventory, configuration history, and compliance auditing against custom rules, not for providing official AWS compliance reports or downloadable PDFs like PCI DSS documentation.

D

AWS Trusted Advisor provides recommendations for cost optimization, performance, security, and fault tolerance, but it does not provide downloadable compliance reports or official documents like PCI DSS attestation PDFs.

166
MCQmedium

A company's security team wants to automatically remediate non-compliant AWS Config rules, such as automatically enabling S3 server-side encryption on any bucket found without it. Which AWS Config feature enables this?

A.AWS Config rule compliance reporting only
B.AWS Config Rules with Automatic Remediation using SSM Automation
C.AWS Security Hub findings export to S3
D.Amazon GuardDuty threat response
AnswerB

AWS Config Rules with Automatic Remediation is the correct approach because it closes the loop between detection and correction. When a rule evaluates a resource as non-compliant, Config can invoke an AWS Systems Manager Automation document—for instance, one that enables S3 default encryption or turns on VPC Flow Logs—as an automatic response. This remediation runs without human intervention, so configuration drift is fixed continuously, ensuring resources remain aligned with corporate compliance policies.

Why this answer

AWS Config Rules with Automatic Remediation using SSM Automation (Option B) is the correct feature because it allows you to associate an SSM Automation document with a non-compliant AWS Config rule. When a resource is evaluated as non-compliant, Config can automatically invoke the SSM Automation runbook to remediate the issue—for example, enabling S3 server-side encryption on a bucket that lacks it. This directly satisfies the security team's requirement for automated, policy-driven remediation without manual intervention.

Exam trap

The trap here is that candidates often confuse AWS Config's compliance reporting (Option A) with its remediation capabilities, assuming that reporting alone can fix issues, or they mistakenly think Security Hub (Option C) or GuardDuty (Option D) can perform automated compliance remediation, when in fact those services are for aggregation and threat detection, not for executing configuration changes.

How to eliminate wrong answers

Option A is wrong because AWS Config rule compliance reporting only provides visibility into which resources are non-compliant; it does not include any mechanism to automatically remediate the non-compliant resources. Option C is wrong because AWS Security Hub findings export to S3 is a feature for centralizing security alerts and findings into an S3 bucket for analysis or archival, not for triggering automated remediation actions on AWS Config rule violations. Option D is wrong because Amazon GuardDuty threat response focuses on detecting and responding to malicious activity (e.g., compromised credentials or API calls) using threat intelligence, not on enforcing compliance rules like enabling S3 server-side encryption.

167
MCQmedium

A company manages multiple AWS accounts using AWS Organizations. The company wants employees to sign in using their existing corporate credentials from an on-premises Microsoft Active Directory. The company also needs a single sign-on (SSO) experience so that each employee can access the AWS Management Console for any authorized account without needing separate passwords. Additionally, the company wants to centrally manage permissions across all accounts. Which AWS service should the company use to meet these requirements?

A.AWS Identity and Access Management (IAM)
B.AWS IAM Identity Center (AWS SSO)
C.AWS Directory Service
D.Amazon Cognito
AnswerB

AWS IAM Identity Center is the service that centrally manages single sign-on access to multiple AWS accounts and applications. It integrates with Microsoft Active Directory and allows employees to use their existing corporate credentials to access the AWS Management Console across all authorized accounts with a single sign-on experience, and it centralizes permission management.

Why this answer

AWS IAM Identity Center (formerly AWS SSO) is the correct service because it provides a centralized place to manage single sign-on (SSO) access to multiple AWS accounts and applications. It integrates with an on-premises Microsoft Active Directory via the AWS Directory Service or an external identity provider, allowing employees to use their existing corporate credentials. IAM Identity Center also enables you to centrally define and manage permissions across all accounts in AWS Organizations, meeting all stated requirements.

Exam trap

The trap here is that candidates often confuse AWS Directory Service with a complete SSO solution, but Directory Service only provides the directory infrastructure, not the centralized permission management or SSO portal that IAM Identity Center delivers.

Why the other options are wrong

A

IAM does not provide SSO with corporate credentials or centralized permission management across multiple AWS accounts; it is designed for user and permission management within a single account.

C

AWS Directory Service provides managed Microsoft Active Directory but does not offer single sign-on (SSO) to the AWS Management Console or centralized permission management across multiple accounts; it only integrates with IAM for directory-based authentication.

D

Amazon Cognito is designed for customer identity and access management (CIAM) for web and mobile apps, not for workforce SSO with corporate Active Directory. It does not integrate with AWS Organizations to centrally manage permissions across multiple AWS accounts.

168
MCQmedium

A company uses AWS Organizations to manage multiple AWS accounts. The security team must ensure that all API activity across all accounts, including any new accounts added in the future, is recorded and delivered to a centralized S3 bucket for auditing. The solution should require minimal ongoing manual effort. Which AWS feature should the security team use?

A.Enable AWS CloudTrail in each account individually and configure the S3 bucket to allow cross-account access from the audit account.
B.Create an AWS CloudTrail organization trail that logs events for all accounts in the organization.
C.Use AWS Config to record API calls and deliver configuration history to an S3 bucket.
D.Set up Amazon GuardDuty to monitor API activity and send findings to a centralized S3 bucket.
AnswerB

An organization trail is a single trail that logs API activity for all current and future member accounts in AWS Organizations, automatically delivering logs to a centralized S3 bucket. This meets the requirements with minimal ongoing manual effort.

Why this answer

AWS CloudTrail organization trails automatically log events for all accounts in an AWS Organization, including any new accounts added in the future, and deliver them to a single S3 bucket without requiring per-account configuration. This satisfies the requirement for minimal ongoing manual effort and centralized auditing.

Exam trap

The trap here is that candidates confuse AWS Config (which records configuration history) with CloudTrail (which records API activity), or assume that individual account trails with cross-account access are simpler, overlooking the automatic future-account coverage of an organization trail.

Why the other options are wrong

A

This option requires manual effort to enable CloudTrail in each account individually and does not automatically include new accounts added in the future, violating the 'minimal ongoing manual effort' requirement.

C

AWS Config records resource configuration changes, not API activity. It does not capture all API calls like CloudTrail, and it cannot guarantee delivery of all API events to a centralized S3 bucket for auditing.

D

Amazon GuardDuty is a threat detection service that monitors for malicious activity, not a service for recording all API activity for auditing. It does not deliver a complete log of all API calls to an S3 bucket.

169
MCQeasy

A company wants all IAM users to verify their identity with both a password and a one-time code from an authenticator app before accessing the AWS Management Console. Which security control should the company enable?

A.AWS Shield
B.Multi-Factor Authentication (MFA)
C.AWS WAF
D.Amazon Cognito
AnswerB

Multi-Factor Authentication (MFA) is the correct control because it requires a second authentication factor in addition to a password, such as a time-based one-time password (TOTP) from an authenticator app or a hardware security key. With MFA enabled on an IAM user or the AWS account root user, even if a password is compromised, an attacker cannot fully authenticate without the physical second factor. AWS recommends MFA for all users, and the root user can have MFA enforced by an account policy to significantly reduce the risk of credential theft leading to unauthorized console access.

Why this answer

Multi-Factor Authentication (MFA) is the correct security control because it requires users to present two independent factors: something they know (password) and something they have (a one-time code from an authenticator app). This satisfies the company's requirement for both a password and a one-time code before accessing the AWS Management Console, significantly reducing the risk of unauthorized access even if a password is compromised.

Exam trap

The trap here is that candidates may confuse AWS WAF or Amazon Cognito with IAM MFA, but the question specifically asks for the security control that enforces both a password and a one-time code for IAM users, which is exclusively Multi-Factor Authentication (MFA) within IAM.

How to eliminate wrong answers

Option A is wrong because AWS Shield is a managed Distributed Denial of Service (DDoS) protection service that safeguards applications running on AWS, not an identity verification mechanism. Option C is wrong because AWS WAF (Web Application Firewall) monitors and controls HTTP/HTTPS traffic to web applications based on rules, but it does not enforce user authentication or MFA. Option D is wrong because Amazon Cognito provides user sign-up, sign-in, and access control for web and mobile applications, but it is not the native IAM feature for requiring MFA on IAM users; the correct control is enabling MFA directly on IAM users or groups.

170
MCQeasy

Which AWS service provides a Web Application Firewall that protects web applications from common exploits like SQL injection and cross-site scripting?

A.AWS Shield
B.AWS WAF
C.Amazon GuardDuty
D.Security Groups
AnswerB

AWS WAF is the correct choice because it is a web application firewall that inspects HTTP and HTTPS requests at Layer 7. It uses web ACLs and rule sets to identify and block SQL injection, cross-site scripting (XSS), and other OWASP Top 10 threats by examining request headers, bodies, and query strings. WAF can also rate-limit or block bad bots via bot control and managed rule groups.

Why this answer

AWS WAF is a web application firewall that helps protect web applications from common web exploits like SQL injection and cross-site scripting (XSS). It allows you to create custom rules that block, allow, or monitor web requests based on conditions such as IP addresses, HTTP headers, URI strings, and request body content. This makes it the correct service for the described use case.

Exam trap

The trap here is that candidates often confuse AWS Shield (DDoS protection) with AWS WAF (application-layer filtering), but Shield operates at the network/transport layer while WAF inspects application-layer payloads for exploits like SQL injection and XSS.

How to eliminate wrong answers

Option A is wrong because AWS Shield is a managed Distributed Denial of Service (DDoS) protection service, not a web application firewall; it does not inspect application-layer payloads for SQL injection or XSS. Option C is wrong because Amazon GuardDuty is a threat detection service that monitors for malicious activity using VPC Flow Logs, DNS logs, and CloudTrail events, but it does not actively filter or block web application exploits. Option D is wrong because Security Groups act as a virtual firewall at the instance or subnet level, filtering traffic based on IP addresses and ports, not application-layer content like HTTP request bodies or headers.

171
MCQmedium

A company's security team needs to receive near-real-time notifications whenever an IAM user in their AWS account performs an action that violates a defined baseline of expected behavior. Examples include launching an Amazon EC2 instance in an unauthorized AWS Region or modifying a security group to allow public SSH access from the internet. The solution must analyze continuous streams of AWS API activity to identify suspicious patterns and known malicious IP addresses. Which AWS service should the security team use?

A.Amazon GuardDuty
B.AWS CloudTrail
C.AWS Config
D.Amazon Inspector
AnswerA

Correct. Amazon GuardDuty uses threat intelligence and machine learning to analyze continuous streams of AWS API activity (via CloudTrail), VPC Flow Logs, and DNS logs. It detects suspicious patterns, unauthorized behavior, and known malicious IP addresses, and can send near-real-time alerts.

Why this answer

Amazon GuardDuty is a threat detection service that continuously monitors AWS API activity, including CloudTrail management events, VPC Flow Logs, and DNS logs, to identify suspicious patterns and known malicious IP addresses. It uses machine learning and integrated threat intelligence to detect anomalous behavior such as launching EC2 instances in unauthorized regions or modifying security groups for public SSH access, and can deliver near-real-time notifications via Amazon EventBridge or SNS. This makes it the correct choice for analyzing continuous streams of API activity and alerting on violations of a defined baseline.

Exam trap

The trap here is that candidates often confuse AWS CloudTrail's logging capability with GuardDuty's threat detection, assuming that simply recording API calls is sufficient for near-real-time security analysis, but CloudTrail lacks the built-in machine learning and threat intelligence needed to identify suspicious patterns or malicious IPs automatically.

Why the other options are wrong

B

AWS CloudTrail records API activity but does not analyze streams for suspicious patterns or known malicious IP addresses in near-real-time; it lacks built-in threat detection and anomaly identification.

C

AWS Config is a service for evaluating resource configurations against desired policies, not for analyzing continuous streams of API activity or identifying malicious IP addresses. It does not provide near-real-time threat detection based on API behavior.

D

Amazon Inspector is a vulnerability management service that scans for software vulnerabilities and unintended network exposure, not for analyzing real-time API activity streams to detect anomalous user behavior or known malicious IP addresses.

172
MCQmedium

A company is deploying a three-tier web application on AWS. The security team requires a network-level firewall that operates at the subnet level and can evaluate both inbound and outbound traffic using stateless rules. Which AWS feature should the company use to meet this requirement?

A.Security Groups
B.Network ACLs
C.AWS WAF
D.AWS Shield
AnswerB

Network ACLs are a stateless firewall operating at the subnet level, supporting both inbound and outbound rules. They evaluate traffic based on rule order and allow or deny traffic without maintaining connection state, matching the requirement.

Why this answer

Network ACLs (NACLs) are a stateless, subnet-level firewall that evaluates both inbound and outbound traffic based on numbered rules. Unlike security groups, NACLs do not maintain connection state, so rules must be explicitly defined for both directions, meeting the requirement for stateless inspection at the subnet boundary.

Exam trap

The trap here is confusing stateful security groups (which automatically track connection state) with stateless network ACLs, leading candidates to choose Security Groups when the question explicitly requires stateless, subnet-level filtering.

Why the other options are wrong

A

Security Groups operate at the instance level, not the subnet level, and use stateful rules, whereas the requirement specifies a subnet-level, stateless firewall.

C

AWS WAF is a web application firewall that operates at Layer 7 (application layer) and uses stateful rules to inspect HTTP/HTTPS traffic, not a network-level firewall at the subnet layer with stateless rules.

D

AWS Shield is a managed DDoS protection service, not a network-level firewall. It does not operate at the subnet level or provide stateless rule evaluation for inbound and outbound traffic.

173
MCQmedium

A company's security team is concerned about the risk of compromised Amazon EC2 instances being used for crypto-mining activities. They want a managed AWS service that can automatically detect unusual outbound network traffic patterns that are characteristic of crypto-mining, without requiring the installation of any agents on the instances. The team needs continuous monitoring and the ability to receive findings that include details about the suspicious activity. Which AWS service should the security team use?

A.Amazon GuardDuty
B.Amazon Macie
C.AWS Config
D.Amazon Detective
AnswerA

Amazon GuardDuty is a continuous, agentless threat detection service that uses machine learning, anomaly detection, and integrated threat intelligence to monitor VPC Flow Logs, DNS query logs, and AWS CloudTrail management events. It can detect crypto-mining behavior by identifying anomalous traffic patterns, such as connections to known cryptocurrency mining pools or unusually high outbound traffic, without requiring any software agents on your EC2 instances. Findings are automatically sent to Amazon EventBridge, enabling automated responses.

Why this answer

Amazon GuardDuty is a managed threat detection service that uses machine learning and integrated threat intelligence to continuously monitor for malicious activity, including unusual outbound network traffic patterns like those associated with crypto-mining. It operates at the AWS account and VPC level by analyzing DNS logs, VPC Flow Logs, and CloudTrail events, and it does not require any agents to be installed on EC2 instances. When suspicious activity is detected, GuardDuty generates detailed findings that include information about the affected resource, the type of threat, and recommended remediation steps.

Exam trap

The trap here is that candidates may confuse Amazon Detective's investigative capabilities with proactive detection, but Detective requires existing findings to analyze and does not perform continuous monitoring for crypto-mining traffic patterns on its own.

Why the other options are wrong

B

Amazon Macie is designed for discovering and protecting sensitive data (e.g., PII, credentials) in S3, not for detecting network-based threats like crypto-mining traffic from EC2 instances.

C

AWS Config is a service for evaluating resource configurations against desired policies, not for detecting network traffic patterns or security threats like crypto-mining. It does not analyze outbound network traffic for suspicious activity.

D

Amazon Detective analyzes and visualizes security data to investigate the root cause of findings, but it does not automatically detect unusual outbound traffic patterns for crypto-mining without agents; it relies on data from other services like GuardDuty.

174
MCQmedium

A company needs to grant an EC2 instance permission to write to an S3 bucket. What is the most secure way to accomplish this?

A.Hardcode the IAM user access keys in the application code
B.Store IAM access keys in environment variables on the EC2 instance
C.Attach an IAM role with the appropriate S3 permissions to the EC2 instance
D.Create an IAM user and configure the instance with its credentials
AnswerC

Attaching an IAM role to the EC2 instance is the AWS-recommended approach because the instance obtains temporary, automatically rotated credentials from the instance metadata service. The AWS SDK automatically retrieves these credentials, so no long-term access keys are written to code, configuration files, or environment variables. This enforces least-privilege permissions via the role policy and eliminates manual credential rotation or management.

Why this answer

Attaching an IAM role to an EC2 instance allows the instance to securely obtain temporary credentials via the instance metadata service (IMDS). These credentials are automatically rotated by AWS, eliminating the need to hardcode or store long-term access keys. The role's policy grants only the necessary S3 write permissions, following the principle of least privilege.

Exam trap

The trap here is that candidates may think storing credentials in environment variables is secure because they are not in code, but AWS explicitly recommends IAM roles over any form of long-term access key storage for EC2 instances.

How to eliminate wrong answers

Option A is wrong because hardcoding IAM user access keys in application code exposes them to source code leaks, version control exposure, and requires manual rotation, violating security best practices. Option B is wrong because storing IAM access keys in environment variables on the EC2 instance still uses long-term credentials that can be compromised if the instance is accessed or if the environment is dumped, and they lack automatic rotation. Option D is wrong because creating an IAM user and configuring the instance with its credentials involves distributing long-term access keys that must be securely stored and rotated, increasing the attack surface compared to using an IAM role with temporary credentials.

175
MCQeasy

Which AWS service provides managed threat detection that analyzes VPC Flow Logs, AWS CloudTrail events, and DNS logs to identify malicious activity and unauthorized behavior?

A.AWS Security Hub
B.Amazon Inspector
C.Amazon GuardDuty
D.AWS Config
AnswerC

Amazon GuardDuty is a continuous, intelligent threat-detection service that uses machine learning, anomaly detection, and integrated threat intelligence to monitor AWS CloudTrail management events, VPC Flow Logs, and DNS query logs. It can alert on compromised EC2 instances, malicious domains, port scanning, and unusual API call patterns that indicate account takeover or insider misuse. Because it directly analyzes these raw data sources for active threats, it is the correct service for this type of detection.

Why this answer

Amazon GuardDuty is a managed threat detection service that continuously monitors for malicious activity and unauthorized behavior by analyzing VPC Flow Logs, AWS CloudTrail event logs, and DNS logs. It uses machine learning, anomaly detection, and integrated threat intelligence to identify threats such as credential compromise, cryptocurrency mining, and API abuse without requiring additional security software or infrastructure.

Exam trap

The trap here is that candidates confuse AWS Security Hub (a central dashboard for findings) with GuardDuty (the actual threat detection engine), or assume Amazon Inspector performs network traffic analysis when it only scans for software vulnerabilities and network reachability.

How to eliminate wrong answers

Option A is wrong because AWS Security Hub is a centralized security posture management service that aggregates findings from multiple AWS services (including GuardDuty) and performs compliance checks, but it does not itself analyze VPC Flow Logs, CloudTrail, or DNS logs for threat detection. Option B is wrong because Amazon Inspector is a vulnerability management service that scans EC2 instances and container images for software vulnerabilities and unintended network exposure, not for analyzing flow logs or DNS logs to detect malicious activity. Option D is wrong because AWS Config is a resource inventory and compliance auditing service that evaluates resource configurations against desired policies and tracks configuration changes, but it does not perform threat detection or analyze network traffic or API logs for malicious behavior.

176
MCQmedium

A security team wants to automatically scan their Amazon EC2 instances for known software vulnerabilities (CVEs) and assess whether any instances have unintended network access paths open. Which AWS service performs these automated security assessments?

A.Amazon GuardDuty
B.Amazon Macie
C.Amazon Inspector
D.AWS Shield
AnswerC

Amazon Inspector is the native AWS vulnerability management service. It continuously scans EC2 instances (and optionally workloads in Amazon ECR and AWS Lambda) for software vulnerabilities and unintended network exposure. Agent-based or agentless assessments identify missing patches and CVEs using the Common Vulnerability Scoring System, then rank findings by severity and risk score. This matches the required automated security assessment of an EC2 instance's software vulnerabilities and network reachability.

Why this answer

Amazon Inspector is the correct service because it is specifically designed to perform automated vulnerability scans (including CVEs) and network reachability assessments on EC2 instances. It uses a combination of AWS security best practices and common vulnerability databases to identify software vulnerabilities and unintended network access paths, such as open ports or overly permissive security groups.

Exam trap

The trap here is that candidates often confuse Amazon GuardDuty's threat detection with vulnerability scanning, but GuardDuty focuses on behavioral anomalies and known malicious IPs, not on identifying software CVEs or network configuration exposures.

How to eliminate wrong answers

Option A is wrong because Amazon GuardDuty is a threat detection service that monitors for malicious activity and unauthorized behavior using machine learning and threat intelligence, not for scanning known software vulnerabilities or network access paths. Option B is wrong because Amazon Macie is a data security service that uses machine learning to discover, classify, and protect sensitive data (e.g., PII) in S3 buckets, not for vulnerability scanning of EC2 instances. Option D is wrong because AWS Shield is a managed DDoS protection service that safeguards against distributed denial-of-service attacks, not for automated vulnerability or network access assessments.

177
MCQmedium

A company uses an IAM role to allow an application running on Amazon EC2 to decrypt data stored in Amazon S3. The security team wants to enforce that the application can only use the decryption permission when the IAM role has a specific tag (e.g., 'Environment=Production'). Which approach should the security team implement to meet this requirement?

A.Add a condition to the KMS key policy that uses the 'kms:RequestTag/ConditionKey' to require the tag on the caller.
B.Add a condition to the IAM role's trust policy that denies the 'kms:Decrypt' action unless the role has the tag.
C.Add a condition to the IAM policy that grants the 'kms:Decrypt' permission with a condition on 'aws:PrincipalTag' to require the tag.
D.Add a condition to the S3 bucket policy that denies all access unless the IAM role has the required tag.
AnswerC

Correct. IAM policies support the 'aws:PrincipalTag' condition key, which checks the tags attached to the IAM principal (user or role) making the request. By adding a condition like 'StringEquals': {'aws:PrincipalTag/Environment': 'Production'} to the IAM policy that grants 'kms:Decrypt', the decryption action is only allowed when the role has the specified tag. This is a form of attribute-based access control (ABAC).

Why this answer

The condition key 'aws:PrincipalTag' in an IAM policy allows you to control access based on tags attached to the IAM principal (the role). By adding a condition that requires 'aws:PrincipalTag/Environment' to equal 'Production', the 'kms:Decrypt' permission is only effective when the IAM role has that specific tag. This directly enforces the security team's requirement at the IAM policy level, which is the appropriate place to restrict permissions based on principal attributes.

Exam trap

The trap here is confusing which policy document (IAM policy vs. key policy vs. bucket policy) and which condition key (PrincipalTag vs. RequestTag) is appropriate for restricting actions based on the caller's tags.

Why the other options are wrong

A

The condition 'kms:RequestTag/ConditionKey' checks for tags on the KMS API request, not on the IAM role. The requirement is to enforce that the IAM role has a specific tag, not that the request includes a tag.

B

The IAM role's trust policy controls who can assume the role, not what actions the role can perform. Adding a condition to deny 'kms:Decrypt' in the trust policy is ineffective because trust policies do not evaluate permissions for service actions like KMS decryption.

D

The S3 bucket policy cannot enforce conditions on the IAM role's tags for KMS decryption; it controls access to S3 objects, not KMS actions. The requirement is to restrict the KMS decryption permission, which is governed by IAM policies and KMS key policies, not S3 bucket policies.

178
Drag & Dropmedium

Drag and drop the steps to set up a cross-region read replica for Amazon RDS in the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

Cross-region read replica: enable backups, configure, create replica, wait, and optionally promote.

179
MCQmedium

A company runs multiple workloads on AWS and must ensure that all Amazon S3 buckets have server-side encryption enabled. The compliance team wants to automatically detect any S3 bucket that is created without encryption and receive an alert. They also want to continuously monitor existing buckets for compliance. Which AWS service should they use?

A.AWS Config
B.Amazon GuardDuty
C.AWS CloudTrail
D.Amazon Inspector
AnswerA

AWS Config continuously records and evaluates the configuration of AWS resources against desired policies, such as managed rules like 's3-bucket-server-side-encryption-enabled'. It can detect resource drift from expected settings and trigger automatic notifications when a resource becomes non-compliant, enabling you to enforce and monitor encryption on S3 buckets. This makes AWS Config the correct service for ensuring buckets are encrypted.

Why this answer

AWS Config is the correct service because it provides continuous monitoring and evaluation of AWS resource configurations against desired policies. You can create an AWS Config rule, such as the managed rule 's3-bucket-server-side-encryption-enabled', which automatically checks whether each S3 bucket has server-side encryption enabled. When a non-compliant bucket is detected (either newly created or existing), AWS Config can trigger an Amazon SNS notification to alert the compliance team, meeting both the detection and alerting requirements.

Exam trap

The trap here is that candidates often confuse AWS Config (configuration auditing) with AWS CloudTrail (API auditing), thinking that CloudTrail can detect non-compliant configurations, but CloudTrail only logs actions and does not evaluate the resulting state of resources against compliance rules.

Why the other options are wrong

B

Amazon GuardDuty is a threat detection service that monitors for malicious activity and unauthorized behavior, not for compliance checks like S3 bucket encryption settings.

C

AWS CloudTrail records API calls for auditing, but it does not continuously monitor resource configurations or evaluate compliance rules. It cannot detect or alert on S3 buckets lacking encryption unless you manually analyze logs.

D

Amazon Inspector is a vulnerability management service that scans workloads for software vulnerabilities and unintended network exposure, not for detecting S3 bucket encryption configurations.

180
MCQmedium

A security team wants to automatically detect unusual activity in their AWS account, such as EC2 instances communicating with known malicious IP addresses, unusual API calls indicating credential compromise, or cryptocurrency mining activity. Which AWS service uses machine learning to detect these threats?

A.Amazon Inspector
B.AWS Security Hub
C.Amazon GuardDuty
D.Amazon Macie
AnswerC

Amazon GuardDuty is a continuous, intelligent threat detection service that analyzes a stream of AWS foundational data sources—including AWS CloudTrail management and data events, VPC Flow Logs, and DNS query logs—using integrated machine learning, anomaly detection, and curated threat intelligence feeds. It detects a wide range of threats such as compromised EC2 instances exhibiting crypto mining behavior, unusual API calls from suspicious IPs, and communication with known malicious domains or command-and-control servers. When GuardDuty identifies a finding, it raises an alert in the console, optionally publishes to Amazon EventBridge or CloudWatch, and integrates with AWS Security Hub for centralized visibility—making it the correct answer for detecting this type of activity.

Why this answer

Amazon GuardDuty is a threat detection service that uses machine learning, anomaly detection, and integrated threat intelligence to continuously monitor for malicious or unauthorized behavior in AWS accounts and workloads. It specifically analyzes VPC Flow Logs, AWS CloudTrail management and data events, and DNS logs to detect patterns such as EC2 instances communicating with known malicious IP addresses, unusual API calls indicative of credential compromise, and cryptocurrency mining activity. This makes it the correct choice for the described use case.

Exam trap

The trap here is that candidates often confuse Amazon GuardDuty with Amazon Inspector or AWS Security Hub, mistakenly thinking that vulnerability scanning or centralized security findings equate to active threat detection, whereas GuardDuty is the only service that continuously monitors for malicious behavior using machine learning and threat intelligence.

How to eliminate wrong answers

Option A is wrong because Amazon Inspector is a vulnerability management service that scans EC2 instances and container images for software vulnerabilities and unintended network exposure, not for detecting malicious activity like communication with known bad IPs or credential compromise. Option B is wrong because AWS Security Hub is a centralized security posture management service that aggregates findings from multiple AWS services (including GuardDuty) and checks compliance against standards, but it does not itself perform machine learning-based threat detection. Option D is wrong because Amazon Macie is a data security service that uses machine learning to discover, classify, and protect sensitive data (e.g., PII, financial records) stored in Amazon S3, not to detect threats like malicious IP communication or cryptocurrency mining.

181
MCQmedium

A company stores sensitive financial data in Amazon S3 and must encrypt it at rest. The compliance team mandates that the encryption key must be rotated at least once per year, and the key material must be generated and managed by the company within AWS. The company wants a fully automated solution that requires no manual intervention for key rotation. Which AWS service or feature should the company use?

A.Use Amazon S3 server-side encryption with customer-provided encryption keys (SSE-C).
B.Create an AWS KMS customer managed key and enable automatic annual rotation.
C.Use an AWS KMS AWS managed key (aws/s3) which automatically rotates the key every year.
D.Use AWS CloudHSM to generate and manage the key, and implement a custom cron job to rotate the key.
AnswerB

A customer-managed KMS key gives you full control over the key, including its key policy, aliases, and lifecycle, while automatic key rotation in AWS KMS generates new cryptographic key material every year and retains the previous material so existing ciphertext remains decryptable. The key ID, ARN, and CMK metadata do not change, so S3 encryption and IAM policies continue to work without any object rewrites. Because you own the key and KMS handles the annual rotation automatically, this option meets both the company-managed requirement and the need for a low-overhead, fully supported rotation mechanism.

Why this answer

AWS KMS customer managed keys support automatic annual rotation, which satisfies the compliance requirement for key rotation without manual intervention. The company retains control over the key material since it is generated and managed within AWS KMS, meeting the mandate that the company manages the keys within AWS.

Exam trap

The trap here is that candidates may confuse AWS managed keys (which rotate automatically but are not customer-managed) with customer managed keys, or assume that SSE-C or CloudHSM are simpler solutions without realizing they fail the 'fully automated' or 'within AWS' requirements.

Why the other options are wrong

A

SSE-C requires the company to manage the encryption keys themselves, including key rotation, which contradicts the requirement for a fully automated solution with no manual intervention.

C

AWS managed keys (aws/s3) do not support automatic annual rotation; they are rotated only when AWS deems necessary, not on a fixed yearly schedule. The compliance team's mandate for annual rotation cannot be guaranteed with this option.

182
MCQmedium

A company runs a web application on Amazon CloudFront and an Application Load Balancer (ALB). The security team wants to protect the application from common web attacks such as SQL injection and cross-site scripting (XSS). Additionally, the company needs to block requests from specific countries due to compliance requirements. The security team prefers a managed service that provides pre-configured rule sets and integrates directly with CloudFront and ALB without requiring additional infrastructure. Which AWS service should the security team use?

A.AWS Network Firewall
B.AWS Shield Advanced
C.AWS WAF
D.AWS Firewall Manager
AnswerC

AWS WAF is a web application firewall that protects against common web exploits like SQL injection and XSS. It supports pre-configured managed rule sets, custom rules, and geographic (geo) blocking. It integrates directly with Amazon CloudFront and Application Load Balancer, meeting all the requirements.

Why this answer

AWS WAF is a managed web application firewall that protects web applications from common exploits like SQL injection and cross-site scripting (XSS) using pre-configured rule sets (e.g., AWS Managed Rules). It integrates natively with both CloudFront and Application Load Balancers (ALBs) without requiring additional infrastructure, and it supports geo-blocking to restrict requests from specific countries, meeting all stated requirements.

Exam trap

The trap here is that candidates may confuse AWS WAF with AWS Shield Advanced, thinking Shield Advanced provides application-layer attack protection, but Shield Advanced focuses on DDoS mitigation at the network and transport layers, not on inspecting HTTP payloads for SQL injection or XSS.

Why the other options are wrong

A

AWS Network Firewall is a managed firewall for VPCs that filters traffic at the network and transport layers (Layer 3-4), not at the application layer. It cannot inspect HTTP requests for SQL injection or XSS, nor does it integrate directly with CloudFront or ALB for web ACLs.

B

AWS Shield Advanced provides DDoS protection but does not include pre-configured rule sets for SQL injection or XSS, nor does it offer geo-blocking capabilities. It also does not integrate directly with ALB for application-layer filtering.

D

AWS Firewall Manager is a policy management service that centrally configures and monitors firewall rules across accounts, but it does not itself provide the pre-configured rule sets for SQL injection or XSS protection. It manages AWS WAF rules, not the rules themselves, and does not directly integrate with CloudFront and ALB for web traffic inspection.

183
MCQmedium

Which AWS service provides DDoS protection for all AWS customers at no additional charge and automatically protects resources at Layers 3 and 4?

A.AWS WAF
B.AWS Shield Advanced
C.AWS Shield Standard
D.Amazon CloudFront with geo-restriction
AnswerC

AWS Shield Standard is the correct answer because it is automatically enabled for every AWS customer at no additional charge, providing always-on detection and inline mitigation for infrastructure-layer (Layer 3 and 4) DDoS attacks such as SYN floods and UDP reflection. It protects all AWS resources, including EC2, Elastic Load Balancing, CloudFront, and Route 53, without any manual configuration or extra cost. This makes it the only option that meets the criteria of being automatically included with AWS.

Why this answer

AWS Shield Standard is automatically enabled for all AWS customers at no additional cost and provides always-on detection and inline mitigation of DDoS attacks targeting Layers 3 (network) and 4 (transport) of the OSI model. It protects common AWS resources such as Amazon CloudFront, Elastic Load Balancing, and Amazon Route 53 from common infrastructure-layer attacks like SYN floods and UDP reflection attacks.

Exam trap

The trap here is that candidates often confuse AWS Shield Standard (free, automatic Layer 3/4 protection) with AWS Shield Advanced (paid, enhanced protection including Layer 7 and cost coverage), or mistakenly think AWS WAF provides Layer 3/4 DDoS protection when it only operates at Layer 7.

How to eliminate wrong answers

Option A is wrong because AWS WAF is a web application firewall that operates at Layer 7 (application layer) and is not designed for Layer 3/4 DDoS protection; it also incurs additional charges. Option B is wrong because AWS Shield Advanced is a paid service that provides enhanced DDoS protection, including cost protection and 24/7 access to the DDoS Response Team, not a free service for all customers. Option D is wrong because Amazon CloudFront with geo-restriction is a content delivery service that can restrict access by geographic location, but it does not provide DDoS protection at Layers 3 and 4 and is not a free service.

184
MCQeasy

A company stores financial reports in Amazon S3. The security team needs to automatically detect whether any of these reports contain sensitive data, such as personally identifiable information (PII) like credit card numbers or social security numbers. The team wants a fully managed service that continuously scans the S3 buckets and reports findings in a centralized dashboard. Which AWS service should the security team use to meet these requirements?

A.Amazon Inspector
B.Amazon Macie
C.AWS Config
D.AWS Security Hub
AnswerB

Amazon Macie is designed to discover and protect sensitive data in S3. It automatically scans objects using ML and pattern matching to find PII, credentials, and other sensitive content, and provides findings in the Macie dashboard.

Why this answer

Amazon Macie is a fully managed data security and data privacy service that uses machine learning and pattern matching to automatically discover, classify, and protect sensitive data such as PII (e.g., credit card numbers, social security numbers) stored in Amazon S3. It continuously scans S3 buckets and provides a centralized dashboard for findings, meeting the requirement for automated detection and reporting without manual intervention.

Exam trap

AWS often tests the distinction between services that inspect resource configurations (AWS Config) versus those that inspect data content (Macie), and candidates may confuse Security Hub as a scanning service when it is actually an aggregator of findings from other services.

Why the other options are wrong

A

Amazon Inspector is designed for vulnerability management and network security assessments of EC2 instances and container workloads, not for scanning S3 objects for sensitive data like PII.

C

AWS Config is used for evaluating resource configurations against desired policies, not for scanning S3 objects for sensitive data like PII. It does not perform content inspection of objects.

D

AWS Security Hub aggregates security findings from multiple AWS services but does not perform its own data scanning for sensitive content in S3. It relies on findings from services like Amazon Macie, so it cannot directly detect PII in financial reports.

185
MCQmedium

A company stores sensitive customer data in an Amazon S3 bucket. The security team wants to record every GetObject and PutObject API call made against the bucket, including the identity of the caller, the source IP address, and the time of the request. They need to store these records in a separate centralized S3 bucket and analyze them using Amazon Athena for security audits. Which AWS feature should the security team enable?

A.AWS Config managed rules
B.Amazon S3 server access logging
C.AWS CloudTrail data events
D.Amazon GuardDuty
AnswerC

Correct. AWS CloudTrail data events capture object-level API operations on Amazon S3 objects, including GetObject and PutObject. These logs include caller identity, source IP, and request time. They can be delivered to an S3 bucket and queried with Amazon Athena for security audits.

Why this answer

AWS CloudTrail data events (Option C) are the correct choice because they capture detailed information about S3 object-level API operations such as GetObject and PutObject, including the caller identity, source IP address, and request time. These logs can be delivered to a centralized S3 bucket and queried using Amazon Athena for security audits, meeting all stated requirements.

Exam trap

AWS often tests the distinction between S3 server access logs (which log requests but lack caller identity) and CloudTrail data events (which capture full API details including identity), leading candidates to mistakenly choose server access logging for security auditing.

Why the other options are wrong

A

AWS Config managed rules evaluate resource configurations for compliance, but they do not record individual API calls like GetObject or PutObject, nor do they capture caller identity, source IP, or request time.

B

Amazon S3 server access logging provides records of requests made to a bucket, but it does not capture the identity of the caller (e.g., IAM user or role) or the source IP address in a structured format suitable for Athena analysis. It logs details like requester type (e.g., AWS account ID) but not the specific caller identity or IP address required by the question.

D

Amazon GuardDuty is a threat detection service that monitors for malicious activity, but it does not record detailed data events like GetObject and PutObject API calls with caller identity and source IP for auditing purposes.

186
MCQmedium

A development team is building a mobile application and needs to add user registration, sign-in, and authentication (including social login via Google and Facebook) without building and managing their own authentication backend. Which AWS service provides managed user authentication for applications?

A.AWS IAM
B.AWS Directory Service
C.Amazon Cognito
D.AWS SSO
AnswerC

Amazon Cognito User Pools provide a fully managed identity service specifically for application users, handling sign-up, sign-in, password reset, and MFA without requiring custom backend code. They support federation with social identity providers like Google and Facebook, as well as enterprise SAML or OIDC providers, and can issue JWTs for API authorization. Cognito also offers pre-built UI components and SDKs for mobile and web apps, and it scales to millions of users. This makes it the correct service for authenticating end users of an application, exactly matching the question's scenario.

Why this answer

Amazon Cognito is the correct choice because it provides a fully managed user identity and authentication service specifically designed for mobile and web applications. It supports user registration, sign-in, and social login via identity providers like Google and Facebook through its user pools and identity pools features, eliminating the need to build and manage a custom authentication backend.

Exam trap

The trap here is that candidates often confuse AWS IAM with user authentication for applications, but IAM is strictly for AWS resource access control, not for end-user identity management in custom apps.

How to eliminate wrong answers

Option A is wrong because AWS IAM is used for managing permissions and access control for AWS resources and services, not for authenticating end-users of an application with social login or user registration. Option B is wrong because AWS Directory Service is designed to set up and run Microsoft Active Directory in the AWS cloud, which is intended for enterprise identity management and not for mobile app user authentication with social providers. Option D is wrong because AWS SSO (now AWS IAM Identity Center) is a service for centrally managing single sign-on access to multiple AWS accounts and business applications, not for building user registration and social login into a custom mobile application.

187
Drag & Dropmedium

Drag and drop the steps to set up an S3 bucket with versioning and public access blocked in the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

Bucket creation comes first, then enabling versioning, blocking public access, uploading objects, and optionally setting lifecycle rules.

188
MCQmedium

A security team needs to demonstrate to auditors that no AWS infrastructure has been modified between two audit periods. Which AWS service provides a continuous record of configuration changes with before-and-after state for all resources?

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

AWS Config is purpose-built for configuration auditing because it continuously records and evaluates the state of supported AWS resources as configuration items. Each configuration item is stored with a version ID, a timestamp, and the complete JSON representation of the resource, enabling auditors to replay how the resource looked before and after any change. Config also supports rules for compliance checks and can deliver configuration snapshots to an S3 bucket for long-term retention, making it the definitive service for infrastructure change history.

Why this answer

AWS Config is the correct service because it continuously records configuration changes to AWS resources and provides a detailed history of each change, including the before-and-after state. This allows the security team to demonstrate to auditors that no infrastructure modifications occurred between two audit periods by reviewing the configuration timeline and compliance snapshots.

Exam trap

The trap here is that candidates often confuse AWS CloudTrail (which logs API calls) with AWS Config (which records resource configuration states), but CloudTrail does not provide the before-and-after configuration state that auditors require for demonstrating no infrastructure changes.

How to eliminate wrong answers

Option A is wrong because AWS CloudTrail records API activity and events (who did what, when, and from where), but it does not capture the before-and-after configuration state of resources; it logs actions, not the resulting resource configuration. Option C is wrong because Amazon CloudWatch is a monitoring service for metrics, logs, and alarms, not a configuration tracking service; it cannot provide a historical record of resource configuration changes with state details. Option D is wrong because Amazon GuardDuty is a threat detection service that analyzes logs and network traffic for malicious activity, not a configuration change recorder; it does not track or store resource configuration states.

189
MCQmedium

A financial services company is preparing for an annual third-party audit. The auditor has requested a copy of the AWS SOC 2 Type II report to evaluate the security controls of the AWS infrastructure. The company needs to retrieve the report as quickly as possible without raising a support ticket. Which AWS service should they use?

A.AWS Security Hub
B.AWS Config
C.AWS Artifact
D.AWS Trusted Advisor
AnswerC

AWS Artifact is the designated service for obtaining compliance documentation directly from AWS, offering on-demand access to SOC, PCI, and ISO reports along with agreements such as HIPAA BAA. These reports can be downloaded from the AWS Management Console or programmatically via the AWS Artifact API, making it the appropriate choice for an annual compliance review. Its role is to provide the actual third-party attestation documents, not to assess your resource configurations.

Why this answer

AWS Artifact is the correct service because it provides on-demand, self-service access to AWS compliance reports, including SOC reports, PCI reports, and ISO certifications, without needing to open a support ticket. The auditor's request for a SOC 2 Type II report is exactly the use case AWS Artifact is designed for, allowing the company to download the report immediately from the AWS Management Console or via the AWS CLI.

Exam trap

The trap here is that candidates may confuse AWS Artifact with AWS Security Hub or AWS Config, thinking those services provide compliance reports, when in fact AWS Artifact is the only service that directly serves downloadable audit documentation without requiring a support ticket.

Why the other options are wrong

A

AWS Security Hub provides a comprehensive view of security alerts and compliance status across AWS accounts, but it does not provide access to AWS SOC reports. The auditor specifically requested the SOC 2 Type II report, which is available through AWS Artifact.

B

AWS Config is used for resource inventory, configuration history, and compliance auditing of AWS resources, not for downloading compliance reports like SOC reports. The auditor's request is for a specific AWS compliance document, which is provided by AWS Artifact.

D

AWS Trusted Advisor provides best practice recommendations for cost optimization, performance, security, and fault tolerance, but it does not provide access to compliance reports like SOC reports. The company needs to retrieve the AWS SOC 2 Type II report, which is available through AWS Artifact, not Trusted Advisor.

190
MCQmedium

A company runs a web application on Amazon EC2 instances behind an Application Load Balancer (ALB). The company uses a custom domain name and requires HTTPS for all traffic. The security team provisions an SSL/TLS certificate using AWS Certificate Manager (ACM) and associates it with the ALB. Which of the following is an advantage of using ACM over manually managing certificates?

A.ACM automatically renews the certificate before it expires, and the renewed certificate is automatically applied to the associated load balancer.
B.ACM encrypts the traffic between the ALB and the EC2 instances, ensuring end-to-end encryption.
C.ACM provides a certificate that can be exported and installed on any on-premises server for free.
D.ACM requires the company to store the private key in a secure location outside of AWS.
AnswerA

Correct. When DNS validation is configured, ACM automatically renews certificates before expiration and applies the renewed certificate to the associated AWS resources such as an ALB, eliminating the need for manual renewal and reducing the risk of certificate expiration.

Why this answer

AWS Certificate Manager (ACM) automatically renews SSL/TLS certificates before they expire, and the renewed certificate is seamlessly applied to the associated AWS resources, such as an Application Load Balancer (ALB). This eliminates the manual effort of tracking expiration dates, generating new certificates, and re-associating them, which is a key operational advantage over self-managed certificates.

Exam trap

The trap here is that candidates may confuse ACM's automatic renewal with encryption capabilities or assume ACM certificates are portable, when in fact ACM only manages certificates for AWS services and does not provide encryption between the load balancer and backend instances.

Why the other options are wrong

B

ACM does not encrypt traffic between the ALB and EC2 instances; it only offloads SSL/TLS termination at the ALB. End-to-end encryption requires configuring HTTPS on the instances themselves.

C

ACM certificates cannot be exported for use on on-premises servers; they are tied to AWS services and cannot be downloaded or installed externally.

D

ACM does not require storing the private key outside AWS; in fact, ACM manages the private key securely within AWS and does not allow export of private keys for certificates used with ACM-integrated services like ALB.

191
MCQmedium

A company's security team needs to run automated vulnerability scans on all Amazon EC2 instances in their production environment. They require a managed service that checks for common vulnerabilities and exposures (CVEs) and identifies insecure network configurations. The scans must be scheduled to run weekly and the results must be viewable in the AWS Management Console. Which AWS service should the team use?

A.Amazon Inspector
B.AWS Shield
C.Amazon GuardDuty
D.AWS WAF
AnswerA

Amazon Inspector is the correct service. It is a vulnerability management service that automatically scans EC2 instances for software vulnerabilities and network exposure, providing a managed solution for scheduling scans and viewing findings in the AWS Management Console.

Why this answer

Amazon Inspector is a managed vulnerability management service that automatically scans EC2 instances for software vulnerabilities (CVEs) and unintended network exposure. It supports scheduled recurring scans (e.g., weekly) and integrates with the AWS Management Console to display findings, making it the correct choice for the team's requirements.

Exam trap

The trap here is confusing Amazon Inspector (vulnerability scanning) with Amazon GuardDuty (threat detection) or AWS Shield (DDoS protection), as all three are security services but serve fundamentally different purposes—candidates often pick GuardDuty because it 'detects threats' without realizing it does not scan for CVEs or network configurations.

Why the other options are wrong

B

AWS Shield is a managed DDoS protection service, not a vulnerability scanner. It does not perform CVE checks or assess insecure network configurations on EC2 instances.

C

Amazon GuardDuty is a threat detection service that monitors for malicious activity and unauthorized behavior, not a vulnerability scanning service that checks for CVEs and insecure configurations on EC2 instances.

D

AWS WAF is a web application firewall that protects web applications from common exploits, not a vulnerability scanning service for EC2 instances. It does not perform automated scans for CVEs or insecure network configurations.

192
MCQmedium

A company is using AWS Organizations to manage multiple AWS accounts. The security team wants to ensure that users in the development accounts cannot disable AWS CloudTrail logging or delete CloudTrail trails, even if those users have full administrator permissions within their own accounts. The team needs a central mechanism that is enforced across all development accounts regardless of individual IAM policies. Which AWS feature should the security team use to meet this requirement?

A.Service control policies (SCPs)
B.IAM policies
C.AWS Config rules
D.Amazon CloudWatch Events
AnswerA

Correct. SCPs are used within AWS Organizations to set permission guardrails for member accounts. They are evaluated before IAM policies, so they can block actions even for users with full administrative IAM permissions, making them ideal for centrally enforcing restrictions like preventing CloudTrail from being disabled.

Why this answer

Service control policies (SCPs) are a feature of AWS Organizations that allow you to centrally control the maximum available permissions for all accounts in an organization. SCPs act as a guardrail, restricting what actions users and roles in member accounts can perform, even if they have full administrator permissions via IAM policies. By applying an SCP that denies the `cloudtrail:DeleteTrail` and `cloudtrail:StopLogging` actions, the security team can enforce that CloudTrail cannot be disabled or deleted across all development accounts, regardless of individual IAM configurations.

Exam trap

The trap here is that candidates often confuse SCPs with IAM policies, thinking IAM policies can centrally restrict actions across accounts, but SCPs are the only mechanism that can enforce a deny across all accounts in an AWS Organization regardless of local administrator privileges.

Why the other options are wrong

B

IAM policies are account-specific and cannot be centrally enforced across multiple accounts in AWS Organizations. Even with full administrator permissions, users could modify or remove IAM policies within their own accounts, so IAM policies cannot prevent them from disabling CloudTrail.

D

Amazon CloudWatch Events can trigger actions based on CloudTrail API calls, but it cannot prevent users from disabling CloudTrail or deleting trails. It is a reactive monitoring service, not a preventive control.

193
MCQmedium

A company requires all IAM users to have multi-factor authentication (MFA) enabled for AWS Management Console access. The security team needs an automated way to continuously detect any IAM user without an MFA device and generate a compliance report. The solution must not require custom code. Which AWS service should the team use?

A.AWS Config
B.IAM Access Analyzer
C.AWS Trusted Advisor
D.Amazon Inspector
AnswerA

AWS Config is the appropriate service because it offers a managed rule named iam-user-mfa-enabled, which evaluates each IAM user and returns a non-compliant result if MFA is not activated. Config continuously records changes to IAM users and, when paired with conformance packs, can provide automated compliance reports and even trigger remediation actions. This satisfies the requirement without requiring any custom code.

Why this answer

AWS Config is correct because it provides a managed, rules-based evaluation of AWS resource configurations. By enabling the 'iam-user-mfa-enabled' managed rule, AWS Config continuously checks all IAM users for the presence of an MFA device and can automatically trigger remediation actions or generate compliance reports via AWS Config aggregators, all without any custom code.

Exam trap

The trap here is that candidates often confuse AWS Trusted Advisor's root account MFA check with the broader requirement to check all IAM users, or they mistakenly think IAM Access Analyzer can audit user-level security settings like MFA.

Why the other options are wrong

B

IAM Access Analyzer is designed to analyze resource policies to identify resources shared with external entities, not to detect IAM users without MFA devices. It does not provide continuous compliance monitoring or reporting for MFA status.

C

AWS Trusted Advisor provides best-practice checks, including MFA on root account, but it does not continuously detect IAM users without MFA devices or generate custom compliance reports. It lacks the granularity to check all IAM users and cannot be configured for automated remediation or custom rules.

D

Amazon Inspector is a vulnerability management service that scans for software vulnerabilities and unintended network exposure, not for IAM user MFA compliance. It cannot detect or report on IAM user MFA status.

194
MCQmedium

A company suspects that an IAM role used by an EC2 instance has been granted excessive permissions. Which AWS service can generate a policy that includes only the permissions actually used over the last 90 days?

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

AWS IAM Access Analyzer generates least-privilege policies by analyzing CloudTrail logs and the IAM Access Analyzer findings to determine which permissions were actually used by a role or user over a specified analysis period. You can configure the analysis window, and then IAM Access Analyzer creates a policy containing only the actions that were invoked, helping you replace overly broad policies with precise ones. This directly matches the scenario of leveraging actual usage history to generate replacement policies.

Why this answer

AWS IAM Access Analyzer can generate a policy based on the access activity recorded in AWS CloudTrail logs over the trailing 90 days. This generated policy includes only the permissions that were actually used by the IAM role, allowing you to replace an overly permissive policy with a least-privilege version.

Exam trap

The trap here is that candidates confuse AWS IAM Access Analyzer's policy generation feature with its external access analysis feature, or mistakenly think AWS Config or Trusted Advisor can generate usage-based policies when they cannot.

How to eliminate wrong answers

Option A is wrong because AWS Trusted Advisor provides best-practice checks and recommendations (e.g., security groups open to 0.0.0.0/0) but cannot generate a policy based on historical usage. Option B is wrong because Amazon GuardDuty is a threat detection service that monitors for malicious activity using anomaly detection and threat intelligence; it does not analyze IAM permissions usage to generate policies. Option D is wrong because AWS Config evaluates resource configurations against rules and tracks configuration changes, but it does not analyze CloudTrail access logs to produce a usage-based policy.

195
MCQmedium

Which AWS service provides a finding-based security recommendations service that uses AI to identify security threats and anomalies, going beyond simple rule-based Config checks?

A.AWS Config
B.Amazon GuardDuty
C.Amazon DevOps Guru
D.Amazon Inspector
AnswerB

Amazon GuardDuty is a threat detection service that continuously analyzes AWS CloudTrail management and data events, VPC Flow Logs, and DNS logs using machine learning, anomaly detection, and integrated threat intelligence. It identifies suspicious behavior such as unusual API calls, compromised credentials, cryptocurrency mining, or reconnaissance from known malicious IPs. Findings include a severity level and recommended remediation actions, which makes GuardDuty the service that uses ML for security recommendations.

Why this answer

Amazon GuardDuty is a security monitoring service that uses machine learning to analyze AWS logs (CloudTrail, VPC Flow Logs, DNS) and identifies threats, anomalies, and suspicious behavior. It provides findings and security recommendations, going beyond simple rule-based checks like AWS Config by using AI to detect patterns indicative of security issues. Amazon DevOps Guru focuses on operational health, not security, so it does not match the 'security recommendations' description.

Exam trap

Candidates may confuse Amazon DevOps Guru's operational anomaly detection with security anomaly detection, but DevOps Guru is not a security service. GuardDuty is the correct security service using AI for threat detection.

How to eliminate wrong answers

Option A is wrong because AWS Config is a service that evaluates resource configurations against predefined rules (e.g., managed or custom Config rules) and provides compliance status, but it does not use AI to detect anomalies or operational issues—it is purely rule-based. Option B is wrong because Amazon GuardDuty is a threat detection service that uses machine learning to identify malicious activity and unauthorized behavior, but it focuses on security threats (e.g., compromised credentials, API abuse) rather than operational issues and anomalies in application performance. Option D is wrong because Amazon Inspector is a vulnerability management service that scans workloads for software vulnerabilities and unintended network exposure, but it does not use AI to detect operational anomalies or provide finding-based security recommendations beyond vulnerability assessments.

196
MCQeasy

A developer needs to read objects from a specific Amazon S3 bucket. Following AWS security best practices, which approach should be used when creating the IAM policy for this developer?

A.Grant AdministratorAccess to ensure all required permissions are included
B.Grant AmazonS3FullAccess to cover all S3 operations
C.Grant only s3:GetObject permission on the specific bucket
D.Use the root account credentials since they guarantee access
AnswerC

Granting only s3:GetObject on the specific S3 bucket ARN (and optionally the object ARN) gives the developer exactly the read capability required — no more, no less. This is the textbook application of the least privilege principle: the IAM policy allows a single action on a single resource, so the developer cannot list, write, delete, or modify any other object or bucket. If the credentials leak, the attacker can only read that one bucket's objects, which is the minimal possible impact that still satisfies the business need.

Why this answer

The principle of least privilege dictates granting only the specific permissions required for the task. By attaching an IAM policy with only the s3:GetObject action on the specific bucket ARN, the developer can read objects without having unnecessary permissions that could lead to accidental or malicious changes. This approach aligns with AWS security best practices for IAM policies.

Exam trap

The trap here is that candidates often choose broad managed policies like AmazonS3FullAccess because they seem 'safe' or 'easier to manage,' overlooking that AWS explicitly recommends least-privilege policies and that over-permissioning is a common cause of data breaches.

How to eliminate wrong answers

Option A is wrong because AdministratorAccess grants full administrative permissions to all AWS services and resources, which violates the principle of least privilege and exposes the account to significant security risks. Option B is wrong because AmazonS3FullAccess allows all S3 operations (including PutObject, DeleteObject, and bucket configuration changes) on all buckets, far exceeding the read-only requirement and creating unnecessary attack surface. Option D is wrong because using root account credentials is explicitly against AWS security best practices; root credentials should be reserved for limited account management tasks and never used for routine operations due to their unrestricted power and lack of MFA protection.

197
MCQmedium

A company runs a critical web application on AWS behind an Application Load Balancer. The security team is concerned about the risk of Distributed Denial of Service (DDoS) attacks that could deplete application resources and incur high costs due to auto scaling. The company wants a managed service that provides enhanced DDoS detection, access to the AWS DDoS Response Team (DRT), and financial protection against scaling costs associated with DDoS attacks. Which AWS service should the company use?

A.AWS Shield Standard
B.AWS Shield Advanced
C.AWS WAF
D.AWS Firewall Manager
AnswerB

AWS Shield Advanced is the correct choice because it is AWS's premium DDoS protection service that goes beyond basic mitigation. It provides always-on detection and automatic inline mitigation for sophisticated attacks targeting your critical web application. Crucially, it grants 24/7 access to the AWS DDoS Response Team (DRT) for manual intervention, and it includes financial protection that reimburses you for AWS bill spikes caused by scaling resources during a DDoS attack, which is essential for a critical application.

Why this answer

AWS Shield Advanced is the correct choice because it provides enhanced DDoS detection and mitigation beyond what Shield Standard offers, includes 24/7 access to the AWS DDoS Response Team (DRT) for custom mitigations, and offers financial protection (cost protection) against scaling costs incurred due to DDoS attacks on resources like Application Load Balancers. This directly addresses the company's need for a managed service that covers detection, expert support, and cost coverage.

Exam trap

The trap here is that candidates often confuse AWS Shield Standard (free, basic) with AWS Shield Advanced (paid, enhanced) or mistakenly think AWS WAF alone can handle DDoS cost protection and DRT access, when in fact WAF lacks those specific features.

Why the other options are wrong

A

AWS Shield Standard is a free service that provides basic DDoS protection but lacks enhanced detection, access to the DDoS Response Team (DRT), and financial protection against scaling costs, which are specifically required in the question.

C

AWS WAF is a web application firewall that filters and monitors HTTP/S requests, but it does not provide DDoS detection, access to the DDoS Response Team (DRT), or financial protection against scaling costs due to DDoS attacks. These features are exclusive to AWS Shield Advanced.

D

AWS Firewall Manager is a central security management service that helps configure and apply firewall rules across accounts and resources, but it does not provide DDoS detection, access to the DRT, or financial protection against scaling costs from DDoS attacks.

198
MCQmedium

A company hosts a web application behind an Application Load Balancer (ALB). The security team wants to protect the application from common web exploits such as SQL injection and cross-site scripting (XSS), using a managed service that requires no underlying infrastructure management. Which AWS service should they use?

A.AWS Shield Advanced
B.AWS WAF
C.Amazon Inspector
D.Amazon GuardDuty
AnswerB

AWS WAF is a managed web application firewall that enables you to create customizable rules to block common attack patterns like SQL injection and cross-site scripting. It integrates directly with Application Load Balancers, Amazon CloudFront, and API Gateway, and requires no server or software management.

Why this answer

AWS WAF is a managed web application firewall that protects web applications from common exploits like SQL injection and cross-site scripting (XSS). It integrates directly with Application Load Balancers and requires no underlying infrastructure management, making it the correct choice for this use case.

Exam trap

The trap here is that candidates confuse AWS WAF (application-layer filtering) with AWS Shield (network-layer DDoS protection) or Amazon Inspector (vulnerability scanning), overlooking that only WAF provides managed, rule-based protection against web exploits like SQL injection and XSS.

Why the other options are wrong

A

AWS Shield Advanced provides DDoS protection, not application-layer filtering for SQL injection or XSS. The question specifically requires protection against web exploits, which is the domain of AWS WAF.

C

Amazon Inspector is a vulnerability management service that scans for software vulnerabilities and unintended network exposure, not a web application firewall that protects against web exploits like SQL injection and XSS.

D

Amazon GuardDuty is a threat detection service that monitors for malicious activity and unauthorized behavior, not a web application firewall that blocks common web exploits like SQL injection and XSS.

199
MCQmedium

A company is preparing for an annual compliance audit. The auditor requests a copy of the AWS SOC 2 Type II report to review AWS's controls. Which AWS service or tool can the company use to obtain this report?

A.AWS Config
B.AWS Artifact
C.AWS Trusted Advisor
D.AWS Security Hub
AnswerB

AWS Artifact is the correct service. It is a self-service portal for on-demand access to AWS compliance reports and agreements. This allows customers to download reports like SOC 2 Type II directly.

Why this answer

AWS Artifact is the correct service because it provides on-demand access to AWS compliance reports, including SOC reports, PCI reports, and ISO certifications. The company can use AWS Artifact to download the SOC 2 Type II report directly, fulfilling the auditor's request without needing to contact AWS support.

Exam trap

The trap here is that candidates confuse AWS Artifact with AWS Config, thinking Config can generate compliance reports, but Config only evaluates resource compliance, not AWS's own control reports.

Why the other options are wrong

A

AWS Config is used to assess, audit, and evaluate configurations of AWS resources, not to provide compliance reports like SOC reports. The SOC 2 Type II report is a third-party audit report available through AWS Artifact.

C

AWS Trusted Advisor provides best-practice recommendations for cost optimization, performance, security, and fault tolerance, but it does not provide access to compliance reports like SOC 2 Type II. The auditor's request is for a specific report, which is available through AWS Artifact.

D

AWS Security Hub provides a comprehensive view of security alerts and compliance status across AWS accounts, but it does not provide access to AWS SOC reports. The auditor specifically requested the SOC 2 Type II report, which is available through AWS Artifact, not Security Hub.

200
MCQmedium

A company's security team wants to continuously monitor their AWS environment for potential security threats such as unusual API calls, traffic from known malicious IP addresses, and anomalous behavior that might indicate a compromised resource. They need a managed threat detection service that uses machine learning to identify suspicious activity and generates detailed findings. The service should integrate with AWS Organizations to monitor multiple accounts and with Amazon CloudWatch Events to trigger automated responses. Which AWS service should the security team use?

A.Amazon Inspector
B.AWS Config
C.Amazon GuardDuty
D.AWS CloudTrail
AnswerC

Amazon GuardDuty is the correct service. It continuously monitors AWS accounts and workloads for malicious activity, using machine learning and integrated threat intelligence. It can monitor multiple accounts via AWS Organizations and send findings to CloudWatch Events for automated actions.

Why this answer

Amazon GuardDuty is a managed threat detection service that uses machine learning and integrated threat intelligence to continuously monitor AWS environments for suspicious activity, such as unusual API calls, traffic from known malicious IP addresses, and anomalous behavior. It integrates natively with AWS Organizations to enable multi-account monitoring and with Amazon CloudWatch Events to trigger automated remediation workflows, directly matching all requirements in the question.

Exam trap

The trap here is confusing a vulnerability scanning service (Inspector) or a configuration auditing service (Config) with a dedicated threat detection service that uses machine learning and threat intelligence to identify active threats like compromised credentials or malicious IP traffic.

Why the other options are wrong

A

Amazon Inspector is a vulnerability management service that scans for software vulnerabilities and unintended network exposure, not a threat detection service that uses machine learning to identify suspicious API calls or anomalous behavior.

B

AWS Config is a service for evaluating resource configurations against desired policies, not for threat detection using machine learning or analyzing API calls for malicious activity.

D

AWS CloudTrail records API calls and user activity but does not use machine learning to detect threats or generate security findings; it is a logging service, not a threat detection service.

201
MCQmedium

A company's compliance framework requires that all AWS API calls must be logged and that log integrity must be validated. Which AWS service with which feature satisfies this requirement?

A.Amazon CloudWatch Logs with metric filters
B.AWS CloudTrail with Log File Integrity Validation enabled
C.AWS Config with conformance packs
D.VPC Flow Logs stored in S3
AnswerB

AWS CloudTrail with Log File Integrity Validation enabled records all management API calls into log files and additionally creates a chain of cryptographically signed digest files—each containing the SHA-256 hash of the previous digest and the log file's hash—making it possible to detect any alteration, deletion, or forgery of logs. The digest chain is signed with CloudTrail's private key, and the corresponding public key is available from AWS, allowing anyone to verify the integrity of the entire log trail. This is the only option that both captures API activity and provides cryptographic proof of log integrity.

Why this answer

AWS CloudTrail Log File Integrity Validation uses industry-standard algorithms (SHA-256 hashing and digital signatures with SHA-256 with RSA) to ensure that CloudTrail log files have not been tampered with after delivery. This feature enables you to validate that log files were not modified, deleted, or changed without authorization, directly meeting the compliance requirement for logging all AWS API calls and validating log integrity.

Exam trap

The trap here is that candidates often confuse logging (CloudTrail) with monitoring (CloudWatch) or configuration tracking (AWS Config), and overlook the specific integrity validation feature that is unique to CloudTrail.

How to eliminate wrong answers

Option A is wrong because Amazon CloudWatch Logs with metric filters can monitor log data and trigger alarms, but it does not provide any mechanism to validate the integrity of log files (i.e., detect tampering or unauthorized modification). Option C is wrong because AWS Config with conformance packs evaluates resource configurations against compliance rules, but it does not log API calls nor validate log file integrity. Option D is wrong because VPC Flow Logs capture IP traffic information for network interfaces, not AWS API calls, and storing them in S3 does not include built-in integrity validation.

202
MCQmedium

A company's security team discovers that database credentials are stored in plaintext in application configuration files. The team wants to implement a secure way to store, manage, and automatically rotate these credentials every 90 days. The solution must provide fine-grained IAM policies to control which users and applications can access the secrets and must integrate with AWS services like Amazon RDS for automatic rotation. Which AWS service should the company use to meet these requirements?

A.AWS Systems Manager Parameter Store
B.AWS Secrets Manager
C.AWS Key Management Service (AWS KMS)
D.AWS Identity and Access Management (IAM)
AnswerB

Secrets Manager is the correct service. It provides native support for automatic rotation of credentials, including built-in integration with Amazon RDS. It also offers fine-grained IAM policies and central management of secrets, meeting all stated requirements.

Why this answer

AWS Secrets Manager is the correct service because it is purpose-built for securely storing, managing, and automatically rotating database credentials. It supports automatic rotation every 90 days for Amazon RDS, Aurora, Redshift, and DocumentDB with built-in Lambda rotation functions, and it integrates with IAM for fine-grained access control via resource-based and identity-based policies.

Exam trap

The trap here is that candidates often confuse AWS Systems Manager Parameter Store (which can store secrets but lacks native rotation) with Secrets Manager, leading them to choose Parameter Store when the question explicitly requires automatic rotation.

Why the other options are wrong

A

AWS Systems Manager Parameter Store does not support automatic rotation of secrets; it requires custom solutions for rotation. It also lacks fine-grained IAM policies for secret access control compared to Secrets Manager.

C

AWS KMS is a key management service for encryption keys, not for storing and rotating secrets like database credentials. It does not provide automatic rotation of secrets or fine-grained IAM policies for secret access.

D

IAM is used for managing users, groups, roles, and permissions, not for storing, managing, or rotating secrets like database credentials. It does not provide secret storage or automatic rotation capabilities.

203
MCQmedium

A company uses AWS Organizations to manage multiple accounts. The security team wants to enforce a policy that prevents any user or role in any member account from disabling AWS CloudTrail or deleting CloudTrail log files from Amazon S3. The team needs a solution that is centrally managed from the management account and applies to all current and future member accounts automatically. Which AWS feature should the security team use to meet these requirements?

A.AWS Config conformance packs
B.Service Control Policies (SCPs)
C.IAM permissions boundaries
D.AWS CloudTrail data events
AnswerB

Correct. SCPs are the correct choice because they allow centralized control over the maximum permissions for all accounts in an AWS Organization. They can explicitly deny actions such as disabling CloudTrail or deleting S3 objects in the log bucket. SCPs apply across the entire organization, including new accounts, and cannot be overridden by member account administrators. This provides the preventive enforcement the security team requires.

Why this answer

Service Control Policies (SCPs) are a feature of AWS Organizations that allow you to centrally control the maximum available permissions for all accounts within an organization. By attaching an SCP that explicitly denies the actions to disable CloudTrail or delete CloudTrail log files from S3, the security team can enforce this policy across all current and future member accounts from the management account, as SCPs automatically apply to new accounts added to the organization.

Exam trap

The trap here is that candidates often confuse SCPs with IAM permissions boundaries, not realizing that SCPs operate at the organization level and apply to all accounts automatically, while permissions boundaries are account-specific and require manual configuration per user/role.

Why the other options are wrong

A

AWS Config conformance packs evaluate resource compliance against rules but do not enforce preventive controls to block actions like disabling CloudTrail or deleting S3 logs across all accounts.

C

IAM permissions boundaries only restrict the maximum permissions for IAM users or roles within a single account, not across all accounts in an organization, and they do not automatically apply to future accounts.

D

CloudTrail data events log resource operations within AWS services (e.g., S3 object-level actions), but they do not provide any mechanism to enforce policies or prevent actions like disabling CloudTrail or deleting log files. They are a logging feature, not a governance or prevention tool.

204
MCQmedium

A company hosts a public-facing web application behind an Application Load Balancer (ALB). The development team has recently identified that the application is vulnerable to common web attacks such as SQL injection and cross-site scripting (XSS). The security team wants to deploy a managed solution that can inspect incoming HTTP requests and block malicious traffic before it reaches the application. The solution must integrate directly with the existing ALB and provide pre-configured rule sets that can be customized. Which AWS service should the company use?

A.AWS Shield Advanced
B.Amazon GuardDuty
C.AWS WAF
D.AWS Firewall Manager
AnswerC

AWS WAF is a web application firewall that allows you to monitor and control HTTP and HTTPS requests forwarded to your protected resources. It integrates directly with ALB and provides managed rule sets for common threats like SQL injection and XSS. You can customize rules to meet specific requirements.

Why this answer

AWS WAF is a managed web application firewall that integrates directly with Application Load Balancers to inspect HTTP/HTTPS requests. It provides pre-configured rule sets, such as those for SQL injection and cross-site scripting (XSS), which can be customized to block malicious traffic before it reaches the application. This makes it the correct choice for the described use case.

Exam trap

The trap here is that candidates may confuse AWS Shield Advanced (which handles DDoS) with AWS WAF (which handles application-layer attacks like SQLi and XSS), but Shield does not inspect request payloads for malicious content.

Why the other options are wrong

A

AWS Shield Advanced provides DDoS protection, not application-layer inspection for SQL injection or XSS. It does not offer pre-configured rule sets for web attacks or integrate directly with ALB for request inspection.

B

Amazon GuardDuty is a threat detection service that monitors for malicious activity and unauthorized behavior, but it does not inspect or block incoming HTTP requests at the application layer. It cannot prevent SQL injection or XSS attacks by itself.

D

AWS Firewall Manager is a policy management service that centrally configures and manages firewall rules across multiple accounts and resources, but it does not itself inspect and block web traffic. It relies on AWS WAF rules to do so, and the question asks for the service that directly inspects and blocks malicious traffic, which is AWS WAF.

205
MCQmedium

A security audit found that an S3 bucket is publicly readable. Which IAM/S3 mechanism should be reviewed to identify what grants the public access?

A.IAM identity-based policies attached to the root user
B.Bucket policies and S3 Block Public Access settings
C.AWS Organizations Service Control Policies
D.Amazon Macie classification rules
AnswerB

Public S3 access is granted through resource-based policies—specifically bucket policies that set the Principal to the wildcard '*'—or through bucket and object ACLs that permit public read/write. S3 Block Public Access settings act as an additional safeguard that can override and deny these public grants even if a bucket policy or ACL explicitly allows them. Together, these two mechanisms are the direct controls that determine whether an S3 bucket is publicly accessible.

Why this answer

Bucket policies are resource-based policies that explicitly define who has access to an S3 bucket, including public access grants like `"Principal": "*"`. S3 Block Public Access settings act as an overarching security control that can override bucket policies to prevent public access. Reviewing both mechanisms together identifies exactly how public readability was granted and whether any block was misconfigured or absent.

Exam trap

The trap here is that candidates often confuse IAM identity-based policies (which control user permissions) with resource-based policies (like bucket policies) that directly grant public access, leading them to incorrectly select Option A.

How to eliminate wrong answers

Option A is wrong because IAM identity-based policies attached to the root user control actions the root user can perform, not who can access the bucket from the public; public access is granted via resource-based policies, not identity-based policies. Option C is wrong because AWS Organizations Service Control Policies (SCPs) set permission boundaries for accounts within an organization but do not directly grant or deny public access to a specific S3 bucket. Option D is wrong because Amazon Macie classification rules are used to discover and classify sensitive data in S3 buckets, not to control or audit access permissions.

206
MCQmedium

A company has multiple IAM users. The security policy requires that every user must have an MFA device assigned and must use it for console sign-in. The security team wants to automatically detect any IAM user that does not have MFA enabled and receive an email alert. Which combination of AWS services should the team use to meet these requirements?

A.AWS CloudTrail and Amazon CloudWatch Logs
B.AWS Trusted Advisor and Amazon Simple Email Service (Amazon SES)
C.AWS Config and Amazon Simple Notification Service (Amazon SNS)
D.AWS IAM Access Analyzer and Amazon Inspector
AnswerC

AWS Config can evaluate IAM users against the managed rule 'iam-user-mfa-enabled'. When a user is non-compliant, Config can publish a compliance change notification to an Amazon SNS topic. Subscribers (e.g., email endpoints) receive alerts automatically.

Why this answer

AWS Config can continuously monitor IAM users for compliance with the security policy by using a managed rule such as IAM_USER_MFA_ENABLED. When a non-compliant user is detected, AWS Config can trigger an Amazon SNS topic to send an email alert, meeting the requirement for automatic detection and notification.

Exam trap

The trap here is that candidates confuse AWS Trusted Advisor's root account MFA check with IAM user MFA enforcement, or assume CloudTrail can detect configuration state rather than just API events.

Why the other options are wrong

A

CloudTrail logs API activity but does not evaluate IAM user MFA status, and CloudWatch Logs alone cannot trigger email alerts based on custom compliance checks without additional services like Lambda or Config rules.

B

AWS Trusted Advisor can check for MFA on root accounts but not on individual IAM users, and Amazon SES is for sending emails but not integrated with Trusted Advisor for automated alerts based on IAM user MFA status.

D

AWS IAM Access Analyzer analyzes resource policies for external access, and Amazon Inspector assesses workload vulnerabilities; neither service monitors IAM user MFA status or sends alerts for non-compliance.

207
MCQmedium

A company manages multiple AWS accounts using AWS Organizations. The company has an on-premises Microsoft Active Directory (AD) that contains employee credentials and group memberships. The company wants to grant employees access to the AWS Management Console and command-line interface (CLI) using their existing AD credentials, without creating IAM users for each employee. Additionally, the company wants to centrally manage permissions across all accounts by assigning policies to AD groups. Which AWS service should the company use to meet these requirements?

A.AWS Identity and Access Management (IAM)
B.AWS Directory Service for Microsoft Active Directory
C.AWS IAM Identity Center (AWS Single Sign-On)
D.AWS Resource Access Manager (AWS RAM)
AnswerC

IAM Identity Center is the correct service for this use case. It connects to an existing identity provider (such as on-premises Active Directory), enables single sign-on to the AWS Management Console and CLI, and centrally manages permissions across all accounts in AWS Organizations by assigning permission sets to groups.

Why this answer

AWS IAM Identity Center (formerly AWS Single Sign-On) is the correct service because it allows centralized management of user access to multiple AWS accounts and applications using existing corporate credentials from Microsoft Active Directory. It supports federation with AD via SAML 2.0 or SCIM, enabling employees to sign in to the AWS Management Console and CLI without creating IAM users. Permissions can be assigned to AD groups through permission sets, which map to IAM roles, ensuring consistent policy enforcement across all accounts in AWS Organizations.

Exam trap

The trap here is that candidates often confuse AWS Directory Service for Microsoft Active Directory with IAM Identity Center, thinking that a managed AD alone can provide cross-account access and SSO, but Directory Service only provides the directory backend and lacks the centralized permission assignment and federation capabilities that IAM Identity Center offers for multi-account environments.

Why the other options are wrong

A

IAM alone cannot integrate with on-premises Active Directory for authentication, nor can it centrally manage permissions across multiple AWS accounts without federation or Identity Center.

B

AWS Directory Service for Microsoft Active Directory only provides the directory service; it does not offer the centralized permission management across multiple AWS accounts or the ability to assign AWS policies to AD groups. The company needs IAM Identity Center to integrate with AD and manage cross-account access.

D

AWS Resource Access Manager (RAM) is used to share resources like subnets or transit gateways across accounts, not to manage user authentication or permissions via Active Directory groups.

208
MCQeasy

A company's internal audit team needs to download the latest AWS SOC 2 Type II report and ISO 27001 certificate to include in their compliance documentation for an upcoming external audit. The team requires a centralized, self-service portal where they can access these reports and any other relevant AWS compliance artifacts. They do not want to contact AWS Support or manage any infrastructure to obtain these documents. Which AWS service should the audit team use?

A.AWS Config
B.AWS Artifact
C.AWS Audit Manager
D.AWS Trusted Advisor
AnswerB

AWS Artifact is the correct choice because it is a self-service portal that gives on-demand access to AWS compliance reports, including SOC, ISO, PCI, and FedRAMP documents. Customers can download these official reports directly without contacting AWS Support or provisioning any infrastructure. It also provides access to AWS agreements, such as the Business Associate Addendum (BAA), which are often required by audit teams.

Why this answer

AWS Artifact is the correct service because it provides a centralized, self-service portal for on-demand access to AWS compliance reports, such as SOC 2 Type II and ISO 27001 certificates, without requiring any infrastructure management or contacting AWS Support. The audit team can simply log in, browse the available artifacts, and download the latest versions directly, meeting their requirement for a no-touch, self-service solution.

Exam trap

The trap here is that candidates may confuse AWS Audit Manager's role in audit evidence collection with the ability to download pre-existing AWS compliance reports, but AWS Artifact is the only service designed specifically for self-service access to those artifacts.

Why the other options are wrong

A

AWS Config is used for evaluating and auditing resource configurations, not for downloading compliance reports like SOC 2 or ISO 27001. It does not provide a centralized portal for accessing AWS compliance artifacts.

C

AWS Audit Manager helps continuously audit AWS usage to assess risk and compliance, but it does not provide a self-service portal to download AWS compliance reports like SOC 2 or ISO 27001. Those reports are obtained via AWS Artifact.

D

AWS Trusted Advisor provides recommendations for cost optimization, performance, security, and fault tolerance, but it does not provide access to compliance reports like SOC 2 or ISO 27001 certificates.

209
MCQmedium

A company stores sensitive financial reports in an Amazon S3 bucket. The company's security policy mandates that all objects be encrypted at rest using an AWS KMS customer-managed key. The security team wants to ensure that only the 'Auditors' IAM role can decrypt the objects, even though the S3 bucket policy allows read access to a broader set of users. Which of the following steps must the security team take to enforce this access control?

A.Configure the S3 bucket to use SSE-KMS encryption with the customer-managed key, and modify the KMS key policy to grant the kms:Decrypt permission only to the 'Auditors' role.
B.Configure an S3 bucket policy that denies s3:GetObject requests unless the request is encrypted in transit using HTTPS.
C.Enable S3 Block Public Access on the bucket and attach an IAM policy to the 'Auditors' role that allows s3:GetObject.
D.Use S3 object-level logging to monitor access and revoke permissions for any role that attempts to decrypt objects without authorization.
AnswerA

This is correct. SSE-KMS encrypts objects at rest using a KMS key. The KMS key policy controls who can use the key to decrypt objects. By restricting kms:Decrypt to the 'Auditors' role, only that role can decrypt the objects, regardless of broader S3 read permissions.

Why this answer

SSE-KMS with a customer-managed key separates encryption key management from S3 bucket policies. The KMS key policy is the authoritative access control for decryption operations. By granting kms:Decrypt only to the 'Auditors' role, even if the S3 bucket policy allows s3:GetObject to other users, they cannot decrypt the objects without the key permission.

This enforces the security requirement that only the Auditors role can decrypt the sensitive financial reports.

Exam trap

The trap here is that candidates often assume S3 bucket policies alone can control decryption, but AWS enforces KMS key policies as a separate authorization layer, so without explicitly restricting kms:Decrypt in the key policy, any user with s3:GetObject can decrypt the objects if they have KMS permissions through their IAM role or user.

Why the other options are wrong

B

This option addresses encryption in transit (HTTPS), not encryption at rest or access control over decryption. The requirement is to restrict decryption of objects at rest to the 'Auditors' role, which is unrelated to transport encryption.

C

This option does not enforce that only the 'Auditors' role can decrypt objects; it only blocks public access and grants s3:GetObject, but decryption is controlled by KMS permissions, not S3 bucket policies or IAM policies for s3:GetObject.

D

S3 object-level logging only records access events; it does not enforce access control or prevent unauthorized decryption. The requirement is to restrict decryption access, not just monitor it.

210
MCQmedium

A company has a compliance policy requiring that all data at rest in Amazon S3 be encrypted with a key that is automatically rotated every year. The company wants to manage the encryption keys themselves, maintain control over access policies, and have AWS handle the key rotation automatically. Which AWS service should the company use?

A.AWS Key Management Service (AWS KMS)
B.AWS CloudHSM
C.AWS Secrets Manager
D.AWS Certificate Manager
AnswerA

AWS KMS provides customer managed keys (CMKs) that can be used with S3 server-side encryption (SSE-KMS). KMS supports automatic annual rotation of these keys, which directly meets the 'data at rest encrypted with regularly rotated keys' requirement while allowing you to maintain full control over key policies and access permissions. Unlike simpler encryption options, KMS also provides audit trails through CloudTrail integrated actions, giving compliance teams evidence of key usage and rotation. This is why KMS is the correct answer for a compliance policy mandating encryption key rotation.

Why this answer

AWS KMS allows you to create customer managed keys (CMKs) with automatic annual rotation enabled. You retain control over key policies and access permissions, while AWS handles the rotation of the key material. This satisfies the compliance requirement for encrypted data at rest in S3 with automatic yearly key rotation.

Exam trap

The trap here is confusing AWS KMS with AWS CloudHSM, as both involve encryption keys, but CloudHSM requires you to manage key rotation manually, failing the automatic rotation requirement.

Why the other options are wrong

B

AWS CloudHSM provides hardware-based key storage but does not offer automatic key rotation; the customer must manage rotation themselves, which violates the requirement for automatic yearly rotation.

C

AWS Secrets Manager is designed for managing secrets like database credentials and API keys, not for managing encryption keys for S3 data at rest. It does not provide the key rotation and access control policies needed for S3 encryption.

D

AWS Certificate Manager is used to manage SSL/TLS certificates for securing network traffic, not for encrypting data at rest in S3. It does not provide key rotation for S3 encryption keys.

211
MCQmedium

A company uses AWS Organizations to manage multiple accounts. The security team needs to enforce a consistent set of security group rules across all accounts. For example, they want to ensure that no security group in any account allows inbound SSH (port 22) from the internet (0.0.0.0/0). If a non-compliant security group is created, the service should automatically remediate by removing the offending rule or by applying a corrective policy. The company wants a managed AWS service that centrally applies these rules and requires no custom scripting. Which AWS service should the security team use?

A.AWS Firewall Manager
B.AWS Config
C.AWS Organizations
D.AWS Shield Advanced
AnswerA

AWS Firewall Manager is the correct service because it centralizes security policy management across all accounts in AWS Organizations. You can create a security group policy that defines an allowed inbound SSH CIDR baseline, and Firewall Manager will automatically enforce it by updating any non-compliant security groups, including those on newly created resources. It provides continuous monitoring and built-in remediation without requiring custom code or manual intervention, which exactly matches the need to enforce and remediate restrictive SSH access.

Why this answer

AWS Firewall Manager is the correct service because it provides a centralized, managed way to apply security group rules across all accounts in an AWS Organization. It can automatically detect non-compliant security groups (e.g., those allowing SSH from 0.0.0.0/0) and remediate them by removing the offending rule or applying a corrective policy, all without custom scripting.

Exam trap

The trap here is that candidates often confuse AWS Config's compliance evaluation and remediation capabilities with Firewall Manager's centralized policy enforcement, forgetting that Config requires custom scripting for automatic remediation, whereas Firewall Manager provides it as a managed service.

Why the other options are wrong

B

AWS Config can detect non-compliant security group rules via managed rules, but it cannot automatically remediate them without custom AWS Config rules and custom Lambda functions, which violates the 'no custom scripting' requirement.

C

AWS Organizations is a service for centrally managing multiple AWS accounts, but it does not provide security group rule enforcement or remediation. It lacks the ability to automatically detect and fix non-compliant security groups.

D

AWS Shield Advanced is a managed DDoS protection service, not a service for centrally enforcing security group rules across accounts. It does not provide security group compliance or remediation capabilities.

212
MCQmedium

A company operates multiple AWS accounts under AWS Organizations. The security team needs to record all management events (for example, creating Amazon EC2 instances, modifying security groups, and deleting Amazon S3 buckets) across all accounts. The logs must be delivered to a single Amazon S3 bucket that is encrypted with an AWS KMS key and protected from modification. Which AWS feature should the team enable to achieve this centralized logging requirement?

A.AWS CloudTrail
B.AWS Config
C.Amazon CloudWatch Logs
D.AWS Audit Manager
AnswerA

AWS CloudTrail records API calls and can be configured as an organization trail to log activity across all accounts in AWS Organizations. It delivers log files to a specified S3 bucket, where encryption and immutability can be applied.

Why this answer

AWS CloudTrail is the correct service because it records all management events (API calls) across AWS accounts, and when configured as an organization trail in AWS Organizations, it automatically logs events from all member accounts to a single S3 bucket. This meets the requirement for centralized logging with encryption using AWS KMS and protection from modification via S3 bucket policies and versioning.

Exam trap

The trap here is that candidates often confuse CloudTrail for management events with AWS Config for configuration changes, or assume CloudWatch Logs can aggregate all account logs, but only CloudTrail provides the required centralized API activity logging across an organization.

Why the other options are wrong

B

AWS Config records resource configuration changes and evaluates compliance, but it does not capture management events like API calls (e.g., creating EC2 instances). The question specifically requires recording management events, which is CloudTrail's function.

C

Amazon CloudWatch Logs is used for monitoring, storing, and accessing log files from AWS resources, but it does not record management events like API calls across accounts. The requirement to capture management events across all accounts and deliver to a centralized S3 bucket is specifically a CloudTrail feature.

D

AWS Audit Manager helps audit AWS usage by continuously evaluating controls, but it does not natively record and centralize management events like CloudTrail. It relies on CloudTrail logs for evidence, not as the primary event recorder.

213
MCQmedium

A company has a security policy that requires all Amazon EBS volumes attached to production Amazon EC2 instances to be encrypted at rest using customer-managed encryption keys. The policy also mandates that the encryption keys must be automatically rotated every 365 days. The company wants to minimize operational overhead by using a managed AWS service for key management and automatic rotation. Which AWS service should the company use to meet these requirements?

A.AWS CloudHSM
B.AWS Certificate Manager (ACM)
C.AWS Key Management Service (AWS KMS)
D.AWS Secrets Manager
AnswerC

AWS KMS is a fully managed service that enables you to create, control, and rotate customer-managed keys. It supports automatic annual key rotation for customer managed keys with a simple checkbox, and integrates seamlessly with Amazon EBS for encryption at rest, meeting the policy requirements with minimal overhead.

Why this answer

AWS KMS is the correct choice because it provides managed customer master keys (CMKs) that can be used to encrypt EBS volumes at rest, and it supports automatic annual key rotation (every 365 days) with no additional operational overhead. KMS integrates directly with EBS to enforce encryption using customer-managed keys, meeting both the encryption and rotation requirements.

Exam trap

The trap here is that candidates may confuse AWS CloudHSM with KMS, thinking CloudHSM also provides automatic rotation, but CloudHSM requires manual rotation and does not natively integrate with EBS encryption policies.

Why the other options are wrong

A

AWS CloudHSM provides hardware security modules (HSMs) but does not offer automatic key rotation; it requires manual rotation or custom scripting, increasing operational overhead. The question specifies automatic rotation every 365 days, which is a built-in feature of AWS KMS, not CloudHSM.

B

AWS Certificate Manager (ACM) is used to provision, manage, and deploy public and private SSL/TLS certificates, not for managing encryption keys for EBS volumes. It does not provide customer-managed keys or automatic rotation for EBS encryption.

D

AWS Secrets Manager is designed for managing secrets like database credentials and API keys, not for managing encryption keys for EBS volumes. It does not provide the key management or automatic rotation for customer-managed encryption keys used with EBS encryption.

214
MCQmedium

A company uses AWS Organizations and manages hundreds of AWS accounts. The security policy requires that all Amazon S3 buckets be encrypted using a specific AWS KMS customer-managed key (CMK). The security team wants to automatically detect any S3 bucket that is not encrypted with the required CMK and automatically apply the correct encryption configuration without manual intervention. Which AWS service should the security team use to implement this automated compliance enforcement?

A.Amazon GuardDuty
B.AWS Config
C.AWS CloudTrail
D.AWS Trusted Advisor
AnswerB

AWS Config is designed to assess, audit, and evaluate the configurations of AWS resources. It can detect S3 buckets that do not have the required encryption and trigger automatic remediation actions (e.g., using AWS Systems Manager Automation to enable server-side encryption with the designated KMS key). This satisfies both the detection and automatic correction requirements.

Why this answer

AWS Config is the correct service because it provides managed rules (e.g., s3-bucket-server-side-encryption-enabled and s3-bucket-kms-encryption-specific-key) that can evaluate whether S3 buckets are encrypted with the required KMS customer-managed key. When a noncompliant bucket is detected, AWS Config can trigger an AWS Lambda function via an Amazon EventBridge rule to automatically apply the correct encryption configuration, enabling automated remediation without manual intervention.

Exam trap

The trap here is that candidates often confuse AWS Config's compliance evaluation and remediation capabilities with GuardDuty's threat detection or CloudTrail's audit logging, assuming any security-related service can enforce encryption policies.

Why the other options are wrong

A

Amazon GuardDuty is a threat detection service that monitors for malicious activity, not a compliance enforcement tool. It cannot automatically detect or remediate S3 bucket encryption configurations.

C

AWS CloudTrail records API activity but cannot automatically remediate non-compliant S3 bucket encryption; it lacks the enforcement and auto-remediation capabilities required for this use case.

D

AWS Trusted Advisor provides best-practice recommendations but does not automatically enforce or remediate non-compliant resources. It cannot automatically apply encryption configuration to S3 buckets.

215
MCQmedium

A company wants to implement zero-trust network security for their AWS environment. Which AWS service enables access to EC2 instances without requiring open inbound network ports or bastion hosts?

A.AWS Bastion Host on EC2
B.AWS Systems Manager Session Manager
C.AWS Direct Connect
D.Amazon VPC Endpoints
AnswerB

AWS Systems Manager Session Manager establishes an interactive shell through an agent-resident outbound connection to the AWS Systems Manager service, so no inbound ports need to be open on the EC2 instance nor do SSH keys or bastion hosts need to be provisioned. Access is governed by IAM policies that can restrict which users can start sessions and what actions they can perform, with session activity optionally recorded to Amazon S3 and CloudTrail for compliance and auditing. This is the only listed option that directly provides secure, auditable remote shell access to EC2 instances without exposing management ports.

Why this answer

AWS Systems Manager Session Manager provides secure, auditable shell access to EC2 instances without requiring open inbound ports (e.g., SSH port 22 or RDP port 3389) or a bastion host. It uses the AWS Systems Manager agent to initiate a session via the AWS API, leveraging IAM policies for authentication and authorization, and can optionally encrypt session data using AWS KMS.

Exam trap

The trap here is that candidates often confuse 'no open inbound ports' with 'no network connectivity at all,' leading them to choose VPC Endpoints (which only connect to AWS services, not EC2 instances) or Direct Connect (which is a network link, not an access method).

How to eliminate wrong answers

Option A is wrong because AWS Bastion Host on EC2 is a traditional jump server that requires open inbound ports (e.g., SSH/RDP) and a public IP, which contradicts the zero-trust principle of eliminating network-based access. Option C is wrong because AWS Direct Connect establishes a dedicated network connection from on-premises to AWS, but it does not provide EC2 instance access without open ports; it still requires SSH/RDP or a bastion host to reach instances. Option D is wrong because Amazon VPC Endpoints (Gateway or Interface endpoints) enable private connectivity to AWS services (e.g., S3, DynamoDB) without traversing the internet, but they do not provide shell or remote desktop access to EC2 instances.

216
MCQmedium

A company uses AWS Organizations to manage multiple accounts. The security team wants to continuously monitor the configurations of all AWS resources across the organization and receive alerts when a resource violates a compliance rule. For example, they want to ensure that all Amazon RDS databases are not publicly accessible, and that any new RDS instance created with public access enabled is automatically flagged. The team does not want to build custom scripts for monitoring. Which AWS service should the security team use to meet these requirements?

A.AWS CloudTrail
B.AWS Config
C.AWS Trusted Advisor
D.Amazon GuardDuty
AnswerB

AWS Config provides continuous monitoring and evaluation of AWS resource configurations against desired rules. It supports managed rules for common compliance checks (e.g., public RDS instances) and can automatically trigger remediation, meeting the requirement without custom scripts.

Why this answer

AWS Config is the correct service because it provides continuous monitoring and recording of AWS resource configurations, and it can evaluate those configurations against custom or managed rules (e.g., 'rds-instance-public-access-check'). When a resource like an RDS instance violates a rule (e.g., being publicly accessible), AWS Config can automatically flag it and trigger an alert via Amazon SNS, all without requiring custom scripts.

Exam trap

The trap here is that candidates often confuse AWS CloudTrail (which logs API calls) with AWS Config (which tracks resource state), leading them to choose CloudTrail because they think monitoring 'configurations' means tracking changes, but CloudTrail does not evaluate compliance rules or alert on resource state violations.

Why the other options are wrong

A

AWS CloudTrail records API activity and provides audit logs, but it does not continuously evaluate resource configurations against compliance rules or automatically flag non-compliant resources like publicly accessible RDS instances.

C

AWS Trusted Advisor provides best-practice checks and recommendations, but it does not continuously monitor resource configurations or trigger alerts for compliance violations like public RDS instances. It lacks the ability to define custom rules and automatically flag non-compliant resources in real time.

D

Amazon GuardDuty is a threat detection service that monitors for malicious activity and unauthorized behavior, not for compliance configuration rules like RDS public accessibility. It does not evaluate resource configurations against compliance rules.

217
MCQmedium

A company's compliance team needs to enforce a policy that all Amazon S3 buckets must have 'Block all public access' enabled. If a bucket is created without this setting, the company wants the policy to be automatically remediated within minutes without manual intervention. The solution must check for compliance continuously and apply the fix automatically. Which AWS service should the company use to meet these requirements?

A.AWS Config with an AWS Config rule and an automatic remediation action
B.Amazon GuardDuty
C.AWS CloudTrail
D.AWS Identity and Access Management (IAM)
AnswerA

AWS Config can evaluate resource configurations against rules (e.g., 's3-bucket-public-read-prohibited') and automatically trigger a remediation action, such as an SSM Automation document, to fix non-compliant resources like S3 buckets without manual intervention. This matches the requirement.

Why this answer

AWS Config can continuously evaluate the configuration of S3 buckets against a managed rule like 's3-bucket-public-read-prohibited' or 's3-bucket-public-write-prohibited'. When a noncompliant bucket is detected, AWS Config can automatically trigger a remediation action using an AWS Systems Manager Automation document (e.g., 'AWS-DisableS3BucketPublicReadWrite') to enable 'Block all public access' within minutes, without manual intervention.

Exam trap

The trap here is that candidates often confuse AWS Config's compliance and remediation capabilities with CloudTrail's logging or GuardDuty's threat detection, failing to recognize that only AWS Config provides continuous evaluation with automatic remediation actions.

Why the other options are wrong

B

Amazon GuardDuty is a threat detection service that monitors for malicious activity, not a compliance enforcement tool. It cannot automatically remediate S3 bucket public access settings.

C

AWS CloudTrail records API activity but does not continuously evaluate resource compliance or automatically remediate misconfigurations. It lacks built-in rules for S3 public access and cannot apply fixes.

D

IAM is used for managing user permissions and access control, not for continuous compliance monitoring or automatic remediation of S3 bucket configurations.

218
MCQmedium

A company has 200 IAM users. The security team needs to automatically verify that every IAM user has enabled multi-factor authentication (MFA) for console access. They also need to receive a notification whenever a new user is created without MFA so they can enforce the policy. Which AWS service should the security team use to meet these requirements?

A.AWS Config
B.AWS CloudTrail
C.Amazon GuardDuty
D.AWS Trusted Advisor
AnswerA

AWS Config continuously monitors the configuration of AWS resources and evaluates them against managed rules such as iam-user-mfa-enabled. This rule checks every IAM user's MFA status and reports any user without an assigned MFA device as non-compliant, allowing the security team to receive automated notifications via Amazon SNS or EventBridge. Additionally, AWS Config can be paired with Systems Manager Automation to auto-remediate non-compliant users, making it the correct service for verifying MFA across 200 IAM users.

Why this answer

AWS Config is correct because it provides managed rules like 'iam-user-mfa-enabled' that can continuously evaluate whether all IAM users have MFA enabled. When a new user is created without MFA, AWS Config can trigger an Amazon SNS notification via its compliance change event, meeting both the verification and notification requirements automatically.

Exam trap

The trap here is that candidates confuse CloudTrail's API logging with Config's continuous compliance evaluation, assuming that recording user creation events is sufficient to enforce MFA, but CloudTrail lacks the ability to assess resource state or trigger notifications based on compliance status.

Why the other options are wrong

B

AWS CloudTrail records API activity but does not continuously evaluate resource configurations like MFA status or trigger notifications for non-compliant users.

C

Amazon GuardDuty is a threat detection service that monitors for malicious activity and unauthorized behavior, not for verifying IAM user MFA status or sending notifications about new users without MFA.

D

AWS Trusted Advisor provides best-practice checks, including MFA on root account, but it does not automatically verify MFA for all IAM users or trigger notifications when a new user is created without MFA. It lacks the continuous compliance monitoring and custom rule enforcement needed for this requirement.

219
MCQmedium

A company wants to automatically evaluate its AWS resource configurations against internal security policies. The company has defined rules such as 'EBS volumes must be encrypted' and 'S3 buckets must not be publicly accessible'. They need a service that continuously monitors resource configurations, identifies noncompliant resources, and provides a dashboard of compliance status over time. Which AWS service should the company use?

A.AWS Config
B.Amazon Inspector
C.AWS Trusted Advisor
D.AWS CloudTrail
AnswerA

AWS Config is a managed service that continuously records resource configurations as configuration items and evaluates them against rules you define, such as requiring EBS volumes to be encrypted or S3 buckets to be private. It provides a compliance dashboard, historical configuration timelines, and can trigger automatic remediation and SNS notifications when a resource becomes noncompliant. This makes it the correct answer because it is purpose-built for evaluating AWS resource configurations against specific compliance and security policies over time.

Why this answer

AWS Config is the correct service because it continuously monitors and records AWS resource configurations, evaluates them against custom rules (like 'EBS volumes must be encrypted' and 'S3 buckets must not be publicly accessible'), and provides a compliance dashboard that shows historical compliance status over time. It directly addresses the need for automated, ongoing evaluation of resource configurations against internal security policies.

Exam trap

The trap here is confusing AWS Config's configuration compliance monitoring with Amazon Inspector's vulnerability scanning or Trusted Advisor's best-practice checks, leading candidates to choose a service that does not support custom rule definitions or continuous compliance dashboards.

Why the other options are wrong

B

Amazon Inspector is a vulnerability management service that scans for software vulnerabilities and unintended network exposure, not for evaluating resource configurations against internal security policies like encryption or public access settings.

C

AWS Trusted Advisor provides best-practice checks and recommendations, but it does not continuously monitor resource configurations against custom internal policies or provide a compliance dashboard over time; it focuses on AWS-recommended best practices, not user-defined rules.

D

AWS CloudTrail records API activity for auditing, but it does not evaluate resource configurations against rules or provide a compliance dashboard for resource settings like encryption or public access.

220
MCQmedium

A company uses multiple AWS accounts within AWS Organizations. The security team needs to automatically check that no Amazon S3 bucket in any account has public read or write access. They want to define a security rule once and have it evaluated continuously across all accounts. The team also needs to view the overall compliance status from a single dashboard. Which AWS service should they use to meet these requirements?

A.AWS Config
B.AWS Trusted Advisor
C.Amazon Inspector
D.AWS Shield
AnswerA

AWS Config is the correct answer because it provides continuous, detailed monitoring and evaluation of AWS resource configurations against desired policies and rules you define. It natively integrates with AWS Organizations, letting you deploy Config rules centrally across all member accounts and aggregate compliance results into a single dashboard via multi-account aggregators. This includes custom rules that can evaluate S3 bucket policies or any resource type, giving you enforcement clarity rather than just best-practice recommendations.

Why this answer

AWS Config is the correct service because it provides managed rules (such as 's3-bucket-public-read-prohibited' and 's3-bucket-public-write-prohibited') that can be defined once in a delegated administrator account and automatically evaluated across all member accounts in AWS Organizations. It continuously monitors S3 bucket configurations and aggregates compliance results into a single dashboard (the AWS Config aggregator), meeting the requirement for a unified view of overall compliance status.

Exam trap

The trap here is that candidates often confuse AWS Config (which evaluates resource configurations against rules) with AWS Trusted Advisor (which provides best-practice checks but lacks custom rule definition and multi-account aggregation), leading them to select Trusted Advisor because it also checks S3 bucket permissions.

Why the other options are wrong

B

AWS Trusted Advisor provides best-practice checks, including S3 bucket permissions, but it does not allow you to define custom rules or evaluate compliance continuously across all accounts from a single dashboard. It also does not integrate with AWS Organizations to aggregate compliance status.

C

Amazon Inspector is designed for vulnerability management and network security assessments of EC2 instances and container workloads, not for evaluating S3 bucket policies or compliance across multiple accounts.

D

AWS Shield is a managed DDoS protection service, not a configuration compliance or auditing tool. It does not check S3 bucket policies for public access or provide a compliance dashboard across multiple accounts.

221
MCQmedium

A company is migrating an on-premises MySQL database to Amazon RDS for MySQL. The security team needs to understand their responsibilities under the AWS Shared Responsibility Model. Which of the following tasks is the customer's responsibility?

A.Applying minor version patches to the MySQL database engine
B.Managing the physical security of the data center where the RDS instance is hosted
C.Configuring security group rules to control network access to the database
D.Replacing failed hardware components in the RDS host server
AnswerC

This is correct. Security groups act as virtual firewalls for RDS instances. Configuring inbound and outbound rules to allow only necessary traffic is a customer responsibility under the Shared Responsibility Model.

Why this answer

Under the AWS Shared Responsibility Model, the customer is responsible for configuring security group rules to control network access to the database. Security groups act as a virtual firewall that controls inbound and outbound traffic at the instance level, and the customer must define the rules (e.g., source IP, port 3306 for MySQL) to restrict access appropriately.

Exam trap

The trap here is confusing 'patching the database engine' (which is AWS's responsibility for RDS) with 'configuring network access controls' (which is the customer's responsibility), leading candidates to incorrectly select Option A.

Why the other options are wrong

A

Under the AWS Shared Responsibility Model, AWS is responsible for applying minor version patches to the RDS database engine. The customer only controls patching for the EC2 instance or self-managed databases.

B

Under the AWS Shared Responsibility Model, AWS manages the physical security of data centers, including where RDS instances are hosted. The customer is not responsible for data center physical security.

D

Under the AWS Shared Responsibility Model, AWS is responsible for the physical infrastructure, including replacing failed hardware components in the RDS host server. The customer does not manage hardware replacements.

← PreviousPage 3 of 3 · 221 questions total

Ready to test yourself?

Try a timed practice session using only Security and Compliance questions.