Courseiva

CCNA Data Protection Questions

75 of 126 questions · Page 1/2 · Data Protection · Answers revealed

1
Multi-Selecthard

A company is designing a data protection strategy for its Amazon S3 bucket that stores sensitive customer data. The bucket must be encrypted at rest using a customer managed key (CMK) that is stored in AWS KMS. The company also needs to ensure that only authorized users can decrypt objects. Which TWO actions should the company take?

Select 2 answers
A.Create a bucket policy that denies s3:GetObject unless the request includes a specific encryption context
B.Modify the KMS key policy to allow only the authorized IAM roles to use the key
C.Attach an IAM policy to the authorized users that grants kms:Decrypt on the CMK
D.Create a VPC endpoint for S3 and use bucket policies to restrict access to the endpoint
E.Use SSE-C with a customer-provided key
AnswersB, C

Key policy controls access to the key.

Why this answer

To control decryption of S3 objects encrypted with a CMK in KMS, you must grant kms:Decrypt permission to authorized users, typically via an IAM policy (option C). Additionally, the KMS key policy should be configured to allow only the authorized IAM roles to use the key (option B). Option A is incorrect because a bucket policy with encryption context conditions controls the encryption context during upload, not decryption.

Option D is incorrect because a VPC endpoint for S3 restricts network access but does not grant decryption permissions. Option E is incorrect because SSE-C uses a customer-provided key, not a KMS CMK.

2
Multi-Selecthard

Which THREE practices are recommended for managing encryption keys in AWS KMS? (Choose 3.)

Select 3 answers
A.Delete the KMS key immediately when it is no longer needed.
B.Enable automatic rotation of the KMS key annually.
C.Export the KMS key material and store it in a secure S3 bucket.
D.Use key policies to restrict which IAM roles can use the key.
E.Enable AWS CloudTrail logging to record KMS key usage.
AnswersB, D, E

Rotation helps meet compliance requirements.

Why this answer

Options B, D, and E are correct. B: Enabling automatic key rotation annually is a best practice to ensure keys are rotated regularly without manual intervention. D: Using key policies to restrict which IAM roles can use the key follows the principle of least privilege.

E: Enabling AWS CloudTrail logging to record KMS key usage provides an audit trail for security monitoring. Option A is incorrect because deleting a KMS key immediately can cause permanent data loss; instead, you should schedule key deletion. Option C is incorrect because exporting KMS key material and storing it in an S3 bucket would expose the key material and defeat the purpose of using a managed service like KMS.

3
MCQhard

A company uses AWS CloudHSM to generate and store encryption keys for a custom application. The security team needs to ensure high availability and durability of the keys. Which architecture should be recommended?

A.Use AWS KMS instead of CloudHSM for better durability
B.Deploy a single CloudHSM instance in one Availability Zone
C.Deploy CloudHSM in two AWS Regions with automatic replication
D.Deploy a CloudHSM cluster with at least two HSMs in different Availability Zones
AnswerD

Provides redundancy and high availability.

Why this answer

Deploying a CloudHSM cluster with at least two HSMs in different Availability Zones ensures high availability and durability by eliminating a single point of failure and providing redundancy across AZs. Option A is incorrect because AWS KMS is a different service and does not provide the same hardware-based key generation and storage as CloudHSM. Option B is incorrect because a single CloudHSM instance in one AZ is a single point of failure.

Option C is incorrect because CloudHSM does not automatically replicate data across regions; cross-region replication requires manual backup and restore processes.

4
Multi-Selecthard

A company is designing a data protection strategy for Amazon S3. The compliance team requires that all objects be encrypted at rest and that any attempt to upload an unencrypted object be blocked. Which TWO steps should the company take? (Choose TWO.)

Select 2 answers
A.Enable default encryption on the bucket with SSE-S3 or SSE-KMS.
B.Add a bucket policy that denies s3:PutObject unless the request includes the x-amz-server-side-encryption header.
C.Enable S3 Object Lock.
D.Enable S3 Transfer Acceleration.
E.Enable S3 Block Public Access.
AnswersA, B

Default encryption encrypts objects automatically.

Why this answer

Options A and B are correct. Enabling default encryption (A) ensures all objects are encrypted at rest. Adding a bucket policy that denies s3:PutObject unless the x-amz-server-side-encryption header is present (B) blocks unencrypted uploads.

Option E is incorrect because S3 Block Public Access does not enforce encryption at rest; it only prevents public access to buckets and objects. Options C and D are also incorrect: S3 Object Lock does not enforce encryption, and S3 Transfer Acceleration does not encrypt data.

Exam trap

The trap here is that S3 Block Public Access is a security control but does not address encryption requirements. Candidates may mistakenly include it as a data protection measure for encryption.

5
MCQhard

A company uses AWS Secrets Manager to store database credentials. The security team needs to ensure that secrets are automatically rotated every 30 days. The rotation function must be implemented with minimal operational overhead. Which approach should be used?

A.Create an Amazon EventBridge rule that triggers a Lambda function to rotate the secret
B.Use AWS CLI to schedule a cron job that runs every 30 days and rotates the secret
C.Use Amazon CloudWatch Events to invoke an AWS Lambda function that updates the secret
D.Enable automatic rotation in Secrets Manager and configure the rotation interval to 30 days
AnswerD

Correct: Secrets Manager natively supports automatic rotation with a configurable interval.

Why this answer

AWS Secrets Manager provides built-in automatic rotation for supported secrets, allowing you to configure the rotation interval directly in the secret's settings. This approach requires no custom infrastructure, minimizing operational overhead. Option A is incorrect because creating an EventBridge rule and a custom Lambda function adds unnecessary complexity when Secrets Manager can handle the scheduling automatically.

Option B is incorrect because using a cron job with the AWS CLI is manual, error-prone, and not scalable for automated rotation. Option C is incorrect because it essentially duplicates Option A's approach (CloudWatch Events is the same as EventBridge) and is not the most streamlined method.

6
MCQmedium

A company wants to protect data at rest in Amazon S3 using client-side encryption. The application will run on Amazon EC2 instances. Which approach meets these requirements?

A.Use SSE-S3 and rely on S3 to manage keys
B.Enable S3 default encryption on the bucket
C.Use SSE-KMS with a customer managed key
D.Use the AWS Encryption SDK to encrypt data before uploading to S3
AnswerD

Client-side encryption occurs before data reaches S3.

Why this answer

Client-side encryption requires the encryption process to occur on the client side before data is uploaded to S3. The AWS Encryption SDK is designed for this purpose, allowing you to encrypt data locally on the EC2 instance using your own keys, ensuring that S3 never sees the plaintext data. This meets the requirement to protect data at rest with client-side encryption, as the data is encrypted before leaving the application environment.

Exam trap

The trap here is that candidates confuse server-side encryption options (SSE-S3, SSE-KMS) with client-side encryption, assuming that using a customer managed key (SSE-KMS) satisfies client-side requirements when it actually still encrypts data on the server side.

How to eliminate wrong answers

Option A is wrong because SSE-S3 is a server-side encryption method where S3 manages the keys and encrypts data after it is received, not client-side encryption. Option B is wrong because enabling S3 default encryption on the bucket applies server-side encryption (SSE-S3 or SSE-KMS) to objects at the time of upload, not client-side encryption. Option C is wrong because SSE-KMS with a customer managed key is still server-side encryption; the encryption happens on the S3 side after the data is transmitted, not on the client side.

7
MCQeasy

A company wants to encrypt data in transit between an on-premises data center and AWS over a VPN connection. Which AWS service or feature should be used?

A.AWS Route 53 Resolver
B.AWS Certificate Manager (ACM)
C.AWS Site-to-Site VPN
D.Amazon API Gateway
AnswerC

Site-to-Site VPN creates encrypted tunnels.

Why this answer

WS Site-to-Site VPN (Option C). AWS Site-to-Site VPN creates encrypted tunnels between an on-premises data center and AWS, securing data in transit. Option A (AWS Route 53 Resolver) is a DNS resolution service and does not encrypt network traffic.

Option B (AWS Certificate Manager, ACM) is used to provision and manage SSL/TLS certificates for applications, not for VPN encryption. Option D (Amazon API Gateway) is for creating and managing APIs, not for encrypting data in transit between sites.

8
MCQhard

A company uses AWS KMS to encrypt its RDS database. The security team needs to ensure that the key can be used only from within the company's VPC and not from the internet. Which action should be taken?

A.Enable automatic key rotation and use an alias to restrict access
B.Use a key policy that denies all access except from the RDS instance's security group
C.Create a VPC endpoint for KMS and modify the key policy to allow only requests from the VPC endpoint
D.Create the key with a region restriction in the key policy
AnswerC

VPC endpoint with key policy condition allows VPC-only usage.

Why this answer

To restrict KMS key usage to a VPC, you must create a VPC endpoint for KMS (using AWS PrivateLink) and modify the key policy to include a condition that allows access only when the request comes from that VPC endpoint. This ensures that the key cannot be used from the internet. Option A is incorrect because key rotation does not restrict access to a VPC.

Option B is incorrect because a key policy cannot reference an RDS security group directly; also, denying all access except from a security group is not feasible. Option D is incorrect because region restriction does not limit usage to a VPC.

9
Multi-Selectmedium

Which THREE of the following are best practices for protecting data in transit within AWS? (Choose 3.)

Select 3 answers
A.Use VPC Peering with encryption
B.Use TLS listeners on Elastic Load Balancers
C.Enable S3 Transfer Acceleration
D.Configure Amazon CloudFront to require HTTPS
E.Use AWS Site-to-Site VPN for on-premises connectivity
AnswersB, D, E

Correct: TLS encrypts traffic between clients and load balancers.

Why this answer

Options B, D, and E are correct. Using TLS listeners on Elastic Load Balancers encrypts traffic between clients and the load balancer. Configuring Amazon CloudFront to require HTTPS ensures encrypted delivery to end users.

AWS Site-to-Site VPN provides encrypted tunnels for hybrid connectivity. Option A is incorrect because VPC Peering does not natively encrypt traffic; the option 'with encryption' is not a built-in feature and can be misleading. Option C is incorrect because S3 Transfer Acceleration speeds up uploads over the public internet but does not guarantee encryption of data in transit; it uses HTTPS but the selection of this option does not inherently enforce encryption.

10
Multi-Selecthard

Which TWO of the following are valid methods to enforce encryption at rest for an Amazon RDS for PostgreSQL DB instance? (Choose 2.)

Select 2 answers
A.Enable encryption on an existing unencrypted DB instance
B.Restore a DB instance from an encrypted snapshot
C.Take a snapshot of the unencrypted instance and enable encryption on the snapshot
D.Create an encrypted read replica and promote it
E.Create a new encrypted DB instance from the start
AnswersB, E

Correct: The restored instance inherits encryption from the snapshot.

Why this answer

Options B and E are correct. Encryption at rest for Amazon RDS can only be enabled when creating a new DB instance or by restoring from an encrypted snapshot. Option A is incorrect because you cannot enable encryption on an existing unencrypted instance.

Option C is incorrect because you cannot enable encryption on a snapshot; you must create a copy with encryption. Option D is incorrect because read replicas inherit encryption settings from the source; an encrypted read replica requires an encrypted source, which would already require an encrypted instance.

11
Multi-Selecteasy

Which TWO methods can be used to encrypt data at rest in Amazon S3? (Choose 2.)

Select 2 answers
A.Set a bucket policy that denies uploads without encryption.
B.Use SSE-S3 to have Amazon S3 manage the encryption keys.
C.Enable encryption in transit using HTTPS.
D.Enable MFA Delete on the S3 bucket.
E.Encrypt the objects client-side before uploading to S3.
AnswersB, E

SSE-S3 encrypts data at rest.

Why this answer

The correct ways to encrypt data at rest in Amazon S3 are using server-side encryption with S3 managed keys (SSE-S3) and client-side encryption before uploading. SSE-S3 encrypts objects at rest on the server side (Option B). Client-side encryption encrypts data before it is sent to S3, ensuring encryption at rest as well (Option E).

Option A is incorrect because a bucket policy can enforce encryption, but it does not actually encrypt data; it only denies uploads without encryption. Option C is wrong because encryption in transit (HTTPS) protects data during transfer, not at rest. Option D is wrong because MFA Delete provides additional protection against accidental deletion, not encryption.

12
Multi-Selectmedium

A company is using AWS KMS to encrypt data in Amazon S3. They need to ensure that the KMS key can only be used from within a specific VPC. Which TWO actions should be taken?

Select 2 answers
A.Create a VPC endpoint for AWS KMS.
B.Attach an IAM policy to the role that denies kms:Decrypt unless the request comes from the VPC.
C.Create a VPC endpoint for Amazon S3.
D.Add a bucket policy condition to restrict access to the VPC.
E.Modify the KMS key policy to include a condition on kms:SourceVpc.
AnswersA, E

Enables private connectivity to KMS from the VPC.

Why this answer

A VPC endpoint for AWS KMS allows KMS API calls to be routed through the VPC, ensuring traffic does not traverse the public internet. Option E is correct because you can modify the KMS key policy to include a condition using the kms:SourceVpc key, which restricts use of the KMS key to requests originating from the specified VPC. Option B is incorrect because IAM policies cannot directly restrict based on VPC for KMS; such restrictions must be in the key policy.

Option C is incorrect because a VPC endpoint for Amazon S3 does not restrict KMS calls. Option D is incorrect because S3 bucket policies control access to S3 objects, not KMS key usage.

13
MCQeasy

A company wants to encrypt data at rest in Amazon S3 using server-side encryption with Amazon S3-managed keys (SSE-S3). What is the minimum permission required for an IAM user to upload an object that will be encrypted with SSE-S3?

A.s3:PutObjectAcl
B.kms:Decrypt
C.s3:PutObject
D.kms:GenerateDataKey
AnswerC

SSE-S3 is transparent; no additional permissions are needed.

Why this answer

(s3:PutObject) is correct. SSE-S3 does not require any special permissions beyond s3:PutObject; S3 handles the encryption automatically. Option A (s3:PutObjectAcl) is wrong because it is for managing object ACLs, not for uploading.

Option B (kms:Decrypt) is wrong because it is not needed for SSE-S3; kms:Decrypt is used for decryption with KMS. Option D (kms:GenerateDataKey) is wrong because it is needed for SSE-KMS, not SSE-S3.

14
MCQeasy

A company wants to ensure that data stored in Amazon EBS volumes is encrypted at rest. What is the easiest way to achieve this?

A.Use AWS KMS to rotate the EBS encryption key
B.Use a script to encrypt each volume after creation
C.Enable EBS encryption by default in the AWS Region
D.Use application-level encryption
AnswerC

EBS encryption by default ensures all new volumes are encrypted.

Why this answer

Enabling EBS encryption by default in the AWS Region automatically encrypts all new EBS volumes and snapshots with no additional effort. Option A is incorrect: KMS key rotation does not enable encryption; it rotates the key used for encryption. Option B is incorrect: while you can encrypt individual volumes after creation, the easiest method is to enable default encryption.

Option D is incorrect: application-level encryption is not needed for EBS volumes and is more complex to implement.

15
MCQmedium

A company uses S3 to store sensitive customer data. The security team requires that all objects uploaded to S3 be encrypted at rest using server-side encryption with AWS KMS managed keys (SSE-KMS). A developer reports that some objects are being stored unencrypted. What is the MOST effective way to enforce this requirement?

A.Enable default encryption on the bucket using SSE-S3
B.Use a bucket policy to deny s3:PutObject if encryption is not set to aws:kms
C.Use an SCP to deny s3:PutObject without encryption
D.Set a bucket policy to require the x-amz-server-side-encryption header
AnswerB

Policy condition can enforce SSE-KMS.

Why this answer

A bucket policy with a Deny effect on s3:PutObject when the condition `s3:x-amz-server-side-encryption` is not equal to `aws:kms` enforces SSE-KMS for all uploads. Option A is incorrect because default encryption using SSE-S3 can be overridden by the PUT request, and it does not enforce KMS. Option C is incorrect because SCPs apply at the account or organizational unit level, not to individual buckets, and are less direct than bucket policies.

Option D is incorrect because requiring the `x-amz-server-side-encryption` header alone does not mandate the value `aws:kms`; a requester could set it to `AES256` (SSE-S3).

16
MCQeasy

A security engineer is investigating a potential data breach and finds this CloudTrail log entry. What does this entry indicate?

A.A user encrypted data using a KMS key
B.A user decrypted data using a KMS key
C.An anonymous user accessed the KMS key
D.The KMS key was deleted
AnswerB

The event name is Decrypt.

Why this answer

The CloudTrail log entry includes an event where a user called the Decrypt API on a KMS key, indicating that data was decrypted using that key. Option A is incorrect because the event is a Decrypt, not an Encrypt. Option C is incorrect because the user is identified in the log entry (it's not anonymous).

Option D is incorrect because the event is a Decrypt operation, not a deletion.

17
MCQmedium

A company uses S3 to store confidential documents. They want to ensure that objects are encrypted at rest using customer-provided encryption keys (SSE-C). Which header must be included in every PUT request?

A.x-amz-server-side-encryption: AES256
B.x-amz-server-side-encryption-customer-key: <key>
C.x-amz-server-side-encryption-customer-algorithm: AES256
D.x-amz-server-side-encryption: aws:kms
AnswerC

Required for SSE-C.

Why this answer

To use SSE-C, PUT requests must include several headers: the algorithm header, the encryption key, and the key MD5 hash. Option A (`x-amz-server-side-encryption: AES256`) is for SSE-S3, Option D (`x-amz-server-side-encryption: aws:kms`) is for SSE-KMS. Option B (`x-amz-server-side-encryption-customer-key`) is a required header for SSE-C, but it carries the key material, not the algorithm setting.

Option C (`x-amz-server-side-encryption-customer-algorithm`) is the correct answer because it is the mandatory header that explicitly specifies the use of customer-provided encryption with AES256.

18
Multi-Selectmedium

A company wants to protect sensitive data stored in S3 from being accessed by unauthorized users. Which TWO actions should be taken? (Choose two.)

Select 2 answers
A.Use IAM policies to restrict access to the bucket.
B.Enable S3 Versioning.
C.Enable default encryption on all S3 buckets.
D.Enable S3 Block Public Access at the account level.
E.Enable MFA Delete on the bucket.
AnswersA, D

IAM policies grant or deny access to S3 actions and resources.

Why this answer

Options A and D are correct. IAM policies restrict access to the S3 bucket at the user/role level, and S3 Block Public Access prevents any public access to S3 resources at the account level. Option C is incorrect because default encryption only protects data at rest but does not prevent unauthorized access; it is a data protection mechanism, not an access control mechanism.

Option B (versioning) and Option E (MFA Delete) are related to data protection and deletion prevention, respectively, and do not control access to the data.

19
MCQmedium

Refer to the exhibit. A security engineer applies the bucket policy shown to an S3 bucket. The engineer attempts to upload a file using the AWS CLI without specifying any encryption. What is the outcome?

A.The upload fails because the policy denies all PutObject requests.
B.The upload succeeds because default encryption on the bucket will encrypt the object with SSE-S3.
C.The upload fails because the policy denies PutObject when encryption is not SSE-KMS.
D.The upload succeeds because the object is encrypted with SSE-S3 by default.
AnswerB

Default encryption is not mentioned and does not override the policy.

Why this answer

The bucket policy includes a Deny effect with a condition 'StringNotEquals': {'s3:x-amz-server-side-encryption': 'aws:kms'}. This condition denies requests only when the x-amz-server-side-encryption header is present in the request and its value is not 'aws:kms'. If the header is absent (as when the user does not specify encryption), the condition evaluates to false, meaning the Deny rule does not apply.

Therefore, the upload is not denied by this policy. Since new S3 buckets have default encryption enabled with SSE-S3, the object will be encrypted with SSE-S3, and the upload succeeds. Option A is incorrect because the policy does not deny all requests; it only denies those that include a supported but non-matching encryption header.

Option C is incorrect because it assumes the Deny applies when the header is absent, which is not the case for 'StringNotEquals' (without 'IfExists'). Option D is similar to B but B is the more precise statement.

20
Multi-Selecthard

A company uses Amazon Redshift with encryption at rest using AWS KMS. They want to ensure that automated snapshots are encrypted with the same key and that cross-account snapshot sharing is secured. Which THREE steps should be taken?

Select 3 answers
A.Enable encryption on the Redshift cluster at creation time.
B.Create a new KMS key for snapshot encryption to isolate from the cluster key.
C.Modify the KMS key policy to allow the target AWS account to decrypt.
D.Create a snapshot copy grant for the target account to use the KMS key.
E.Enable AWS Config rule to detect unencrypted snapshots.
AnswersA, C, D

Encrypted clusters automatically encrypt snapshots.

Why this answer

Options A, C, and D are correct. Option A is correct because Amazon Redshift automatically encrypts snapshots with the same KMS key used for the cluster when encryption is enabled at creation. Option C is correct because to share snapshots cross-account, the KMS key policy must grant the target account permission to decrypt using the key.

Option D is correct because a snapshot copy grant is required to authorize the target account to use the KMS key for encrypted snapshot sharing. Option B is incorrect because a separate key is not necessary; the same key can be used if proper permissions are set. Option E is incorrect because AWS Config rules can detect unencrypted snapshots but do not directly enforce cross-account sharing security.

21
MCQeasy

A company is migrating sensitive data to Amazon S3. They need to ensure that data is encrypted at rest using an AWS KMS customer managed key (CMK). The security team wants to enforce encryption for all new objects uploaded to an S3 bucket. Which policy should be attached to the bucket?

A.A bucket policy that allows s3:PutObject only if the user has KMS permissions
B.An S3 bucket default encryption setting with AES256
C.An S3 Lifecycle policy to transition objects to Glacier after 30 days
D.A bucket policy with a condition that denies s3:PutObject unless the request includes the x-amz-server-side-encryption-aws:kms header
AnswerD

Denies unencrypted uploads.

Why this answer

It uses a bucket policy condition that denies s3:PutObject unless the request includes the x-amz-server-side-encryption header with value aws:kms (though the option text shows a combined form). This enforces the use of AWS KMS customer managed key (CMK) for server-side encryption. Option A is incorrect because it only allows PutObject if the user has KMS permissions, which does not guarantee the object is encrypted with KMS; the user could still upload without encryption.

Option B configures default encryption, but it can be overridden by the uploader; it does not enforce encryption. Option C is about lifecycle policy, not encryption enforcement.

22
MCQhard

A security engineer is reviewing the configuration of an S3 bucket. What is a security concern with the current configuration?

A.Versioning is enabled, which increases storage costs
B.The lifecycle rule will permanently delete current versions after 30 days
C.MFA Delete is enabled, which blocks legitimate administrative actions
D.The bucket policy grants public read access to all objects
AnswerD

Principal: * allows anyone to read objects.

Why this answer

A bucket policy that grants public read access to all objects poses a significant security risk by exposing data to anyone on the internet. Option A is incorrect: enabling versioning increases storage costs but is not a security concern. Option B is incorrect: a lifecycle rule that permanently deletes current versions after 30 days is a data management policy, not a security issue.

Option C is incorrect: MFA Delete is a security best practice and does not block legitimate administrative actions.

23
MCQhard

A company uses AWS KMS to encrypt data in Amazon S3. The security team receives an alert that an IAM user is attempting to decrypt data using a key that they do not have access to. Which AWS service can be used to monitor and alert on such unauthorized KMS API calls?

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

CloudTrail logs KMS actions; alarms can be set on specific events.

Why this answer

AWS CloudTrail logs all KMS API calls, and CloudWatch Alarms can be configured to trigger on specific unauthorized API calls, such as Decrypt attempts with a key the user does not have access to. Option A is incorrect because Amazon GuardDuty is a threat detection service that focuses on identifying malicious activity, but it does not provide detailed monitoring of specific KMS API calls. Option B is incorrect because AWS Config evaluates resource configurations and compliance, not API calls.

Option D is incorrect because Amazon Inspector is a vulnerability assessment service for EC2 instances and does not monitor API calls.

24
Multi-Selecthard

Which THREE of the following are required to use client-side encryption with Amazon S3 using AWS KMS? (Choose three.)

Select 3 answers
A.An S3 bucket policy that forces encryption.
B.The encrypted data key is stored as metadata with the S3 object.
C.A KMS key policy that allows the S3 service to decrypt.
D.Permissions for the IAM user or role to call kms:GenerateDataKey.
E.The AWS SDK Encryption Client library.
AnswersB, D, E

The encrypted data key is stored alongside the object for later decryption.

Why this answer

Options B, D, and E are correct. The client must call kms:GenerateDataKey (Option D) to obtain a data key, which is then used to encrypt the data. The encrypted data key is stored as metadata with the S3 object (Option B).

The AWS SDK Encryption Client library (Option E) handles the client-side encryption process. Option A is wrong because an S3 bucket policy forcing encryption is not required for client-side encryption; that is used for server-side encryption enforcement. Option C is wrong because the KMS key policy does not need to allow the S3 service to decrypt; client-side encryption does not involve S3 decrypting the data.

25
MCQmedium

A company runs a web application on Amazon EC2 instances behind an Application Load Balancer. The application uses an Amazon RDS for MySQL database. The security team requires that all data in transit between the EC2 instances and the database be encrypted. The database is in a private subnet. The EC2 instances are in a public subnet. The security team also wants to minimize latency. What should be done to meet these requirements?

A.Use AWS Certificate Manager to issue a certificate for the RDS endpoint
B.Set up a VPN connection between the EC2 instances and the RDS instance using an IPsec VPN
C.Place the EC2 instances and RDS in the same subnet and use a NAT gateway
D.Enable SSL/TLS on the RDS instance and configure the application to use encrypted connections
AnswerD

This encrypts data in transit with minimal latency.

Why this answer

In a typical AWS environment, data in transit between an application and an RDS database can be encrypted using SSL/TLS. RDS for MySQL supports SSL/TLS connections. To meet the requirement, enable SSL/TLS on the RDS instance by downloading the certificate bundle and configuring the DB instance to require encrypted connections.

Then, configure the application to use SSL/TLS when connecting to the database. This approach encrypts data in transit with minimal overhead compared to a VPN, which can introduce latency. Option A (using AWS Certificate Manager for the RDS endpoint) is incorrect because ACM is typically used for load balancers and CloudFront, not for direct database connections.

While ACM can provide certificates for applications, RDS itself uses its own certificate authority for SSL/TLS. Option B (setting up an IPsec VPN) is unnecessary and adds complexity and latency without providing encryption specific to the database connection; SSL/TLS already meets the requirement. Option C (placing instances in the same subnet and using a NAT gateway) does not encrypt data in transit and increases latency via NAT gateway.

26
MCQeasy

Refer to the exhibit. A security engineer reviews the bucket policy for an S3 bucket. The engineer attempts to upload an object to the bucket using the AWS CLI without the --ssl flag (HTTP). What is the outcome?

A.The upload succeeds because the policy allows all actions.
B.The upload fails because the policy denies requests that are not using HTTPS.
C.The upload succeeds because the bucket has default encryption enabled.
D.The upload fails because the policy denies s3:PutObject only.
AnswerB

Condition denies if SecureTransport is false (HTTP).

Why this answer

The bucket policy includes a condition that explicitly denies all s3: actions (including s3:PutObject) when the request does not use HTTPS (SecureTransport is false). Since the engineer uses HTTP (no --ssl flag), the condition is met, and the upload is denied. Option A is incorrect because the policy does not allow all actions; it includes a conditional deny.

Option C is incorrect because default encryption does not override the explicit deny in the policy. Option D is incorrect because the policy denies all s3 actions, not just s3:PutObject.

27
Multi-Selectmedium

Which TWO actions can help protect data at rest in Amazon EBS volumes? (Choose 2.)

Select 2 answers
A.Enable automatic encryption of EBS snapshots by default.
B.Use an instance type that supports encryption at rest.
C.Configure the operating system to use encrypted file systems.
D.Enable EBS encryption by default in the AWS Account settings.
E.Use encrypted EBS volumes with AWS KMS customer-managed keys.
AnswersD, E

This encrypts all new EBS volumes.

Why this answer

Options D and E are correct. D: Enabling EBS encryption by default in AWS Account settings ensures that all new EBS volumes are encrypted at rest. E: Using encrypted EBS volumes with AWS KMS customer-managed keys provides granular control over encryption keys.

Option A is incorrect because EBS snapshots are not automatically encrypted by default; they can be encrypted during copy or by enabling encryption by default for volumes. Option B is incorrect because encryption at rest is independent of instance type; any instance type can use encrypted EBS volumes. Option C is incorrect because configuring the OS to use encrypted file systems is not the primary method for protecting data at rest on EBS; EBS encryption at the volume level is more appropriate.

28
MCQmedium

A company is using Amazon S3 to store backup files that must be retained for 7 years. The files are accessed infrequently but must be available within minutes when needed. The company wants to minimize storage costs while ensuring data is encrypted at rest. Which storage class and encryption combination is most cost-effective?

A.S3 Glacier Instant Retrieval with SSE-S3
B.S3 Glacier Deep Archive with SSE-S3
C.S3 Glacier Flexible Retrieval with SSE-KMS
D.S3 Standard-IA with SSE-KMS
AnswerA

Instant retrieval and cost-effective.

Why this answer

S3 Glacier Instant Retrieval is the most cost-effective storage class for infrequently accessed data that must be available within minutes, with millisecond retrieval times. It is designed for long-term archival data with immediate access needs. SSE-S3 provides encryption at rest at no additional cost, making it more cost-effective than SSE-KMS.

Options B and C have retrieval times of hours, not meeting the 'minutes' requirement. Option D (S3 Standard-IA) is more expensive than Glacier Instant Retrieval for long-term retention.

29
MCQhard

Refer to the exhibit. A security engineer is reviewing the bucket encryption configuration. The bucket is used to store sensitive data. The company policy requires that all objects be encrypted using AWS KMS with a customer managed key. What should the engineer do to meet the policy?

A.Enable the bucket key and set SSEAlgorithm to AES256
B.Use client-side encryption with a KMS key
C.Update the bucket encryption configuration to use SSEAlgorithm: aws:kms and specify a KMS key ID
D.Add a bucket policy that requires kms:Encrypt permission for all PutObject requests
AnswerC

Changes default encryption to SSE-KMS.

Why this answer

The current bucket encryption configuration uses SSE-S3 (AES256). To meet the policy requiring KMS with a customer managed key, the engineer must update the bucket's default encryption settings to use SSE-KMS (aws:kms) and specify the KMS key ID. Option C correctly describes this.

Option A is incorrect because enabling the bucket key with SSE-S3 does not change the encryption algorithm to KMS. Option B is incorrect because client-side encryption with a KMS key is not a bucket-level configuration; it is applied by the client before upload and does not modify the default server-side encryption setting. Option D is incorrect because adding a bucket policy that requires kms:Encrypt permission for PutObject requests does not enforce server-side encryption with KMS; it only authorizes KMS encryption if used, but objects could still be uploaded without specifying KMS encryption.

30
Multi-Selecthard

A company is migrating on-premises file servers to Amazon EFS. The data must be encrypted at rest and in transit. Which THREE steps should the company take to meet these requirements?

Select 3 answers
A.Use a KMS customer managed key for encryption at rest
B.Use AWS Certificate Manager to issue a certificate
C.Install an SSL certificate on the EFS file system
D.Mount the EFS file system using TLS
E.Enable encryption at rest on the EFS file system
AnswersA, D, E

Using a KMS customer managed key is a way to control the encryption key for at-rest encryption, but it requires that encryption at rest is enabled first. This is a necessary step.

Why this answer

To meet the requirements for encryption at rest and in transit on Amazon EFS, you need three steps: (1) Use a KMS customer managed key for encryption at rest (option A). (2) Enable encryption at rest on the EFS file system (option E). (3) Mount the EFS file system using TLS to ensure encryption in transit (option D). Option B (using AWS Certificate Manager) is not needed because EFS does not require certificates for its TLS implementation. Option C (installing an SSL certificate on the EFS file system) is incorrect because EFS does not support installing certificates directly; TLS is handled at the client side during mounting.

31
Multi-Selecthard

A company is using AWS KMS to encrypt data in Amazon S3 and Amazon RDS. Which THREE practices should be followed to ensure the security of the KMS keys?

Select 3 answers
A.Enable automatic key rotation for the KMS keys.
B.Disable automatic key rotation to maintain control over the key material.
C.Share the KMS key across multiple AWS accounts using cross-account access.
D.Use IAM policies and key policies to restrict access to the KMS key to only required principals.
E.Enable CloudTrail to log all KMS API calls.
AnswersA, D, E

Rotates backing keys annually.

Why this answer

Options A, D, and E are correct practices for securing KMS keys. Enabling automatic key rotation (A) helps reduce the impact of a compromised key. Using IAM policies and key policies to restrict access (D) follows the principle of least privilege.

Enabling CloudTrail logging for KMS API calls (E) provides an audit trail for monitoring usage. Option B is incorrect because disabling automatic key rotation is not a security best practice; rotation limits the exposure of key material. Option C is incorrect because sharing a KMS key across multiple accounts via cross-account access increases the attack surface and is not a recommended practice; instead, each account should have its own keys or use cross-account access only when necessary with strict controls.

32
MCQhard

A security engineer applies the above S3 bucket policy. An application tries to upload an object with the header "x-amz-server-side-encryption: AES256". What will happen?

A.The upload succeeds because the policy allows SSE-S3.
B.The upload fails because the encryption header does not match 'aws:kms'.
C.The upload succeeds because the object is encrypted.
D.The upload fails because the header is missing.
AnswerB

The first statement denies non-KMS encryption headers.

Why this answer

The first condition in the S3 bucket policy denies PutObject if the encryption header is not "aws:kms" (using StringNotEquals). Since the application sends "x-amz-server-side-encryption: AES256", which is not "aws:kms", the deny condition is triggered. The second condition denies if the header is missing, but here it is present, so it does not apply.

Therefore, the upload is denied.

33
MCQmedium

A security engineer is reviewing a KMS key policy. What does this policy accomplish?

A.Allow the SecurityAudit role to decrypt and re-encrypt data only from the same AWS account
B.Deny decryption to the SecurityAudit role
C.Allow the SecurityAudit role to use the key only for specific KMS keys
D.Allow any user from account 123456789012 to use the key
AnswerA

Condition restricts to account 123456789012.

Why this answer

The key policy includes a condition that restricts the Principal to the SecurityAudit role and the actions to Decrypt and ReEncrypt*. The condition (likely aws:SourceAccount or similar) ensures that decryption and re-encryption can only be performed from the same AWS account (123456789012). Option B is incorrect because the policy allows decryption, not denies it.

Option C is incorrect because the policy applies to this specific KMS key, not to specific keys within the policy. Option D is incorrect because the policy restricts usage to the SecurityAudit role, not any user from the account.

34
MCQeasy

A company needs to ensure that data in transit between an EC2 instance and an RDS database is encrypted. Which solution meets this requirement?

A.Use a VPN connection between the VPC and the database
B.Enable encryption at rest on the RDS instance
C.Enable SSL/TLS on the database connection
D.Use client-side encryption on the application
AnswerC

SSL/TLS encrypts data in transit.

Why this answer

SSL/TLS is the appropriate solution to encrypt data in transit between the EC2 instance and the RDS database. It ensures that data is encrypted during transmission, preventing eavesdropping or tampering. Option A is incorrect because a VPN connection encrypts traffic between networks but is unnecessary for direct connectivity within the same VPC; SSL/TLS is more straightforward.

Option B is incorrect because encryption at rest protects data stored on disk, not data in motion. Option D is incorrect because client-side encryption would require modifying the application to encrypt data before sending, which does not guarantee encryption of the entire communication channel.

35
MCQmedium

A company needs to protect sensitive data in Amazon S3 from accidental deletion or overwriting. The data must be retained for at least 7 years after creation. Which combination of S3 features should be used?

A.Enable S3 Versioning and enable S3 Object Lock in Compliance mode
B.Use S3 Intelligent-Tiering and lifecycle policies
C.Enable S3 Versioning and MFA Delete
D.Enable S3 Object Lock in Governance mode and configure a lifecycle policy to expire objects after 7 years
AnswerD

Object Lock in Governance mode prevents deletion and overwriting during the retention period, and a lifecycle policy can expire objects after exactly 7 years, satisfying the requirement.

Why this answer

S3 Object Lock in Governance mode prevents objects from being deleted or overwritten during the retention period, and a lifecycle policy can automatically expire objects after 7 years to meet the retention requirement. Option A is incorrect because Object Lock in Compliance mode also prevents deletion and overwriting, but without specifying a retention period, it does not enforce the 7-year retention; additionally, Compliance mode cannot be overridden, which may be too restrictive. Option B is incorrect because S3 Intelligent-Tiering and lifecycle policies manage storage costs and transitions, not protection against deletion or overwriting.

Option C is incorrect because versioning and MFA Delete protect against accidental deletion and preserve overwritten versions, but do not guarantee a 7-year retention period; lifecycle policies would be needed to enforce it.

36
MCQeasy

A company wants to protect data in transit between an on-premises data center and Amazon S3. Which AWS service should be used to establish a dedicated, encrypted connection?

A.AWS Direct Connect without VPN
B.AWS Transit Gateway
C.AWS Direct Connect with an IPsec VPN
D.AWS Site-to-Site VPN over the internet
AnswerC

Dedicated, encrypted.

Why this answer

AWS Direct Connect with IPsec VPN provides a dedicated private connection with encryption, ensuring data in transit is protected. Direct Connect alone (without VPN) is private but not encrypted by default; adding IPsec VPN over the Direct Connect link provides encryption. Option A is Direct Connect without VPN, which lacks encryption.

Option B, AWS Transit Gateway, is a network transit hub, not a direct connection service. Option D, Site-to-Site VPN over the internet, uses the public internet and is not dedicated. Therefore, the correct answer is C.

37
Multi-Selecthard

A company needs to protect data in Amazon S3 by ensuring that only authorized users can access objects, and all access is logged. Which TWO services should be used together? (Choose TWO.)

Select 2 answers
A.AWS Identity and Access Management (IAM)
B.AWS CloudTrail
C.AWS KMS
D.AWS WAF
E.Amazon CloudWatch
AnswersA, B

IAM policies define who can access S3 objects.

Why this answer

AWS Identity and Access Management (IAM) is correct because it enables you to define granular permissions for S3 objects, ensuring that only authorized users or roles can access them via IAM policies or S3 bucket policies. AWS CloudTrail is correct because it logs all API calls made to S3, including object-level operations like GetObject and PutObject, providing an audit trail for access. Together, they satisfy the requirement of controlling access and logging all access.

Exam trap

The trap here is that candidates often confuse AWS KMS with access control because encryption is related to data protection, but KMS does not authorize user access or log access events, which are the core requirements in this question.

38
Multi-Selectmedium

Which TWO of the following are valid ways to enforce encryption at rest for data in Amazon S3? (Choose TWO.)

Select 2 answers
A.Use SSL/TLS
B.Use IAM policies
C.Use AWS CloudTrail
D.Use SSE-KMS
E.Use SSE-C
AnswersD, E

SSE-KMS uses KMS keys for encryption.

Why this answer

SSE-KMS (Option D) and SSE-C (Option E) are both methods for encrypting objects at rest in Amazon S3. Option A is wrong because SSL/TLS is for encryption in transit. Option B is wrong because IAM policies control access, not encryption.

Option C is wrong because CloudTrail is a logging service, not an encryption method.

39
Multi-Selectmedium

A company is using Amazon RDS for PostgreSQL with encryption at rest using AWS KMS. The security team wants to ensure that only a specific set of IAM roles can manage the KMS key used for encryption. Which TWO steps should the team take?

Select 2 answers
A.Attach an IAM policy to the IAM roles that grants kms:Encrypt and kms:Decrypt
B.Modify the KMS key policy to allow the specific IAM roles to use the key
C.Attach an IAM policy to the IAM roles that grants kms:Decrypt only
D.Create an S3 bucket policy to restrict access to the KMS key
E.Use a VPC endpoint policy to restrict access to the KMS key
AnswersA, B

IAM policies can grant permissions if the key policy allows it.

Why this answer

To control access to a KMS key used for RDS encryption, two steps are required. First, modify the KMS key policy to grant the specific IAM roles permission to use the key (Option B). Second, attach an IAM policy to those roles that grants the necessary KMS actions, such as kms:Encrypt and kms:Decrypt (Option A).

Option C is insufficient because it only grants decryption; both encrypt and decrypt are needed for RDS to use the key. Option D is incorrect because S3 bucket policies are not relevant to KMS key permissions. Option E is incorrect because VPC endpoint policies control network access, not key usage permissions.

40
MCQeasy

Refer to the exhibit. A security engineer runs the above AWS CLI command to encrypt a secret file. The command succeeds and returns a base64-encoded ciphertext. Which of the following statements is correct?

A.The command returns a plaintext data key and an encrypted copy.
B.The command will fail because fileb:// is not a valid prefix.
C.The command returns a base64-encoded ciphertext that can be decrypted with the same KMS key.
D.The command will fail because encryption context is required.
AnswerC

The encrypt API returns base64-encoded ciphertext.

Why this answer

The command encrypts the plaintext file using the specified KMS key and returns the ciphertext as base64-encoded output. Option A is wrong because the command does not specify an encryption context; it's optional. Option B is wrong because the command uses fileb:// which reads binary data; it will succeed if the file exists.

Option D is wrong because the output is the ciphertext, not a data key.

41
MCQeasy

A startup is building a web application on AWS and needs to protect sensitive customer data at rest in an Amazon RDS for MySQL database. The compliance team requires that the encryption keys be managed by the company's on-premises hardware security module (HSM) and be rotated every 6 months. Which solution should the startup use?

A.Use AWS CloudHSM to store the encryption keys and enable RDS encryption with CloudHSM.
B.Use AWS KMS with a customer master key (CMK) and import key material from the on-premises HSM.
C.Store the encryption keys in AWS Secrets Manager and use them to encrypt the database.
D.Use AWS KMS with a custom key store backed by AWS CloudHSM.
AnswerA

CloudHSM provides a dedicated HSM that you control, and RDS can be encrypted using keys from CloudHSM.

Why this answer

AWS CloudHSM provides a dedicated hardware security module (HSM) that allows you to manage encryption keys on-premises-style, meeting the requirement for key management on the company's own HSM. When you enable Amazon RDS for MySQL encryption with CloudHSM, the database encryption keys are stored and managed in the CloudHSM cluster, and you can rotate them every 6 months as required. This solution directly satisfies the compliance team's mandate for on-premises HSM key management and periodic rotation.

Exam trap

The trap here is that candidates confuse AWS CloudHSM (a dedicated HSM service where you manage keys directly) with AWS KMS custom key stores (which also use CloudHSM but are managed through KMS), leading them to choose option D, which does not allow the company to manage keys on their own on-premises HSM.

How to eliminate wrong answers

Option B is wrong because AWS KMS with imported key material does not allow the key to be managed by the company's on-premises HSM; the key material is imported into KMS, but the HSM is not used for ongoing key operations or rotation. Option C is wrong because AWS Secrets Manager is a service for storing secrets, not for managing encryption keys for RDS encryption, and it does not integrate with an on-premises HSM for key management. Option D is wrong because a custom key store backed by AWS CloudHSM uses CloudHSM as the key store, but the keys are still managed by AWS KMS, not directly by the company's on-premises HSM, and the compliance team requires the keys to be managed by their own on-premises HSM, not an AWS-managed CloudHSM.

42
Multi-Selecthard

A company is designing a data protection strategy for Amazon EFS file systems. The security team requires encryption at rest and in transit. Additionally, the team needs to control which KMS keys can be used to encrypt the file system. Which THREE steps should the team take?

Select 3 answers
A.Configure a KMS key policy that allows the EFS service to use the key.
B.Enable encryption at rest using a customer-managed KMS key when creating the EFS file system.
C.Enable default encryption on the EFS file system using SSE-S3.
D.Use an IAM policy to restrict which users can create encrypted file systems.
E.Enable encryption of data in transit using the mount helper's tls option on the client.
AnswersA, B, E

Key policy must grant EFS permissions to use the key.

Why this answer

You must configure the KMS key policy to allow the EFS service to use the key for encryption at rest. Option B is correct because encryption at rest is enabled by specifying a customer-managed KMS key when creating the EFS file system. Option E is correct because encryption in transit is enabled by using the TLS option when mounting the file system on the client.

Option C is incorrect because EFS does not support SSE-S3; it uses KMS for encryption at rest. Option D is incorrect because IAM policies can restrict who can create encrypted file systems, but the question specifically asks about controlling which KMS keys can be used, which is done via KMS key policies, not IAM policies.

43
MCQhard

A company uses AWS KMS to encrypt data in Amazon RDS. The security team discovers that a developer accidentally deleted a customer master key (CMK) used for RDS encryption. What is the impact on the RDS instances that were encrypted with that key?

A.The RDS instances will become inaccessible and data will be lost
B.The key deletion can be reversed within 30 days
C.The RDS instances will be automatically re-encrypted with a new key
D.The RDS instances will continue to operate normally
AnswerA

Without the key, the encrypted data cannot be decrypted.

Why this answer

When a Customer Master Key (CMK) is deleted in AWS KMS, the encrypted RDS instances become permanently inaccessible and the data is lost. AWS KMS enforces a waiting period (default 7-30 days) before deletion, but once the key is deleted, decryption is impossible. Option B is incorrect because although key deletion is reversible during the waiting period, after deletion the data is lost.

Option C is incorrect because automatic re-encryption is not possible without the original key. Option D is incorrect because the instances cannot operate normally without access to the encryption key.

44
MCQhard

A company uses Amazon S3 to store sensitive documents. They must ensure that all objects are encrypted at rest and that any attempt to upload an unencrypted object is denied. Which S3 bucket policy statement achieves this?

A.Deny s3:PutObject unless the request includes x-amz-server-side-encryption: AES256.
B.Deny s3:PutObject for all principals.
C.Deny s3:PutObject unless the request includes x-amz-server-side-encryption: AES256 AND the encryption is SSE-S3.
D.Allow s3:PutObject only when x-amz-server-side-encryption: AES256 is present.
AnswerC

Correctly denies unencrypted uploads by requiring the SSE header.

Why this answer

Option C is correct because it explicitly denies PutObject unless the request includes both the x-amz-server-side-encryption header with value AES256 (which requests SSE-S3) and the encryption type is SSE-S3. This ensures only objects encrypted with SSE-S3 can be uploaded. Option A is incorrect because it only checks for the header value AES256; while AES256 is specific to SSE-S3 and would also enforce SSE-S3, Option C provides a more explicit condition.

Option B is incorrect because it denies all PutObject requests. Option D is incorrect because an Allow statement cannot enforce a denial; a Deny statement is required to block unencrypted uploads.

45
MCQhard

A company uses AWS CloudHSM to store encryption keys for a custom database encryption application. The application runs on Amazon EC2 instances and uses the PKCS#11 library to communicate with the HSM. Recently, the application started failing with 'CKR_SESSION_HANDLE_INVALID' errors. Which of the following is the most likely cause?

A.The client certificate used for mutual TLS authentication has expired
B.The security group for the HSM does not allow inbound traffic from the EC2 instance
C.The application is not closing sessions properly, causing the HSM to reach the maximum number of open sessions
D.The HSM's firmware version is incompatible with the PKCS#11 library
AnswerC

Exhausting sessions causes invalid handle errors.

Why this answer

CloudHSM partitions have a limit on the number of open sessions. If the application does not properly close sessions, it can exhaust the limit, causing invalid session handle errors. Option C identifies this.

Option A would cause different errors, B is about connectivity, D is about certificates.

46
MCQhard

A company uses AWS KMS to encrypt data in Amazon S3. The security team notices that a KMS key has been deleted accidentally, causing data loss. The company wants to implement a solution to prevent accidental key deletion and enable recovery. What should the security team do?

A.Enable the key's 'Disable key' option and set a deletion waiting period of 7 days.
B.Enable automatic key rotation for the KMS key.
C.Create a multi-Region key and enable automatic key rotation.
D.Use AWS CloudHSM to store the key material and create a backup in another Region.
AnswerC

Multi-Region keys provide a replica in another region for recovery, and automatic rotation improves security.

Why this answer

Creating a multi-Region key replicates the key material to another AWS Region, providing a backup that can be used if the primary key is accidentally deleted. Enabling automatic key rotation further enhances security by regularly rotating the backing keys, but it does not prevent deletion. However, the multi-Region key approach allows recovery from accidental deletion by using the replica in another Region.

Option A is incorrect because disabling the key only prevents its use, not its deletion; the deletion waiting period allows recovery only if the deletion is canceled within the waiting period. Option B is incorrect because automatic key rotation does not prevent deletion; it only creates new cryptographic material. Option D is incorrect because AWS CloudHSM does not directly integrate with S3 server-side encryption using KMS (SSE-KMS) for automatic encryption; it requires custom applications.

Exam trap

Candidates may think that enabling automatic key rotation prevents deletion, but it only rotates the key material. The actual prevention of deletion and recovery is achieved through multi-Region keys, which provide a replica in another Region.

47
MCQhard

A company uses Amazon S3 to store sensitive documents. The security policy requires that all objects be encrypted using server-side encryption with customer-provided keys (SSE-C). An application fails when trying to read an object with the error 'The request includes an invalid header.' What is the MOST likely cause?

A.The application did not specify an encryption context in the request.
B.The KMS key used for encryption has been disabled.
C.The application did not include the x-amz-server-side-encryption-customer-key header in the GET request.
D.The S3 bucket does not have versioning enabled.
AnswerC

SSE-C requires the customer-provided key in every request.

Why this answer

SSE-C requires the encryption key to be provided in the request headers; if the key is missing or incorrect, the request fails with an invalid header error. Option A is wrong because SSE-C does not require an encryption context. Option B is wrong because SSE-C does not involve KMS keys.

Option D is wrong because SSE-C does not require bucket versioning.

48
Multi-Selecthard

A company is migrating a legacy application to AWS. The application stores sensitive data and must comply with PCI DSS. The security team needs to ensure that data is encrypted at rest using keys that are rotated every 12 months. Which THREE steps should the team take?

Select 3 answers
A.Enable AWS CloudTrail to log all KMS key usage
B.Ensure the application uses envelope encryption to encrypt data with a data key
C.Use AWS CloudHSM to generate and store keys, and manually rotate them every 12 months
D.Use AWS KMS customer managed keys with automatic rotation enabled
E.Use S3 bucket policy to enforce SSE-C3 encryption
AnswersA, B, D

CloudTrail provides audit logs required for compliance.

Why this answer

Options A, B, and D are correct. AWS CloudTrail logs all KMS key usage, providing an audit trail (A). Envelope encryption using a data key is a recommended practice for encrypting data with KMS (B).

AWS KMS customer managed keys with automatic rotation enabled rotate annually, meeting the 12-month rotation requirement (D). Option C is incorrect because CloudHSM requires manual key rotation, not automatic. Option E is incorrect because SSE-C3 is not a valid encryption type; SSE-C uses customer-provided keys without automatic rotation.

49
MCQmedium

A security engineer needs to protect data in transit between an EC2 instance and an RDS database. The RDS database uses SSL/TLS certificates. What is the MOST secure way to ensure that the connection is encrypted?

A.Configure the EC2 instance to use a self-signed certificate for SSL connections.
B.Enable encryption at rest on the RDS instance to automatically encrypt in-transit traffic.
C.Download the RDS CA certificate to the EC2 instance and configure the database client to use SSL and verify the certificate.
D.Create an IAM policy that requires SSL connections to the RDS endpoint.
AnswerC

This provides strong encryption and server identity verification.

Why this answer

Downloading the RDS CA certificate to the EC2 instance and configuring the database client to use SSL with certificate verification ensures that the data in transit is encrypted and that the server's identity is verified, preventing man-in-the-middle attacks. Option A is incorrect because a self-signed certificate without proper verification does not provide a trusted chain of identity. Option B is incorrect because encryption at rest protects data stored on disk, not data in transit.

Option D is incorrect because IAM policies can require SSL but cannot enforce the actual encryption of the connection; the client must still be configured to use SSL.

50
MCQhard

Refer to the exhibit. A security engineer runs the AWS CLI command shown and receives an AccessDenied error. The IAM user Alice has a policy that grants kms:Decrypt on all resources. What is the most likely cause of the error?

A.The KMS key policy does not grant kms:Decrypt to the IAM user Alice.
B.The IAM user policy does not allow kms:Decrypt.
C.The command uses the wrong key ID.
D.The ciphertext blob is corrupted.
AnswerA

KMS requires both IAM policy and key policy to grant access; key policy may deny.

Why this answer

The AccessDenied error is caused by the KMS key policy, which explicitly restricts which principals can decrypt using the key. Even though Alice's IAM policy allows kms:Decrypt on all resources, the key policy must also grant her access. If the key policy does not list Alice (or her role) as a principal allowed to decrypt, the request fails.

Option A correctly identifies this as the most likely cause.

51
Multi-Selectmedium

A company is designing a secure data sharing solution with a third party. The company needs to share sensitive files stored in an S3 bucket with the third party, ensuring that the files are encrypted at rest and in transit, and that the third party can only access specific files. The company also wants to rotate the access credentials every 30 days. Which TWO actions should the company take? (Select TWO.)

Select 2 answers
A.Create an IAM role in the company's account that the third party can assume, and attach a policy that grants access to the specific files.
B.Use S3 Cross-Region Replication to replicate the files to a bucket in the third party's account.
C.Configure an S3 bucket policy that denies access unless the request includes a specific KMS key ID.
D.Generate presigned URLs for the specific files and email them to the third party.
E.Use a KMS key policy that grants the third party's AWS account permission to use the key for decrypt operations.
AnswersC, E

Enforces that only objects encrypted with the specified key can be accessed.

Why this answer

Options C and E are correct. Option C uses an S3 bucket policy with a condition requiring requests to include a specific KMS key ID, ensuring that only requests using that key can access the objects. This enforces encryption at rest (objects encrypted with that key) and in transit (HTTPS with KMS).

Option E grants the third party's AWS account permission to use that KMS key for decrypt operations, allowing them to decrypt the files. Together, they provide encryption key control and the ability to rotate the key or its policy every 30 days. Option A (cross-account IAM role) does not enforce encryption key control and requires the third party to assume a role, but credential rotation is managed via role trust policy, not directly.

Option B (S3 Cross-Region Replication) replicates objects but does not enforce key-specific access or encryption at rest in the destination. Option D (presigned URLs) provides time-limited access but does not enforce encryption key control and cannot be easily rotated every 30 days without regenerating URLs.

52
Multi-Selectmedium

A company is designing a data protection strategy for its Amazon S3 buckets. Which TWO actions can help protect data from accidental deletion or overwrite?

Select 2 answers
A.Enable MFA Delete on the bucket.
B.Enable Cross-Region Replication.
C.Enable default encryption.
D.Enable versioning on the bucket.
E.Set a lifecycle policy to expire objects.
AnswersA, D

Requires multi-factor authentication to delete objects.

Why this answer

The correct answers are A and D. MFA Delete (A) adds an extra authentication step to prevent unauthorized deletion. Versioning (D) allows recovery of overwritten or deleted objects by preserving previous versions.

Options B, C, and E do not protect against accidental deletion: Cross-Region Replication (B) provides disaster recovery, default encryption (C) protects data at rest, and lifecycle policies (E) can actually delete objects.

53
MCQeasy

A company needs to securely store database credentials for a legacy application running on Amazon EC2. The credentials are currently hardcoded in the application code. Which service should be used to rotate and retrieve secrets automatically?

A.AWS Systems Manager Parameter Store with a SecureString parameter.
B.AWS Key Management Service (KMS).
C.AWS Secrets Manager.
D.AWS CloudHSM.
AnswerC

Supports automatic rotation and secure storage.

Why this answer

AWS Secrets Manager is the correct service for securely storing and automatically rotating database credentials. It natively supports automatic rotation of secrets, which SSM Parameter Store does not (it requires additional custom automation). KMS is used for managing encryption keys, not secrets, and CloudHSM provides hardware security modules for key storage, not secrets management.

Therefore, Option C is correct, and Options A, B, and D are incorrect.

54
MCQmedium

A security engineer inspects two KMS keys. Which key can be used for envelope encryption with automatic key rotation?

A.Key 1234abcd-12ab-34cd-56ef-1234567890ab.
B.Key 2345bcde-23bc-45de-67fg-2345678901bc.
C.Neither key supports envelope encryption with automatic rotation.
D.Both keys support envelope encryption with automatic rotation.
AnswerA

Customer-managed key with rotation enabled.

Why this answer

Key 1234abcd has KeyRotationEnabled: true and is a customer-managed key (KeyManager: CUSTOMER) which supports automatic rotation. Key 2345bcde is AWS managed (KeyManager: AWS) but rotation is not enabled. However, AWS managed keys do not support automatic rotation.

Therefore, the only key that can have rotation enabled is key 1234abcd.

55
Multi-Selecteasy

A company needs to protect data in transit between an on-premises data center and AWS. Which THREE services can be used to encrypt data in transit?

Select 3 answers
A.AWS Key Management Service (KMS)
B.AWS Shield
C.HTTPS
D.AWS Site-to-Site VPN
E.AWS Certificate Manager (ACM)
AnswersC, D, E

Encrypts web traffic.

Why this answer

The correct answers are C (HTTPS), D (AWS Site-to-Site VPN), and E (AWS Certificate Manager (ACM)). HTTPS encrypts web traffic using TLS. AWS Site-to-Site VPN creates an IPsec VPN tunnel to encrypt all traffic between on-premises and AWS.

AWS Certificate Manager (ACM) provisions and manages TLS certificates used to encrypt data in transit. Option A (AWS KMS) manages encryption keys for data at rest, not in transit. Option B (AWS Shield) protects against DDoS attacks, not data encryption.

56
MCQhard

A security engineer applies the bucket policy shown in the exhibit to an S3 bucket. What is the effect of this policy?

A.Allows uploads only if they use SSE-S3.
B.Allows uploads without encryption.
C.Allows uploads with any server-side encryption.
D.Allows uploads only if they use SSE-KMS.
AnswerD

Correct because the policy allows uploads only when the request specifies SSE-KMS.

Why this answer

The bucket policy includes a Deny statement that restricts uploads based on encryption headers. Specifically, it denies requests where the x-amz-server-side-encryption header is not set to 'aws:kms' or where the x-amz-server-side-encryption-aws-kms-key-id is missing. This effectively allows only uploads that use SSE-KMS.

Therefore, Option D is correct.

57
Multi-Selecteasy

Which TWO of the following are valid options for encrypting data at rest in Amazon EBS? (Choose two.)

Select 2 answers
A.Enable EBS encryption by default using the AWS managed key for EBS.
B.Use a customer managed KMS key.
C.Use an encryption script on the EC2 instance to encrypt the volume.
D.Use AWS CloudHSM to generate and store the encryption key.
E.Use S3 server-side encryption to encrypt the EBS snapshot.
AnswersA, B

AWS managed key for EBS is used when no custom key is specified.

Why this answer

Options A and B are correct. EBS encryption can be enabled using either the AWS managed key for EBS (option A) or a customer managed KMS key (option B). Option C is incorrect because EBS encryption is not performed by a script on the EC2 instance; it is handled by AWS KMS.

Option D is incorrect because CloudHSM is not directly used for EBS encryption (though it can be used as a key source via KMS custom key stores, it is not a direct option for encrypting EBS volumes). Option E is incorrect because S3 server-side encryption applies to objects in S3, not to EBS snapshots; EBS snapshots can be encrypted using KMS keys.

58
MCQmedium

Refer to the exhibit. A security engineer is reviewing the key policy for a customer managed key. The engineer notices that a user with the IAM role 'Admin' can encrypt and decrypt data using this key. However, the engineer wants to ensure that only requests coming from the company's VPC (vpc-12345678) can use the key. What should be added to the key policy?

A.Add a condition kms:ViaService with value s3.amazonaws.com
B.Add a condition kms:CallerAccount with value 111122223333
C.Add a condition aws:SourceVpc with value vpc-12345678 to the 'Allow use of the key' statement
D.Add a new statement with Effect: Deny and a condition aws:SourceVpc not equal to vpc-12345678
AnswerC

Restricts access to requests from the specified VPC.

Why this answer

To restrict key usage to a specific VPC, you must add a condition using the aws:SourceVpc key to the 'Allow use of the key' statement in the key policy. Option C correctly accomplishes this. Option A is incorrect because kms:ViaService restricts usage to a specific AWS service endpoint, not a VPC.

Option B is incorrect because kms:CallerAccount is not a valid condition key for KMS. Option D is incorrect because adding a Deny statement could conflict with the Allow statement and is not the recommended approach.

59
MCQmedium

A company wants to protect data in transit between its on-premises network and Amazon VPC using IPsec VPN. Which AWS service should be used to establish this VPN connection?

A.AWS Client VPN
B.AWS Site-to-Site VPN
C.AWS Transit Gateway
D.AWS Direct Connect
AnswerB

Provides IPsec VPN tunnels.

Why this answer

AWS Site-to-Site VPN, is correct because it provides IPsec VPN connections between on-premises networks and VPCs. Option A is incorrect because AWS Client VPN is for individual remote users, not site-to-site. Option C is incorrect because AWS Transit Gateway acts as a hub for VPC connections but does not directly provide VPN endpoints; it can be used with Site-to-Site VPN.

Option D is incorrect because AWS Direct Connect provides a dedicated physical connection, not an IPsec VPN.

60
MCQhard

A company uses Amazon RDS for PostgreSQL with encryption at rest enabled using AWS KMS. The security team wants to ensure that database backups (automated snapshots) are also encrypted and that the encryption key can be rotated on demand without re-encrypting the data. Which approach should be taken?

A.Use a separate KMS key for backups by enabling 'Copy tags to snapshots' and specifying a different key.
B.Disable the old KMS key and enable a new KMS key for the RDS instance. The old backup will remain encrypted with the old key.
C.Enable automatic key rotation in KMS and import new key material every 90 days.
D.Create a new KMS key and modify the RDS instance to use the new key. The existing backup will be re-encrypted with the new key when the instance is modified.
AnswerD

Modifying the RDS instance to use a new KMS key triggers a re-encryption of the data and backups.

Why this answer

You can create a new KMS key and modify the RDS instance to use the new key. This action re-encrypts the database and its automated snapshots with the new key, providing on-demand key rotation. The re-encryption is performed automatically during the modification.

Option A is incorrect because RDS does not allow specifying a separate KMS key for backups; backups use the same key as the instance. Option B is incorrect because disabling the old KMS key would break access to existing backups that are still encrypted with that key. Option C is incorrect because automatic key rotation in KMS does not trigger re-encryption of existing data; it only generates new key material for future encryption operations.

61
MCQhard

Refer to the exhibit. A security engineer is troubleshooting why an IAM user (Alice) cannot encrypt data using a KMS key. Alice has full S3 and KMS permissions via an IAM policy. The key policy is shown. Which statement explains the issue?

A.The key policy is missing a statement to allow the IAM user to use the key via IAM policies
B.The IAM user does not have the kms:Encrypt permission in their IAM policy
C.The key policy does not include the root account principal
D.The key policy does not allow the IAM user to use the key for any action
AnswerD

Only Admin role gets kms:Put* and kms:Create*, not encrypt.

Why this answer

The key policy does not grant Alice any permissions, and it does not enable IAM policies to allow access (no statement allowing root account to delegate via IAM). Since KMS requires explicit key policy authorization unless the key policy enables IAM policies, Alice cannot encrypt data even with full IAM permissions. Option D correctly identifies this.

Option A is wrong because the key policy does not need a separate statement to allow IAM policies unless it explicitly enables IAM policy delegation. Option B is wrong because Alice has kms:Encrypt via IAM policy, but the key policy is restrictive. Option C is wrong because the root account is included (the Root principal).

Exam trap

A common misconception is that adding 'kms:ViaService' condition is necessary to allow IAM policies. In reality, the key policy must include a statement that delegates authority to the root account (e.g., 'Principal': {'AWS': 'arn:aws:iam::123456789012:root'}, 'Action': 'kms:*', 'Effect': 'Allow'). Without this, even full IAM permissions are insufficient.

62
Multi-Selecthard

A company wants to enforce encryption in transit for all data transferred between its Amazon EC2 instances and an Application Load Balancer (ALB). The company uses AWS Certificate Manager (ACM) to provision TLS certificates. Which TWO actions should the company take? (Choose TWO.)

Select 2 answers
A.Configure the target group to use HTTPS protocol.
B.Enable encryption at rest on the EC2 instances.
C.Use a network load balancer instead of an ALB.
D.Assign a certificate from ACM to the ALB listener.
E.Configure the ALB listener to use HTTPS protocol.
AnswersA, E

HTTPS target group ensures encryption between ALB and EC2.

Why this answer

Configuring the target group to use HTTPS protocol ensures that traffic between the Application Load Balancer (ALB) and the EC2 instances is encrypted in transit. This enforces TLS encryption on the backend connection, meeting the requirement for data-in-transit protection between the ALB and instances.

Exam trap

The trap here is that candidates often assume assigning a certificate to the ALB listener alone (Option D) is sufficient for encryption in transit, overlooking that the target group protocol must also be HTTPS to enforce encryption on the backend connection between the ALB and EC2 instances.

63
Multi-Selectmedium

A company is designing a data protection strategy for sensitive customer data stored in Amazon S3. Which TWO actions should be taken to protect the data from accidental deletion?

Select 2 answers
A.Use S3 Object Lock with retention mode.
B.Enable cross-region replication to another bucket.
C.Configure an S3 bucket policy that denies s3:DeleteObject for all principals.
D.Enable MFA Delete on the S3 bucket.
E.Enable S3 Versioning on the bucket.
AnswersD, E

Requires MFA to delete objects.

Why this answer

Options D and E are correct. MFA Delete adds an extra authentication factor for delete operations, providing protection against accidental or unauthorized deletion. S3 Versioning allows recovery of deleted or overwritten objects by preserving previous versions.

Option A is incorrect because S3 Object Lock with retention mode prevents object deletion or overwrite for a fixed period, but it is not specifically designed to protect against accidental deletion; it is more for compliance. Option B is incorrect because cross-region replication replicates objects to another bucket, but it does not prevent deletion in the source bucket; it only creates copies. Option C is incorrect because a bucket policy that denies s3:DeleteObject for all principals would prevent all delete operations, which is overly restrictive and not a practical solution for protecting against accidental deletion while still allowing necessary administrative actions.

64
MCQeasy

A company is designing a data lake on Amazon S3 and needs to encrypt data at rest. The compliance team requires that the encryption keys be managed by the company and not by AWS. Which encryption option should be used?

A.SSE-C
B.SSE-S3
C.Client-side encryption
D.SSE-KMS
AnswerA

Customer provides their own keys.

Why this answer

(SSE-C) is correct because SSE-C allows the customer to provide their own encryption keys, meeting the compliance requirement that keys be managed by the company and not by AWS. Option B (SSE-S3) is incorrect because AWS manages the keys. Option D (SSE-KMS) is incorrect because even with customer-managed keys, AWS KMS stores and manages the keys.

Option C (client-side encryption) is not server-side encryption and would require the customer to manage encryption before upload, but the question specifically asks for encryption at rest on S3, and server-side options are appropriate; SSE-C is the only server-side option where AWS does not manage the keys.

65
Multi-Selectmedium

Which TWO AWS services can be used to monitor and audit data access patterns to Amazon S3 buckets? (Choose 2.)

Select 2 answers
A.AWS Config
B.AWS CloudWatch
C.AWS CloudTrail
D.Amazon S3 Server Access Logs
E.AWS Trusted Advisor
AnswersC, D

Logs S3 API calls.

Why this answer

AWS CloudTrail is correct because it records API activity for Amazon S3, including data-level events such as GetObject, PutObject, and DeleteObject. By enabling data events on a trail, you can capture who accessed which object, from which IP address, and when, providing a complete audit trail for data access patterns.

Exam trap

The trap here is that candidates often confuse AWS Config (which checks configuration compliance) with CloudTrail (which records API activity), or they overlook that S3 Server Access Logs are a separate, native logging feature distinct from CloudTrail.

66
Multi-Selecthard

A company has an AWS Lambda function that processes sensitive data and writes the results to an Amazon S3 bucket. The security team requires that the data is encrypted at rest in S3 and that the Lambda function has the minimum permissions necessary. Which THREE actions should the team take?

Select 3 answers
A.Enable default encryption on the S3 bucket with SSE-KMS
B.Grant the Lambda execution role kms:Encrypt permission
C.Grant the Lambda execution role kms:CreateKey permission
D.Use a KMS key policy that allows the Lambda execution role to use the key
E.Grant the Lambda execution role kms:GenerateDataKey and kms:Decrypt permissions
AnswersA, D, E

Ensures encryption at rest.

Why this answer

(Enable default encryption on the S3 bucket with SSE-KMS) ensures all objects are encrypted at rest. Option D (Use a KMS key policy that allows the Lambda execution role to use the key) grants the necessary permissions at the key level. Option E (Grant the Lambda execution role kms:GenerateDataKey and kms:Decrypt permissions) provides the minimum permissions needed for Lambda to write encrypted data (GenerateDataKey) and read encrypted data (Decrypt).

Option B is incorrect because kms:Encrypt alone is insufficient; GenerateDataKey is required for writing. Option C is incorrect because kms:CreateKey is a key management action, not needed for usage.

67
MCQeasy

A company wants to automate the detection of sensitive data in an S3 bucket. Which AWS service should be used?

A.Amazon Macie
B.AWS Artifact
C.Amazon Inspector
D.Amazon GuardDuty
AnswerA

Macie automatically discovers and classifies sensitive data.

Why this answer

Amazon Macie uses machine learning to discover and classify sensitive data, making it the correct choice for automated detection of sensitive data in S3. AWS Artifact provides compliance reports, Amazon Inspector assesses vulnerabilities, and Amazon GuardDuty detects threats—none specifically focus on sensitive data detection.

68
MCQhard

A company has an S3 bucket with versioning and MFA Delete enabled. A user attempts to delete an object version using the AWS CLI without MFA. What will happen?

A.The object version is marked for deletion and will be deleted after 30 days.
B.The request fails with an AccessDenied error.
C.The object version is deleted and a delete marker is created.
D.The object version is deleted but not permanently.
AnswerB

MFA Delete requires MFA for version deletion.

Why this answer

With MFA Delete enabled on the S3 bucket, any request to delete an object version must include MFA authentication. Since the user's AWS CLI request did not provide MFA, the request is denied and returns an AccessDenied error. Option A is incorrect because there is no automatic 30-day delay; the request fails immediately.

Option C is incorrect because a delete marker is only created for non-versioned delete requests when the bucket is versioned, not for explicit version deletion without MFA. Option D is incorrect because the deletion is completely rejected, not partially executed.

69
Multi-Selectmedium

A company uses AWS KMS to encrypt data. The security team wants to ensure that KMS keys are not used outside of the company's AWS account. Which TWO measures would help achieve this? (Choose TWO.)

Select 2 answers
A.Tag the KMS key with the account ID.
B.Enable automatic key rotation.
C.Add a key policy that denies kms:* operations for principals from other AWS accounts.
D.Disable automatic key rotation.
E.Use key policies to allow only specific IAM roles in the account to use the key.
AnswersC, E

This explicitly blocks cross-account access.

Why this answer

To prevent KMS keys from being used outside the account, you need to enforce that only principals within the account can use the key. Option C adds a key policy statement that denies kms:* actions for principals from other AWS accounts, effectively blocking cross-account access. Option E restricts the key policy to allow only specific IAM roles within the account, ensuring that only authorized roles can use the key.

Options A (tagging) and B (enabling automatic key rotation) do not restrict usage. Option D (disabling automatic key rotation) also does not restrict usage. Therefore, the correct answers are C and E.

70
MCQeasy

A company uses Amazon S3 to store sensitive documents. The security team wants to ensure that all objects are encrypted at rest using server-side encryption. Additionally, any attempt to upload an unencrypted object must be denied. What should the security team do?

A.Enable default encryption on the S3 bucket using SSE-S3.
B.Add an S3 bucket policy that requires encryption using the 's3:x-amz-server-side-encryption' condition key.
C.Add an S3 bucket policy that denies PutObject if the object is not encrypted using SSE-S3 or SSE-KMS.
D.Create an AWS Config rule to detect unencrypted objects and trigger a Lambda function to encrypt them.
AnswerC

Denying unencrypted uploads enforces encryption at upload time.

Why this answer

An S3 bucket policy that denies PutObject if the object is not encrypted using SSE-S3 or SSE-KMS ensures that any upload attempt without proper server-side encryption is blocked. Option A is incorrect because enabling default encryption does not deny unencrypted uploads if the request explicitly sets encryption to none. Option B is incorrect because the 's3:x-amz-server-side-encryption' condition key can require encryption but does not cover all cases; using a deny statement for unencrypted uploads is more robust.

Option D is incorrect because AWS Config can only detect non-compliance, not deny the upload in real-time.

71
Multi-Selecteasy

A company wants to protect sensitive data in Amazon S3 by ensuring that all objects are encrypted at rest. Which TWO options meet this requirement? (Choose TWO.)

Select 2 answers
A.Use server-side encryption with S3 managed keys (SSE-S3)
B.Use SSL/TLS for data in transit
C.Use client-side encryption with the AWS Encryption SDK
D.Use server-side encryption with AWS KMS (SSE-KMS)
E.Use Amazon Macie to classify and mask data
AnswersA, D

S3 encrypts objects with S3 managed keys.

Why this answer

Options A and D are correct because they are server-side encryption methods provided by S3 to encrypt objects at rest. SSE-S3 uses S3-managed keys, while SSE-KMS uses AWS KMS keys. Option B (SSL/TLS) protects data in transit, not at rest.

Option C (client-side encryption) encrypts data before upload, but it is not an S3 server-side encryption feature and does not rely on S3 for encryption key management; thus it does not meet the requirement of S3 ensuring encryption at rest. Option E (Amazon Macie) is a data classification and discovery service, not an encryption mechanism.

72
Multi-Selecthard

A company uses AWS KMS to encrypt data in Amazon S3. The security team wants to ensure that only users from a specific AWS account can decrypt objects. Which TWO steps should be taken to achieve this?

Select 2 answers
A.Add a bucket policy that denies decrypt for all users except those from the target account.
B.Configure the KMS key policy to allow the target AWS account to use the key for decrypt.
C.Use a different KMS key for each object to isolate permissions.
D.Create an IAM policy in the target account that allows the kms:Decrypt action.
E.Enable S3 default encryption with the KMS key.
AnswersB, D

KMS key policy must allow the target account to use the key for decrypt.

Why this answer

Options B and D are correct. To allow decryption by a specific AWS account, you must configure the KMS key policy to grant the target account permission to use the key for decrypt (option B). Additionally, the target account must create an IAM policy that allows its users to call the kms:Decrypt action (option D).

Option A is incorrect because S3 bucket policies cannot grant KMS decryption permissions; they only control S3 operations. Option C is incorrect because using a separate KMS key per object adds unnecessary complexity and does not solve the cross-account requirement. Option E is incorrect because enabling S3 default encryption with a KMS key does not restrict decryption to a specific account; it only ensures encryption is applied.

73
Multi-Selectmedium

A company uses AWS KMS to encrypt sensitive data. The security team wants to ensure that KMS keys are not used by unauthorized principals. Which TWO measures should be implemented? (Choose TWO.)

Select 2 answers
A.Define a key policy that grants kms:Encrypt and kms:Decrypt only to specific IAM roles.
B.Delete any KMS keys that are not used for more than 90 days.
C.Create aliases for frequently used keys.
D.Grant kms:* permissions to all IAM users in the account.
E.Enable automatic key rotation for all customer managed keys.
AnswersA, E

Key policies are the primary way to control access to KMS keys.

Why this answer

Using key policies to restrict which IAM roles can use the key (Option A) and enabling automatic key rotation to limit the window of compromise (Option E) are effective. Granting broad access (Option D) is not recommended. Deleting unused keys (Option B) does not prevent unauthorized use of remaining keys.

Creating aliases (Option C) does not control access.

74
Multi-Selectmedium

A company wants to protect sensitive data stored in Amazon S3. Which TWO actions should the company take to meet this goal? (Choose TWO.)

Select 2 answers
A.Enable S3 Transfer Acceleration.
B.Configure S3 event notifications to send events to Amazon SNS.
C.Enable S3 Block Public Access.
D.Enable S3 Object Lock.
E.Enable default encryption on the bucket.
AnswersC, E

Block Public Access prevents public access to data.

Why this answer

Options C and E are correct. Option C (Enable S3 Block Public Access) prevents accidental public exposure of data, which is a key security measure. Option E (Enable default encryption) ensures that all new objects are encrypted at rest, protecting data from unauthorized access even if the underlying storage is compromised.

Option A (S3 Transfer Acceleration) is designed to speed up data transfers, not enhance security. Option B (S3 event notifications to Amazon SNS) enables automation workflows but does not protect data. Option D (S3 Object Lock) prevents object deletion or modification over a retention period, which addresses data governance and ransomware protection, not unauthorized access.

75
Multi-Selecthard

A company is implementing a data protection strategy for its Amazon S3 bucket that contains sensitive data. The company requires that all objects be encrypted at rest using server-side encryption with a customer managed key (SSE-KMS). Additionally, the company wants to ensure that only a specific IAM role can decrypt objects. Which THREE actions should the company take?

Select 3 answers
A.Attach an IAM policy to the specific role that grants kms:Decrypt on the customer managed key
B.Create a bucket policy that denies s3:PutObject unless the request includes the x-amz-server-side-encryption header with value aws:kms
C.Use the default S3-managed key (SSE-S3) for encryption
D.Modify the KMS key policy to allow the specific IAM role to use the key for decryption
E.Use client-side encryption with a customer managed key
AnswersA, B, D

Allows decryption by that role.

Why this answer

To enforce SSE-KMS, use a bucket policy that denies s3:PutObject unless the request includes the x-amz-server-side-encryption header with value aws:kms (option B). To control decryption, grant kms:Decrypt to the specific role via an IAM policy (option A) and modify the KMS key policy to allow that role (option D). Option C is incorrect because SSE-S3 does not use a customer managed key.

Option E is incorrect because client-side encryption is not S3 server-side encryption.

Page 1 of 2 · 126 questions totalNext →

Ready to test yourself?

Try a timed practice session using only Data Protection questions.